Exemplo n.º 1
0
 def gml(self):
     "Returns the GML representation of the Geometry."
     return capi.to_gml(self.ptr)
Exemplo n.º 2
0
 def gml(self):
     "Returns the GML representation of the Geometry."
     return capi.to_gml(self.ptr)
Exemplo n.º 3
0
<<<<<<< HEAD
        "Returns a GEOSGeometry object from this OGRGeometry."
=======
        "Return a GEOSGeometry object from this OGRGeometry."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        from django.contrib.gis.geos import GEOSGeometry
        return GEOSGeometry(self._geos_ptr(), self.srid)

    @property
    def gml(self):
<<<<<<< HEAD
        "Returns the GML representation of the Geometry."
=======
        "Return the GML representation of the Geometry."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return capi.to_gml(self.ptr)

    @property
    def hex(self):
<<<<<<< HEAD
        "Returns the hexadecimal representation of the WKB (a string)."
=======
        "Return the hexadecimal representation of the WKB (a string)."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return b2a_hex(self.wkb).upper()

    @property
    def json(self):
        """
<<<<<<< HEAD
        Returns the GeoJSON representation of this Geometry.