[QGIS-Developer] WKT, but is EWKT an unwanted (Q)GIS family member?

Matthias Kuhn matthias at opengis.ch
Fri Jan 7 06:09:15 PST 2022


Hi Richard,

This has recently been discussed in the context of the postgis:
https://github.com/qgis/QGIS/pull/45007#discussion_r706526454

Is there a definition of what the SRID code in EWKT means without the
context of an srid database like postgis has. Is it always an EPSG code?

Matthias

On Fri, Jan 7, 2022 at 11:46 AM Richard Duivenvoorde <rdmailings at duif.net>
wrote:

> Hi Devs/Community,
>
> Currently I receive csv data in which the geometry is encodes as EWKT:
>    "SRID=4326;POINT (4.679683985851895 51.67410641976929)"
> instead of WKT:
>    "POINT (4.679683985851895 51.67410641976929)"
>
> The normal csv/delimited text provider does not handle this (?)
>
> And QgsGeometry does not have export/import methods for it [0]?
>
> Ale's QuickWKT plugin can handle it though, just by removing the SRID part
> [1]
>
> So Question: is EWKT something to be discouraged?
>
> OR is it something that is worth to add to QGIS?
> (In the csv provider it would set the crs automagicaly)
>
> Any input appreciated.
>
> Regards,
>
> Richard Duivenvoorde
>
>
> [0] https://qgis.org/pyqgis/master/core/QgsGeometry.html
>
> [1] https://github.com/elpaso/quickwkt/blob/master/QuickWKT.py#L229-L234
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20220107/12115c75/attachment-0001.html>


More information about the QGIS-Developer mailing list