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