Andrea Aime a écrit :
> Cool, I will enable that hint on geoserver startup too.

I would suggest to wait. At this time, FORCE_STANDARD_AXIS_UNITS forces all
angular units to degrees and all linear units to meters, which is probably too
much since it would also forces "feets" to "meters". We probably want something
that force only sexagesimal units and left the other ones unchanged.


> Is there any way to tell which authority did generate a certain CRS, so
> that I can report CRS decoding failures only for user provided ones?

Not at this time, but this is an information that we could add in CRS metadata.
In the main time, maybe the following trick could work. You may ask for:

CRSAuthorityFactory factory = FactoryFinder.getCRSAuthorityFactory("EPSG", new
Hints(Hints.CRS_AUTHORITY_FACTORY,
org.geotools.referencing.factory.epsg.FactoryUsingWKT.class);

It should returns specifically the authority instance used for extra CRS. You
may instantiate only the CRS from this factory for testint them, or you may test
factory.getAuthorityCodes(CoordinateReferenceSystem.class).contains(...).

For a more efficient solution, it may be worh to open a JIRA task about
providing the originating authority factory in CRS metadata. We would need to
think about which metadata to use for that information.

        Martin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to