Exemplo n.º 1
0
 def wkt(self):
     "Returns the WKT representation of the Geometry."
     return capi.to_wkt(self.ptr, byref(c_char_p()))
Exemplo n.º 2
0
 def wkt(self):
     "Returns the WKT representation of the Geometry."
     return capi.to_wkt(self.ptr, byref(c_char_p()))
Exemplo n.º 3
0
        capi.to_wkb(self.ptr, byteorder, byref(buf))
        # Returning a buffer of the string at the pointer.
<<<<<<< HEAD
        return six.memoryview(string_at(buf, sz))

    @property
    def wkt(self):
        "Returns the WKT representation of the Geometry."
=======
        return memoryview(string_at(buf, sz))

    @property
    def wkt(self):
        "Return the WKT representation of the Geometry."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return capi.to_wkt(self.ptr, byref(c_char_p()))

    @property
    def ewkt(self):
<<<<<<< HEAD
        "Returns the EWKT representation of the Geometry."
=======
        "Return the EWKT representation of the Geometry."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        srs = self.srs
        if srs and srs.srid:
            return 'SRID=%s;%s' % (srs.srid, self.wkt)
        else:
            return self.wkt

    # #### Geometry Methods ####