Пример #1
0
 def dimension(self):
     "Returns 0 for points, 1 for lines, and 2 for surfaces."
     return capi.get_dims(self.ptr)
Пример #2
0
 def dimension(self):
     "Returns 0 for points, 1 for lines, and 2 for surfaces."
     return capi.get_dims(self.ptr)
Пример #3
0
    def __ne__(self, other):
        "Tests for inequality."
        return not (self == other)

=======
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
    def __str__(self):
        "WKT is used for the string representation."
        return self.wkt

    # #### Geometry Properties ####
    @property
    def dimension(self):
<<<<<<< HEAD
        "Returns 0 for points, 1 for lines, and 2 for surfaces."
        return capi.get_dims(self.ptr)

    def _get_coord_dim(self):
        "Returns the coordinate dimension of the Geometry."
        return capi.get_coord_dim(self.ptr)

    def _set_coord_dim(self, dim):
        "Sets the coordinate dimension of this Geometry."
=======
        "Return 0 for points, 1 for lines, and 2 for surfaces."
        return capi.get_dims(self.ptr)

    def _get_coord_dim(self):
        "Return the coordinate dimension of the Geometry."
        return capi.get_coord_dim(self.ptr)