[Qgis-user] Point order in WKT export from polygon layer

Richard Duivenvoorde rdmailings at duif.net
Mon Aug 5 21:35:39 PDT 2024


On 8/5/24 14:33, Reetz, Michael (NLPVW) via QGIS-User wrote:
> Dear list,
> 
> I’ve created a csv-file with coordinates in WKT-format by exporting a polygon layer with the “Save object as …”-option (“Objekte speichern als …” in the German QGIS version). I need this for querying data from GBIF via their API using JSON input. That has worked for the last years. But using the same JSON files this year gives an error because the point order is clockwise. I’ve found that according to the OGC standard the order should be counter clockwise for polygons and clockwise for excluded areas inside a polygon. It seems as if GBIF is following this standard now.
> 
> Would it be possible to follow the OGC standard in the QGIS export, too? This would reduce the amount of rework after each export.

First thing I thought: this would be a nice simple plugin :-)

"Just download features from GBIF api"..

Did not check, but found:

https://plugins.qgis.org/plugins/qgisgbifapi/

Have not tried/tested, but maybe that is an option too?

Regards,

Richard Duivenvoorde


More information about the QGIS-User mailing list