コード例 #1
0
ファイル: geometry.py プロジェクト: zalmoxis/django
 def hexewkb(self):
     """
     Returns the EWKB of this Geometry in hexadecimal form.  This is an
     extension of the WKB specification that includes SRID value that are
     a part of this geometry.
     """
     return ewkb_w(dim=3 if self.hasz else 2).write_hex(self)
コード例 #2
0
ファイル: geometry.py プロジェクト: zalmoxis/django
 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
     value that are a part of this geometry.
     """
     return ewkb_w(3 if self.hasz else 2).write(self)
コード例 #3
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
     value that are a part of this geometry.
     """
     return ewkb_w(3 if self.hasz else 2).write(self)
コード例 #4
0
 def hexewkb(self):
     """
     Returns the EWKB of this Geometry in hexadecimal form.  This is an
     extension of the WKB specification that includes SRID value that are
     a part of this geometry.
     """
     return ewkb_w(3 if self.hasz else 2).write_hex(self)
コード例 #5
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
     value that are a part of this geometry.
     """
     if self.hasz and 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_w(3 if self.hasz else 2).write(self)
コード例 #6
0
 def hexewkb(self):
     """
     Returns the EWKB of this Geometry in hexadecimal form.  This is an
     extension of the WKB specification that includes SRID value that are
     a part of this geometry.
     """
     if self.hasz and 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_w(3 if self.hasz else 2).write_hex(self)
コード例 #7
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
     value that are a part of this geometry.
     """
     if self.hasz and 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_w(self.hasz and 3 or 2).write(self)
コード例 #8
0
 def hexewkb(self):
     """
     Returns the EWKB of this Geometry in hexadecimal form.  This is an
     extension of the WKB specification that includes SRID value that are
     a part of this geometry.
     """
     if self.hasz and 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_w(self.hasz and 3 or 2).write_hex(self)
コード例 #9
0
ファイル: geometry.py プロジェクト: Kenstogram/my-first-blog
    def hexewkb(self):
        """
<<<<<<< HEAD
        Returns the EWKB of this Geometry in hexadecimal form.  This is an
=======
        Return the EWKB of this Geometry in hexadecimal form. This is an
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        extension of the WKB specification that includes SRID value that are
        a part of this geometry.
        """
        return ewkb_w(dim=3 if self.hasz else 2).write_hex(self)