[Qgis-user] batch shapefile reproject?
Giovanni Manghi
giovanni.manghi at faunalia.pt
Mon May 21 01:37:41 PDT 2012
Hi,
>
> Does anyone have a python script or know of a 3rd party plug in that
> will allow a directory of shapefiles to be reprojected into a
> specified CRS? Would also be helpful to do the same with the clip
> tool.
this should work
#!/bin/bash
for FILE in *.shp
do
echo "Processing $FILE file..."
ogr2ogr -f "ESRI Shapefile" -s_srs "EPSG:XXX" -t_srs
"EPSG:XXX" /yourpath/$FILE $FILE
done
having such functionality exposed in QGIS "vector" menu would be very useful.
cheers
-- Giovanni --
>
More information about the Qgis-user
mailing list