'Testing MultiPoint objects.'

def test03_multipoints(self):

    for mp in self.geometries.multipoints:
        mgeom1 = OGRGeometry(mp.wkt)
        self.assertEqual(4, mgeom1.geom_type)
        self.assertEqual('MULTIPOINT', mgeom1.geom_name)
        mgeom2 = OGRGeometry('MULTIPOINT')
        mgeom3 = OGRGeometry('MULTIPOINT')
        for g in mgeom1:
            mgeom2.add(g)
            mgeom3.add(g.wkt)
        self.assertEqual(mgeom1, mgeom2)
        self.assertEqual(mgeom1, mgeom3)
        self.assertEqual(mp.coords, mgeom2.coords)
        self.assertEqual(mp.n_p, mgeom2.point_count)
