Re: [Geotools-devel] How to query all EPSG units?

2008-09-07 Thread Martin Desruisseaux
Matthias Basler a écrit : > 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: > CSAuthorityFact

Re: [Geotools-devel] How to query all EPSG units?

2008-09-07 Thread Matthias Basler
Martin wrote: > You can still uses the above code by cheating with Java 5 generic type: > > Set codes = csFactory.getAuthorityCodes((Class) Unit.class); > > You will get "unchecked cast" compiler warning, this is a deprecated > practice, etc., but it will work for now. Of course, should have th

Re: [Geotools-devel] How to query all EPSG units?

2008-09-07 Thread Martin Desruisseaux
Matthias Basler a écrit : > I am well aware of this problem. My preferred solution would be following > method in the API: > csFactory.getAuthorityUnitCodes(ClassQuantity) > This way I could also separately retrieve units of quantity "Length" or > "Angle" without having to filter them by EPSG

[Geotools-devel] Status of sql-datastore and geometryless on trunk?

2008-09-07 Thread Ben Caradoc-Davies
Gabriel and Andrea, I am porting community-schemas from 2.4.x to trunk. The version on trunk contains sql-datastore. On trunk, Gabriel moved sql-datastore out of community-schemas to support geometryless. There are now two sql-datastore on trunk: one in unsupported, and one in unsupported/comm

Re: [Geotools-devel] Status of sql-datastore and geometryless on trunk?

2008-09-07 Thread Jody Garnett
The idea of sql-datastore (ie a DataStore with a SQL shaped hole in the API so you could do joins and mapping) is an experimental idea that has always been on a branch. I have encouraged several developers now (RobA being the most recent) to submit a proposal to GeoTools to make a formal interf

[Geotools-devel] Clarification on DefaultEngineeringDatum constructor?

2008-09-07 Thread Jody Garnett
Hi Martin I am looking at the following constructor and wondering at your intent chances are since this is generics I am just understanding things incorrectly; but it pays to be safe and ask ... The constructor looks like the following ... > public DefaultEngineeringDatum(final Map properti