(self, text)
return geom_factory(geom)
Returns geometry from WKT
Returns geometry from WKT
Returns geometry from WKT
def read(self, text):
        """Returns geometry from WKT"""
        if sys.version_info[0] >= 3:
            text = text.encode('ascii')
        geom = self._lgeos.GEOSWKTReader_read(self._reader, c_char_p(text))
        if not geom:
            raise WKTReadingError(
                "Could not create geometry because of errors "
                "while reading input.")
        # avoid circular import dependency
        from shapely.geometry.base import geom_factory
        return geom_factory(geom)
def read ( self , text ) : if sys . version_info [ 0 ] >= 3 : text = text . encode ( 'ascii' ) geom = self . _lgeos . GEOSWKTReader_read ( self . _reader , c_char_p ( text ) ) if not geom : raise WKTReadingError ( "Could not create geometry because of errors " "while reading input." ) # avoid circular import dependency from shapely . geometry . base import geom_factory return geom_factory ( geom )