Esempio n. 1
0
 def geom_count(self):
     "The number of elements in this Geometry."
     return capi.get_geom_count(self.ptr)
Esempio n. 2
0
 def geom_count(self):
     "The number of elements in this Geometry."
     return capi.get_geom_count(self.ptr)
Esempio n. 3
0
        "Set the coordinate dimension of this Geometry."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        if dim not in (2, 3):
            raise ValueError('Geometry dimension must be either 2 or 3')
        capi.set_coord_dim(self.ptr, dim)

    coord_dim = property(_get_coord_dim, _set_coord_dim)

    @property
    def geom_count(self):
<<<<<<< HEAD
        "The number of elements in this Geometry."
=======
        "Return the number of elements in this Geometry."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return capi.get_geom_count(self.ptr)

    @property
    def point_count(self):
<<<<<<< HEAD
        "Returns the number of Points in this Geometry."
=======
        "Return the number of Points in this Geometry."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return capi.get_point_count(self.ptr)

    @property
    def num_points(self):
        "Alias for `point_count` (same name method in GEOS API.)"
        return self.point_count