[Proj] reproject batch command

Maciek Sieczka werchowyna at epf.pl
Wed May 17 18:01:11 EDT 2006


On Wed, 17 May 2006 14:34:24 +0200
"Zhonghai Wang" <zhonghaiw at gmail.com> wrote:

> Hi All,
> 
> I have a subfolder with ESRI shapefiles, and now I want to reproject
> the shapefile, are there any batch commands to do this?
> 
> thanks in advance
> 
> zhonghai
> 
> 17.05.2006

If on unix+bash, something like this will work (modify accordingly):

#!/bin/bash

LISTA=$(ls $HOME/gis/dane/pani/mapy | grep -i ".shp")

for PLIK in $LISTA;
do

echo
echo Konwertuje plik: $PLIK
PLIK_LOW=`echo $PLIK | tr A-Z a-z`

ogr2ogr -s_srs epsg:2180 -t_srs epsg:32633
$HOME/tmp/hydro_ds_shp/$PLIK_LOW $PLIK

done

--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/



More information about the Proj mailing list