Feature request #7208

Updated by Nyall Dawson over 6 years ago

The "merge shapefiles" tool is very inefficient, when applied to hundreds/thousands of shapes the progress bar barely moves for many hours on a very powerful machine.



I discovered this python code



http://furiousgis.blogspot.it/2012/05/python-shapefile-merger-utility.html



that does the task in a matter of *seconds* even for many GB worth of shapefiles.



Its speed is equal, if not faster to an ogr2ogr script



@

#!/bin/bash/

DATA=`find . -name '*.shp'`

ogr2ogr -a_srs EPSG:4326 merge.shp

for i in $DATA

do

ogr2ogr -append -update merge.shp $i -f "Esri Shapefile"

done@

Back