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

Andrea Giudiceandrea andreaerdna at libero.it
Tue Mar 30 04:17:54 PDT 2021


gordonbe wrote
> from shapely import wkt
> 
> wkt.loads('POLYGON((0 0, 0 0, 0 0, 0 0, 0 0))')
> 
> QGIS throws this error during the crash:

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.


Best regards.

Andrea



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html


More information about the QGIS-Developer mailing list