[Geoserver-users] WMS group-layer problems with SRS

I’m having problem setting SRS to EPGS:3006 on my WMS group-layer. All the feature layers (from ArcSDE) in the group are having that SRS. By choosing 3006 I get this error in the geoserverlog:

log4j:WARN File option not set for appender [geoserverlogfile].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?
java.lang.NullPointerException: Unable to transform referenced envelope, crs has not yet been provided.
at org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:546)
at org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:512)
at org.vfny.geoserver.action.wms.WMSContentAction.executeGenerateBBOX(WMSContentAction.java:173)
at org.vfny.geoserver.action.wms.WMSContentAction.execute(WMSContentAction.java:85)
at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)

I’m using geoserver 1.7.0 now. In geoserver 1.7.0-rc3 setting that SRS was no problem. So something must have changed!

Regards,
Karin Sjoberg

Sjöberg Karin ha scritto:

I'm having problem setting SRS to EPGS:3006 on my WMS group-layer. All the feature layers (from ArcSDE) in the group are having that SRS. By choosing 3006 I get this error in the geoserverlog:
log4j:WARN File option not set for appender [geoserverlogfile].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?
java.lang.NullPointerException: Unable to transform referenced envelope, crs has not yet been provided.
        at org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:546)
        at org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:512)
        at org.vfny.geoserver.action.wms.WMSContentAction.executeGenerateBBOX(WMSContentAction.java:173)
        at org.vfny.geoserver.action.wms.WMSContentAction.execute(WMSContentAction.java:85)
        at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        .......
I'm using geoserver 1.7.0 now. In geoserver 1.7.0-rc3 setting that SRS was no problem. So something must have changed!

Hum... looking at the changelog for that file the only change that
might be involved is
http://jira.codehaus.org/browse/GEOS-2125
That's the last patch I can see at least, thought this should have been
into RC3 already, RC3 was released September 22 and the patch
for GEOS-2125 landed mid August, even before RC2 was released)....

What exactly did you do? Did you specify the SRS by hand,
or left it empty and just pressed the generate bbox button right away
and expected GeoServer to fill it in for you?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

I started all over with a new install of GeoServer 1.7.0. I didn't copy any files from the old one, and now it works! :slight_smile: Something must have gone wrong with my other installation or with some of the files in it. Thanks for answering - it made me belive the problem could be solved.
/ Karin

-----Ursprungligt meddelande-----
Från: Andrea Aime [mailto:aaime@anonymised.com]
Skickat: den 3 december 2008 15:14
Till: Sjöberg Karin
Ämne: Re: SV: [Geoserver-users] WMS group-layer problems with SRS

Sjöberg Karin ha scritto:

I have 1.7.0-rc3 installed on one machine, and there it works fine to
set EPGS:3006 for my WMS grouplayers. I enter EPGS:3006 and then hit
the generate button and it gives me nice coordinates.
If I do the same on the machine where I have installed geoserver
1.7.0-stable, it doesn't work (I think I have the nightly build from
nov 23). After entering EPGS:3006 and then hit the generate button it
goes back to the default EPGS:4326 and give me the message I sent in
the logfile. What does this mean: "Unable to transform referenced
envelope, crs has not yet been provided" ?

It means some of the layers do not have a native SRS it seems.
When you configured them in GeoServer did they have a native one or you had to input it manually?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.