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
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to