> From: Jody Garnett <[EMAIL PROTECTED]>

> Hi Matthias; the CSAuthorityFactory has changed a bit over time; I 
> confirm that the functionality you are looking for is not available on 
> trunk.

Martin just wrote me: It is still available, but as a non-type-safe hack only:
Set<String> codes = csFactory.getAuthorityCodes((Class) Unit.class);

> Now your request to look up units is also valid ... units have switch 
> over to JSR-275 so let us explore what they have going on. I am used to 
> looking up units as static constants (NonSI.FOOT and SI.METER for 
> example) but I know there is some run time facilities as well...
> 
> The best I can find is the SystemOfUnits.getUnits() Set<Unit<?>> method 
> ... which both SI and NonSI extend.

I am glad we use JSR-275 now.

Well if the set of supported units is indeed the set defined by JSR-275 I am 
fine with this. In the worst case I can write the same hardcoded list into my 
widget model. I just need to be on par with GeoTools.

Thanks for clarifying.

P.P.S. Sorry for posting the original question on uDig list accidentally. It 
was meant for GT list.
-- 
Matthias Basler
[EMAIL PROTECTED]

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to