[Qgis-user] Merge does work (at least not as I expect)

Alexandre Neto senhor.neto at gmail.com
Tue Oct 1 23:33:55 PDT 2019


Hi,

Can you provide a sample of your data?

What version of QGIS are you using? What OS?

Alexandre Neto

A quarta, 2/10/2019, 05:03, <qgis-user at stripfamily.net> escreveu:

> Nyall wrote:
>
> I suspect the lines aren't **exactly** coincident. I'd try:
>
> - multiparts to single parts
> - snap geometries to layer, to snap the end points exactly to each other
> - retry merge
>
>
> I tried this, no joy. still getting multi-linestring with 2055 segments.
> So here's what I tried next -
> multiparts to singlepart
> export to csv, saving geometry as wkt.
> verify that endpoints match *exactly* to the precision written to the file
> Import csv as layer
> merge
>
> again, no luck
>
> I looked at the attribute table and the lines were in some random order-
> adjacent segments were not consecutive rows in the attribute table. Then I
> noticed that every row had the same FID.
> I closed the layer, opened the .csv in excel, verified that the rows
> represented consecutive points, then assigned consecutive FIDs.
> imported csv as layer
> merge
>
> again, no luck. Still have 2055 rows in the attribute table of the merged
> layer, in that same seemingly random order as before.
>
> A purely brute force solution was to export as csv, as above, then edit
> the file by removing the endpoint of each segment, and concatenate them
> into a single linestring with 2055 points.
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20191002/942aaadc/attachment.html>


More information about the Qgis-user mailing list