Matthias Basler a écrit :
The problem is that the AuthorityFactory:getAuthorityCodes() function does not
support any kind of additional hints, like "2D" or "3D" or maybe spatial
restrictions (sth. like "... where 'area' contains 'Germany'").

We would have to figure out an API in order to specify shuch hint. Allowing user to specify a SQL "WHERE" clause may not be the most appropriate way, since not all factories are SQL backed. We could consider something like regular expression however.

A suggest to open a JIRA task for those improvements.

Question 1:
  Is there already ANY means of telling an authority factory to return 2D
  or 3D CRS and CS only? I couldn't find anything related in the code,
  but maybe I've overlooked something.

Not at this time.


Question 2:
  If not, would you think that it would be possible to add hints to
  either this specific "getAuthorityCodes()" method or alternatively to
  FactoryFinder.getCRSAuthorityFactory("EPSG", hints);
  (The latter one would not require interface changes. It would then
  return a factory that produced only 2D or only 3D objects. Why not...)

Yes, we can consider that. As said previously, a first step is to figure out an API (avoiding SQL instruction if possible).

        Martin.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to