Feature request #11695
Python parser for geometries in delimited text layers
|Category:||Data Provider/Delimited Text|
|Pull Request or Patch supplied:||No||Resolution:|
- Point coordinates (X and Y fields, optionally in DMS)
- Well Known Text (WKT)
- No geometry (attribute table only)
It is common in the United Kingdom to receive coordinates which use the British National Grid system.
For example, SP513061 is interpreted as x=451300, y=206100. It's relatively easy to do this conversion using a bit of Python:
My proposal is for a 4th geometry option in the delimited text layer, that could pass a field or fields to a user-editable Python function, which would return either the x,y coordinates, or even a geometry object. Ireland has a similar grid system, so it would also be useful there, but I'm sure users could find even more interesting/obscure uses for this.
Of course, this could be written as an individual plugin, but it would involve significant duplication of existing functionality already in the delimited text layer feature.