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.

  • 1
    Which merge tool did you use? – Joseph Jul 13 '17 at 10:53
  • I used 'merge vector layers' of Data Management Tools as well as v.patch of GRASS. – Adrian Lyngdoh Jul 13 '17 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. – mixedbredie Jul 13 '17 at 11:13
  • No, I haven't tried that. Where can I find it? – Adrian Lyngdoh Jul 13 '17 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. – mixedbredie Jul 13 '17 at 20:13

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.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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