[Qgis-user] Vector layer WKT attribute to new layers

C Hamilton adenaculture at gmail.com
Wed Feb 21 05:06:15 PST 2024


I came across a point vector layer that had a WKT object as one of the
attributes. The WKT object could be a point, line, polygon, multi-point,
multi-line, or multi-polygon and there could be a mixture of these in the
same vector layer.

I added an algorithm to the Lat Lon Tools plugin that accepts a vector
layer and an attribute field, and can potentially export 3 new layers
representing WKT points found, lines found, or polygons found. If the WKT
objects are all the same type then only one new layer will be created.

You can import WKT geometries from a csv file, but there is no good way to
do this in QGIS from a vector layer with a WKT attribute.

Enjoy,
Calvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240221/85e83d3e/attachment.htm>


More information about the QGIS-User mailing list