[Proj] reproject batch command
marco vieira
maovieira at gmail.com
Thu May 18 08:55:59 EDT 2006
Also you can do it on unix+bash by one command line:
find . -name "*.shp" -maxdepth 1 -exec ogr2ogr -s_srs epsg:2180 -t_srs
epsg:32633 ../dest/{} {} \;
In window$ you can use this commands with the package
http://unxutils.sourceforge.net/ + FWtools
Regards.
--
Marco Vieira
+55 21 9499-6800
e-mail: maovieira at gmail.com
2006/5/17, Maciek Sieczka <werchowyna at epf.pl>:
>
> 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/
>
> _______________________________________________
> Proj mailing list
> Proj at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/proj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/proj/attachments/20060518/fce243e5/attachment.html
More information about the Proj
mailing list