5

I have over 300 line shapefiles and I want to merge these files into a single shapefile. I have used merge tool in QGIS, but this tool merges overlapping features into a single feature. I, however, want these features to remain unique even if they do overlap.

5
  • 1
    Which merge tool did you use?
    – Joseph
    Jul 13, 2017 at 10:53
  • I used 'merge vector layers' of Data Management Tools as well as v.patch of GRASS. Jul 13, 2017 at 10:54
  • 2
    Have you tried using ogr2ogr with -append? You can loop through all files in a directory. Not sure if that will maintain separate features. Jul 13, 2017 at 11:13
  • No, I haven't tried that. Where can I find it? Jul 13, 2017 at 11:28
  • ogr2ogr is bundled with QGIS. Fire up the OSGeo4W shell and type ogr2ogr to get the help. See gis.stackexchange.com/questions/223183/… for some examples of usage. This might be the same process as the 'Merge Vector Layers' if QGIS is using the same tool under the hood. Jul 13, 2017 at 20:13

1 Answer 1

1

You can use the MMQGIS Plugin.

  • Load all shape files into QGIS (by selecting all before it's only one click).
  • Use MMQGIS--> Combine --> Merge Layers. Select all (Control + A) and save new shape file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.