[Geoserver-devel] Layer native SRS

Anyone on the dev list know?
Thanks,
Jonathan

On 29 January 2013 16:24, Jonathan Moules <jonathanmoules@anonymised.com> wrote:

Hi list,
Where does GeoServer get the Oracle Native SRS from? Because I have some layers that have “UNKNOWN” in them as the native SRS.

This causes several DEBUG level issues (despite them having a declared SRS which is correct):

29 Jan 15:37:18 DEBUG [org.geoserver.gwc.layer] - Can’t compute tile layer bouds out of resource native bounds for CRS EPSG:27700
java.lang.NullPointerException: Unable to transform referenced envelope, crs has not yet been provided.
at org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:637)
at org.geoserver.gwc.layer.GeoServerTileLayer.getBounds(GeoServerTileLayer.java:807)
at org.geoserver.gwc.layer.GeoServerTileLayer.getGrids(GeoServerTileLayer.java:750)
at org.geoserver.gwc.layer.GeoServerTileLayer.checkGridSubsets(GeoServerTileLayer.java:695)
at org.geoserver.gwc.layer.GeoServerTileLayer.getGridSubsets(GeoServerTileLayer.java:681)
at org.geowebcache.demo.Demo.tableRows(Demo.java:157)
at org.geowebcache.demo.Demo.generateHTML(Demo.java:116)
at org.geowebcache.demo.Demo.makeMap(Demo.java:91)
at org.geowebcache.GeoWebCacheDispatcher.handleDemoRequest(GeoWebCacheDispatcher.java:370)
at org.geowebcache.GeoWebCacheDispatcher.handleRequestInternal(GeoWebCacheDispatcher.java:250)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

29 Jan 15:37:18 DEBUG [org.geoserver.gwc.layer] - Can’t compute bounds for tile layer Test_DB:NLPG_WSHIRE in CRS EPSG:27700. Assuming full GridSet bounds. (Argument “targetCRS” should not be null.)
java.lang.IllegalArgumentException: Argument “targetCRS” should not be null.
at org.geotools.referencing.operation.AbstractCoordinateOperationFactory.ensureNonNull(AbstractCoordinateOperationFactory.java:734)
at org.geotools.referencing.operation.BufferedCoordinateOperationFactory.createOperation(BufferedCoordinateOperationFactory.java:250)
at org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:647)
at org.geoserver.gwc.layer.GeoServerTileLayer.getBounds(GeoServerTileLayer.java:827)
at org.geoserver.gwc.layer.GeoServerTileLayer.getGrids(GeoServerTileLayer.java:750)
at org.geoserver.gwc.layer.GeoServerTileLayer.checkGridSubsets(GeoServerTileLayer.java:695)
at org.geoserver.gwc.layer.GeoServerTileLayer.getGridSubsets(GeoServerTileLayer.java:681)
at org.geowebcache.demo.Demo.tableRows(Demo.java:157)
at org.geowebcache.demo.Demo.generateHTML(Demo.java:116)
at org.geowebcache.demo.Demo.makeMap(Demo.java:91)
at org.geowebcache.GeoWebCacheDispatcher.handleDemoRequest(GeoWebCacheDispatcher.java:370)
at org.geowebcache.GeoWebCacheDispatcher.handleRequestInternal(GeoWebCacheDispatcher.java:250)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

That doesn’t look good but nothing is obviously broken (although maybe this is the cause of my https://jira.codehaus.org/browse/GEOS-5625 - WMTS GetCapabilities not working).
Thoughts?

Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.