[udig-devel] Re: CRS in uDig

Jody Garnett jgarnett at refractions.net
Fri Oct 6 01:14:58 PDT 2006


Jessica Deane wrote:
> Hi Jody,
> I am currently working with uDig to develop a small prototype as an 
> integration tool for a research project.
>  
> Was wanting to be able to allow the user to select a CRS from the 
> library of CRS that is currently available in uDig. Is there a library 
> that I can import into my code to be able to select from the list of 
> CRS's?
Sure - it is called GeoTools. GeoTools actually has a extention mechaism 
allowing you to teach it additional codes (not just EPSG codes but other 
codes like AUTO2).  Not to worry it as simple as adding in additional 
jars to your classpath.

But if you are working with uDig you should just be able to use GeoTools 
directly, as it is already set up as part of that project. 
> Currenlty I am unable to use any of the geotools classes that I have 
> seen in other code that uses CRS's.
Interesting? Is that because of lack of GeoTools documentation? Or is 
your uDig plug-in dependencies not depending on net.refractions.udig.libs?

Well here is the method:
- 
http://www.krugle.com/kse/files/cvs/cvs.sourceforge.net/fudaa/fudaa_sig/src/org/geotools/referencing/CRS.java

Scroll down and look for:

*public* *static* Set//*<String>*// getSupportedCodes(*final* String authority)

Cheers,
Jody


More information about the udig-devel mailing list