[Gdal-dev] OGR projection: lat/long to UTM

Garvan Keeley garvank at optech.on.ca
Mon May 26 16:05:12 EDT 2003


Is there a way to convert decimal lat/long (unprojected) to UTM without
using WKT?
I can't see how to set the destination projection to UTM without specifying
the zone. The function SetUTM() requires a zone argument, which isn't known
until the transform has occurred. 

For example,

OGRSpatialReference source;
source.SetWellKnownGeogCS("WGS84");

OGRSpatialReference destination;
destination.SetWellKnownGeogCS("WGS84"); 
destination.SetUTM();  <--------- this requires a parameter

I think I am going about this the wrong way,
Thanks.

=======================
Garvan Keeley
Programmer/Analyst
Optech Incorporated
100 Wildcat Road
Toronto, Ontario, Canada, M3J 2Z9
Web: http://www.optech.on.ca
Tel: 416.661.5904 x441 



More information about the Gdal-dev mailing list