[gdal-dev] NAD27 to NAD83
Frank Warmerdam
warmerdam at pobox.com
Tue Sep 14 11:12:20 EDT 2010
Donnet , Sebastien wrote:
> Hi,
>
> I have a bunch of data in NAD27 (lat, lon ascii files) that I would like
> to convert into NAD83.
> How can I do that easily with gdal?
>
> Up to now I've tried it like this:
>
> gdaltransform -s_srs NAD27 -t_srs NAD83 < nad27.txt > nad83.txt
>
> using a nad27.txt that looks like that (tab separated):
>
> 71.9881 -80.7771
> 71.9880 -80.7199
> 71.8889 -80.9131
> 71.8892 -80.9117
> 71.9041 -80.8410
>
> but didn't go anywhere... a nad83.txt was created, but blank...
> what input format am I supposed to provide? (I tried comma separated
> among others...)
Sebastien,
It turns out they need to be space separated instead of tab separated.
Also, put the longitude first. If you file a ticket on this limitation
we will likely get to fixing it.
gdaltransform -s_srs NAD27 -t_srs NAD83
-80.7771 71.9881
-80.776396134163 71.9887576959729 9.47713851928711e-05
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list