Re: [Geotools-gt2-users] errror converting from Lat/Long to UTM

2009-01-12 Thread ari fainchtein
A, Thanks for the code. What version are you running? I am using 2.5.1 and objects like Geometry, NoSuchAuthorityCodeException, FactoryException, etc don't seem to be part of it. I tried looking in the javadoc and those objects dont seem to be there either. Could you send me your packa

Re: [Geotools-gt2-users] errror converting from Lat/Long to UTM

2009-01-12 Thread Alexandre Pretyman
Hi Ari, Try the following code and see if it suffice your needs, it is what I wrote to convert from WGS84 to UTM, I'm not sure this is the best method, but has been working for me so far. = /** * Conversion utility class to convert from WGS84 to UTM * @author Alexand

Re: [Geotools-gt2-users] errror converting from Lat/Long to UTM

2009-01-12 Thread Martin Desruisseaux
ari fainchtein a écrit : > Exception in thread "main" java.lang.IncompatibleClassChangeError: > Implementing class Exception ending in "Error" are usually a compilation problem. In this case, we lack information about the cause of this error - I don't know what is happening. But if you happen to h

Re: [Geotools-gt2-users] errror converting from Lat/Long to UTM

2009-01-11 Thread ari fainchtein
I am using 2.5.1. and java 1.5 on os x On 12/01/2009, at 2:29 PM, AJ R wrote: I believe this is a known problem with geotools 2.4 and Java 6. I believe the problem has been fixed in geotools 2.5. what version of geotools do u use?? Regards Ajay Ravichandran On Sun, Jan 11, 2009 at 2:5

Re: [Geotools-gt2-users] errror converting from Lat/Long to UTM

2009-01-11 Thread AJ R
I believe this is a known problem with geotools 2.4 and Java 6. I believe the problem has been fixed in geotools 2.5. what version of geotools do u use?? Regards Ajay Ravichandran On Sun, Jan 11, 2009 at 2:59 PM, ari fainchtein wrote: > Hello, > I am trying to convert lat long into utm, when

[Geotools-gt2-users] errror converting from Lat/Long to UTM

2009-01-11 Thread ari fainchtein
Hello, I am trying to convert lat long into utm, when executing the following code: double utmZoneCenterLongitude = -123; // Center lon of zone, example: zone 10 = -123 int zoneNumber = 55;// zone number, example: 10