Thanks for the quick response. I've gotten it to work with another code snippet 
from the geotools site:

CoordinateReferenceSystem geoCRS = CRS.decode("EPSG:4269"); //geographic NAD83
CoordinateReferenceSystem vspCRS = CRS.decode("EPSG:32145"); //Vermont State 
Plane NAD83

I'm using 2.1.0. Interestingly, the transform is a bit different than what 
ArcView/ArcMap thinks it should be by a few decimal places, I'm not sure why 
this would be the case but its not a show stopper.

Eric


         

-----Original Message-----
From: Martin Desruisseaux [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006 4:29 PM
To: Hillmuth, Eric
Cc: [email protected]
Subject: Re: [Geotools-gt2-users] Newbie cord transformation issues

Hillmuth, Eric a écrit :
> //GeographicCRS geoCRS = FactoryFinder.get String g = "4269"; 
> GeographicCRS geoCRS = FactoryFinder.getCRSAuthorityFactory("EPSG",
> null).createGeographicCRS(g);
> 
> The projects ones is fine but I'm having trouble with the geographic 
> one. I keep getting a "NoSuchAuthorityCodeException". I confirmed that
> 4269 is the EPSG code I'm after but I'm stumped, any help would be 
> appreciated. (I've hadded the gt2-epsg-hsql.jar to my class path)

The following worked as expected on my side...

    java org.geotools.referencing.factory.epsg.DefaultFactory 4269

Could you try the above-cited command line on yours machine and send us the 
output please (including the first lines with database version numbers). Also, 
which Geotools version are you using?

        Martin.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to