[QGIS-Developer] Unable to parse WKT Polygon using Shapely

Richard Duivenvoorde rdmailings at duif.net
Tue Mar 30 04:30:14 PDT 2021


On 3/30/21 1:17 PM, Andrea Giudiceandrea wrote:
> gordonbe wrote
>> from shapely import wkt
>> wkt.loads('POLYGON((0 0, 0 0, 0 0, 0 0, 0 0))')
> 
> Hi gordonbe,
> what operative system and what QGIS version are you using?
> 
> Using QGIS 3.16.5 or 3.18.1, installed via OSGeo4W on Windows 7, the command
> 
> wkt.loads('POLYGON((0 0, 0 0, 0 0, 0 0, 0 0))')
> 
> returns a shapely.geometry.polygon.Polygon object and QGIS doesn't crash.



Same here for all QGIS's on Debian (310 till master) all OK

What version of shapely do you have (mine is 1.7.1).

Is it possible you have some python/shapely versions mixed in your python path?


Regards,

Richard Duivenvoorde


More information about the QGIS-Developer mailing list