[geotk] How to convert Lat/Lon to UTM

Martin Desruisseaux martin.desruisseaux at geomatys.fr
Wed Feb 2 18:29:56 EST 2011


Hello Brian

Le 03/02/11 00:19, Brian Schlining a écrit :
> I have a positions defined using latitude and longitude (WGS84) that I'd like 
> to convert to UTM Zone 10N eastings and northings. How do I go about doing 
> that using Geotoolkit?
On http://www.geotoolkit.org/demos/index.html there is a (unfortunately very 
small) set of demo. The "Demonstration applets" are broken for now, but the 
"Demonstration code" are okay. The CoordinateConversion demo should give you a 
starting point. Take any method from this demo and set source/target CRS as below:

sourceCRS = DefaultGeographicCRS.WGS84;
targetCRS = CRS.decode("EPSG:32610");

The following page may be worth a look: 
http://www.geotoolkit.org/modules/referencing/faq.html
Please let me know if you have any other issue!

     Regards,

         Martin



More information about the Geotoolkit mailing list