(self, geom)
Returns WKB hex string for geometry
Returns WKB hex string for geometry
Returns WKB hex string for geometry
def write_hex(self, geom):
        """Returns WKB hex string for geometry"""
        if geom is None or geom._geom is None:
            raise ValueError("Null geometry supports no operations")
        size = c_size_t()
        result = self._lgeos.GEOSWKBWriter_writeHEX(
            self._writer, geom._geom, pointer(size))
        data = string_at(result, size.value)
        lgeos.GEOSFree(result)
        if sys.version_info[0] >= 3:
            return data.decode('ascii')
        else:
            return data
def write_hex ( self , geom ) : if geom is None or geom . _geom is None : raise ValueError ( "Null geometry supports no operations" ) size = c_size_t ( ) result = self . _lgeos . GEOSWKBWriter_writeHEX ( self . _writer , geom . _geom , pointer ( size ) ) data = string_at ( result , size . value ) lgeos . GEOSFree ( result ) if sys . version_info [ 0 ] >= 3 : return data . decode ( 'ascii' ) else : return data