I think that this warning originated with this commit to
org.geotools.referencing.factory.URN_Parser:
https://github.com/geotools/geotools/commit/a63c0d9ec83e882eb1b876d909bebe3ab1692913

For some reason, OpenLayersMapOutputFormat has always added "EPSG:" to the
beginning of the code:
String code = "EPSG:" + CRS.lookupIdentifier(crs, false);
This creates something like "EPSG:EPSG:4326", which after going through this
line:
code = WMS.toInternalSRS(code, WMS.version("1.3.0"));
becomes urn:x-ogc:def:crs:EPSG:urn:x-ogc:def:crs:EPSG:4326

Prior to the linked commit, URN_Parser was able to still determine the
correct code from this, 4326, but after the commit, it thinks the code is
"x-ogc,def,crs,EPSG,4326" which causes the NumberFormatException.

The result of this method in OpenLayersMapOutputFormat is actually not used
at all in the OpenLayers 3 output so these warning are pretty harmless other
than filling the logs.

Steve Ikeoka



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/GeoServer-2-11-1-OpenLayers-CRS-Warnings-tp5323388p5323397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to