[Freegis-list] PROJ4 mass convert
Bernhard Herzog
bh at intevation.de
Fri Oct 12 11:41:53 CEST 2001
"Roderick A. Anderson" <raanders at tincan.org> writes:
> The man page is less than clear on converting 'lots' of coordinates. In
> fact it only shows one set at a time.
Well, the man page I've got here has this example:
proj +proj=utm +lon_0=112w -r <<EOF
45d15'33.1" 111.5W
45d15.551666667N -111d30
+45.25919444444 111d30'000w
EOF
which converts three coordinate pairs.
> Is there a method to convert a whole file full of coordinates
> (LAT/LONG) to another coordinate system (UTM zone 11N)? Well other than
> using a for;do;done loop and starting PROJ4 up several hundred thousand
> to millions of times.
According to the manpage and the above example you can just use
proj +proj=utm file
to convert all coordinates in file (you'll have to provide some
additional parameters to specify the UTM zone, of course).
I have to admit that I haven't used the command line tool much, so maybe
there's a problem I don't see.
HTH,
Bernhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://mapit.de/
More information about the Freegis-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)