Esempio n. 1
0
 def point_count(self):
     "Returns the number of Points in this Geometry."
     return capi.get_point_count(self.ptr)
Esempio n. 2
0
 def point_count(self):
     "Returns the number of Points in this Geometry."
     return capi.get_point_count(self.ptr)
Esempio n. 3
0
    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

    @property
    def num_coords(self):
<<<<<<< HEAD
        "Alais for `point_count`."
=======
        "Alias for `point_count`."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return self.point_count