P.S. Sorry, accidentally sent this to uDig list first... Hi all,
today I decided I should upgrade GISWidgets to use the latest GeoTools version, namely 2.5 RC1 (it used 2.3 before). Most changes seem cosmetical and can be solved easily, but I run into a problem where I am missing functionality in 2.5. that existed (intended or not) in 2.3.x: How to query all available units (length, angle) from an authority factory. In particular I want all units supported by EPSG. I have never been able to retrieve linear and angular units separately, but with GeoTools 2.3 the following worked: CSAuthorityFactory csFactory = ... Set<String> codes = csFactory.getAuthorityCodes(Unit.class); Now this method requires the interface "IdentifiedObject", which is not supported by the Unit class. I had a look at the user guide, but all I found was related to "IdentifiedObject"s. Also the CRS utility class has a method "getSupportedCodes", but this will all sorts of objects, but no units either. (I am using the HSQL plugin. Doesn't this plugin contain units?) -- Matthias Basler [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel