Exemple #1
0
 def ewkb(self):
     """
     Return the EWKB representation of this Geometry as a Python buffer.
     This is an extension of the WKB specification that includes any SRID
     and Z values that are a part of this geometry.
     """
     if self.hasz:
         if not GEOS_PREPARE:
             # See: http://trac.osgeo.org/geos/ticket/216
             raise GEOSException('Upgrade GEOS to 3.1 to get valid 3D EWKB.')
         return ewkb_w3d().write(self)
     else:
         return ewkb_w().write(self)
 def ewkb(self):
     """
     Return the EWKB representation of this Geometry as a Python buffer.
     This is an extension of the WKB specification that includes any SRID
     and Z values that are a part of this geometry.
     """
     if self.hasz:
         if not GEOS_PREPARE:
             # See: http://trac.osgeo.org/geos/ticket/216
             raise GEOSException('Upgrade GEOS to 3.1 to get valid 3D EWKB.')
         return ewkb_w3d().write(self)
     else:
         return ewkb_w().write(self)
Exemple #3
0
 def hexewkb(self):
     """
     Returns the EWKB of this Geometry in hexadecimal form.  This is an
     extension of the WKB specification that includes SRID and Z values
     that are a part of this geometry.
     """
     if self.hasz:
         if not GEOS_PREPARE:
             # See: http://trac.osgeo.org/geos/ticket/216
             raise GEOSException('Upgrade GEOS to 3.1 to get valid 3D HEXEWKB.')
         return ewkb_w3d().write_hex(self)
     else:
         return ewkb_w().write_hex(self)
 def hexewkb(self):
     """
     Returns the EWKB of this Geometry in hexadecimal form.  This is an 
     extension of the WKB specification that includes SRID and Z values 
     that are a part of this geometry.
     """
     if self.hasz:
         if not GEOS_PREPARE:
             # See: http://trac.osgeo.org/geos/ticket/216
             raise GEOSException('Upgrade GEOS to 3.1 to get valid 3D HEXEWKB.')               
         return ewkb_w3d().write_hex(self)
     else:
         return ewkb_w().write_hex(self)