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

Ben Discoe ben at vterrain.org
Mon May 26 16:20:26 EDT 2003


Garvan,

You can determine the UTM zone before the transformation.

	int zone = (int) (((longitude + 180.0) / 6.0) + 1.0);

-Ben

> -----Original Message-----
> From: gdal-dev-admin at remotesensing.org
> [mailto:gdal-dev-admin at remotesensing.org]On Behalf Of Garvan Keeley
> Sent: Monday, May 26, 2003 4:05 PM
> To: 'gdal-dev at remotesensing.org'
> Subject: [Gdal-dev] OGR projection: lat/long to UTM
> 
> 
> 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.



More information about the Gdal-dev mailing list