<div dir="ltr">Hi Richard,<div><br></div><div>This has recently been discussed in the context of the postgis:</div><div><a href="https://github.com/qgis/QGIS/pull/45007#discussion_r706526454">https://github.com/qgis/QGIS/pull/45007#discussion_r706526454</a><br></div><div><br></div><div>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?</div><div><br></div><div>Matthias</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 7, 2022 at 11:46 AM Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Devs/Community,<br>
<br>
Currently I receive csv data in which the geometry is encodes as EWKT:<br>
"SRID=4326;POINT (4.679683985851895 51.67410641976929)"<br>
instead of WKT:<br>
"POINT (4.679683985851895 51.67410641976929)"<br>
<br>
The normal csv/delimited text provider does not handle this (?)<br>
<br>
And QgsGeometry does not have export/import methods for it [0]?<br>
<br>
Ale's QuickWKT plugin can handle it though, just by removing the SRID part [1]<br>
<br>
So Question: is EWKT something to be discouraged?<br>
<br>
OR is it something that is worth to add to QGIS?<br>
(In the csv provider it would set the crs automagicaly)<br>
<br>
Any input appreciated.<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
<br>
[0] <a href="https://qgis.org/pyqgis/master/core/QgsGeometry.html" rel="noreferrer" target="_blank">https://qgis.org/pyqgis/master/core/QgsGeometry.html</a><br>
<br>
[1] <a href="https://github.com/elpaso/quickwkt/blob/master/QuickWKT.py#L229-L234" rel="noreferrer" target="_blank">https://github.com/elpaso/quickwkt/blob/master/QuickWKT.py#L229-L234</a><br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>