[Geoserver-users] Layer native SRS

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 earlier email about 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.

Hi,

I am trying to do a layer of count by zip code. I use a style of circle with the count number as the label which is palced in the center of the circle. Please see the SLD below. It works fine when the map is loaded, but when I zoom in the map, the label is not centered in the circle anymore. Instead, the label position is outside of the circle.

Is there a way to solve this problem?

<?xml version="1.0" encoding="ISO-8859-1"?>



Attribute-based point

Attribute-based point Small 1 to 10 SyndromeCount 10 circle #FF0000 0.2 15 Count Arial 12 normal bold 0.5 0.5 #000000

Thanks!
Maggie

On Mon, Feb 4, 2013 at 6:50 PM, Jonathan Moules <jonathanmoules@anonymised.com.4942…> wrote:

Anyone on the dev list know?

I do (but please read again the posting guidelines, there’s not always time to answer all questions:
http://geoserver.org/display/GEOS/GeoServer+user+list+posting+guidelines).

Long story short, GeoServer takes the srid from the Oracle metadata tables and hopes that
it is a valid EPSG code, goes into the EPSG db and asks for “EPSG:srid”.

Oracle uses a ton of non standard codes however, when one of those is found we are not
going to be able to guess the native SRS.

That’s one of the reasons why we have an optional metadata table, specific for GeoServer,
that you can fill manually to tell GeoServer about the actual EPSG code and the geometry
type as well:

http://docs.geoserver.org/latest/en/user/data/database/oracle.html#using-the-geometry-metadata-table

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it