Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.5-M0
-
Component/s: referencing
-
Labels:None
Description
Parsing urn:ogc:def:crs:EPSG:4326 in GeoServer trunk has become impossible (not sure if yesterday or the day before)
due to a change in behaviour of the referencing subsystem.
Running the following code:
package org.geotools.referencing; import org.geotools.factory.Hints; public class ForcedLonFailure { public static void main(String[] args) throws Exception { // comment out this one and it'll work System.setProperty("org.geotools.referencing.forceXY", "true"); Hints.putSystemDefault(Hints.FORCE_AXIS_ORDER_HONORING, "http"); System.out.println(CRS.decode("urn:ogc:def:crs:EPSG:4326")); } }
results in the following exception:
Exception in thread "main" org.opengis.referencing.NoSuchAuthorityCodeException: Authority "URN" is unknown or doesn't match the supplied hints. Maybe it is defined in an unreachable JAR file? at org.geotools.referencing.factory.ManyAuthoritiesFactory.noSuchAuthority(ManyAuthoritiesFactory.java:488) at org.geotools.referencing.factory.ManyAuthoritiesFactory.getAuthorityFactory(ManyAuthoritiesFactory.java:466) at org.geotools.referencing.factory.ManyAuthoritiesFactory.getCRSAuthorityFactory(ManyAuthoritiesFactory.java:547) at org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:753) at org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:728) at org.geotools.referencing.CRS.decode(CRS.java:419) at org.geotools.referencing.CRS.decode(CRS.java:353) at org.geotools.referencing.ForcedLonFailure.main(ForcedLonFailure.java:12)
This makes the wfs 1.1 and wcs 1.1 protocols unusable (they suggest the usage of the urn syntax).
Issue Links
- is depended upon by
-
GEOT-1685
remove hack introduced for the parser to recognize CRS's from a GML 3.1.1 document when GEOT-1659 is fixed
-