[Gdal-dev] python CoordinateTransformation

Xiaodong Zhang xiaodong.zhang2 at und.nodak.edu
Thu Apr 13 13:34:45 EDT 2006


Thanks Frank and Howard,

It works. Just curious to know a little bit of CloneGeogCS() method, the 
description of which is not available from the gdal web. Is it designed 
to create a geographic projection (i.e., lat & long) out of the existing 
projection using the same, say, datum, etc.

Thanks again for your help.
Xiaodong

Howard Butler wrote:
> <http://www.gdal.org/srctree/pymod/samples/tolatlong.py>
>
> At 01:14 PM 4/12/2006, Frank Warmerdam wrote:
>> Xiaodong Zhang wrote:
>>> Hi gdal-dev list members,
>>> Not knowing very much about Python, I'm wondering if anybody has a 
>>> sample code of using Python:CoordinateTransformation. I have read 
>>> through OGR Projection tutorial and understand how to do it in C++; 
>>> but there are few information there on how to use Pythonto to do 
>>> coordinate transformation. Basically I'd like to calculate the lat 
>>> and long from an image's native projection.
>>
>> Xiaodong,
>>
>> I think you will find the following example script to be nearly what you
>> want.
>>
>>   http://www.gdal.org/srctree/python/samples/tolatlong.py
>>
>> 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    | President OSGF, 
>> http://osgeo.org
>>
>> _______________________________________________
>> Gdal-dev mailing list
>> Gdal-dev at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/gdal-dev
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list