[Geoserver-users] raster+SLD specified style not working in GetMap request

hi again!

I'm trying to put into the same GetMap request; the problem is that one of
the layer uses a SLD and when applying a raster file, an undefined error
raises... it doesn't happens if I use sld_layer+vectorials

It WORKS
http://mygeoserver/...&LAYERS=vectorial,sld_layer&STYLES=&SLD=http://.../sld.sld
(taking the default styles for vectorial and SLD for sld_layer)

DOESN'T WORK
http://mygeoserver/...&LAYERS=raster,sld_layer&STYLES=&SLD=http://.../sld.sld
(
have also tried without success applying the default raster :
http://mygeoserver/...&LAYERS=raster,sld_layer&STYLES=raster&SLD=http://.../sld.sld
http://mygeoserver/...&LAYERS=raster,sld_layer&STYLES=raster,&SLD=http://.../sld.sld
)

if I try raster+vectorial+sld_layer WITHOUT specifying SLD parameter it
works (but using default style, not the without the desired sld file...)

Some reason for this behaviour? missing something?
thanks!

Pere
--
View this message in context: http://www.nabble.com/raster%2BSLD-specified-style-not-working-in-GetMap-request-tp18010553p18010553.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

hi,

I send you below some URLs if you want to check...
I insist on sending ALL the layers in the same GetMap request because I want
to compose with the returned image a .png, .jpeg... to let user download and
create PDFs also with these images. So, if I send the requests separetely, I
get different images than have to be mixed (using PHP's GD extension); here
you have to say the percentage of opacity for each layer, and here come the
problems and the composed final image loses quality.

If the all-in-one GetMap is not possible, some workaround?
thanks!

Pere

WORKS:
http://edit3.csic.es/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=topp:province_europe,topp:test_csvimportgispoints2&STYLES=&format=image/jpeg&bbox=-9.65,35.6,4.85,43.85&WIDTH=760&HEIGHT=380&SLD=http://edit.csic.es/fitxers/sld/pou.sld

using RASTER+SLD doesn't work:

http://edit3.csic.es/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=topp:distcoast_iberia_150sec,topp:test_csvimportgispoints2&STYLES=&format=image/jpeg&bbox=-9.65,35.6,4.85,43.85&WIDTH=760&HEIGHT=380&SLD=http://edit.csic.es/fitxers/sld/pou.sld

pere roca wrote:

hi again!

I'm trying to put into the same GetMap request; the problem is that one
of the layer uses a SLD and when applying a raster file, an undefined
error raises... it doesn't happens if I use sld_layer+vectorials

It WORKS
http://mygeoserver/...&LAYERS=vectorial,sld_layer&STYLES=&SLD=http://.../sld.sld
(taking the default styles for vectorial and SLD for sld_layer)

DOESN'T WORK
http://mygeoserver/...&LAYERS=raster,sld_layer&STYLES=&SLD=http://.../sld.sld
(
have also tried without success applying the default raster :
http://mygeoserver/...&LAYERS=raster,sld_layer&STYLES=raster&SLD=http://.../sld.sld
http://mygeoserver/...&LAYERS=raster,sld_layer&STYLES=raster,&SLD=http://.../sld.sld
)

if I try raster+vectorial+sld_layer WITHOUT specifying SLD parameter it
works (but using default style, not the without the desired sld file...)

Some reason for this behaviour? missing something?
thanks!

Pere

--
View this message in context: http://www.nabble.com/raster%2BSLD-specified-style-not-working-in-GetMap-request-tp18010553p18027363.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

pere roca wrote:

hi,

I send you below some URLs if you want to check... I insist on sending ALL the layers in the same GetMap request because I want
to compose with the returned image a .png, .jpeg... to let user download and
create PDFs also with these images. So, if I send the requests separetely, I
get different images than have to be mixed (using PHP's GD extension); here
you have to say the percentage of opacity for each layer, and here come the
problems and the composed final image loses quality.

If the all-in-one GetMap is not possible, some workaround?

I believe you're stumblin in some bug but we're all at a hacking event
with plenty of stuff on our hands so no one has had the time to look into this problem you're experiencing. Please wait for next week :slight_smile:
Cheers
Andrea

  the error log (using INFO logging level) is too big (113 lines) to post in
the forum.
  Maybe the RASTER+SLd problem is solved in the last version? maybe someone
using this last version can check it for me?

  thanks!
  Pere

aaime wrote:

pere roca wrote:

hi,

I send you below some URLs if you want to check...
I insist on sending ALL the layers in the same GetMap request because I
want
to compose with the returned image a .png, .jpeg... to let user download
and
create PDFs also with these images. So, if I send the requests
separetely, I
get different images than have to be mixed (using PHP's GD extension);
here
you have to say the percentage of opacity for each layer, and here come
the
problems and the composed final image loses quality.

If the all-in-one GetMap is not possible, some workaround?

I believe you're stumblin in some bug but we're all at a hacking event
with plenty of stuff on our hands so no one has had the time to look
into this problem you're experiencing. Please wait for next week :slight_smile:
Cheers
Andrea

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/raster%2BSLD-specified-style-not-working-in-GetMap-request-tp18010553p18156345.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

pere roca ha scritto:

  the error log (using INFO logging level) is too big (113 lines) to post in
the forum. Maybe the RASTER+SLd problem is solved in the last version? maybe someone
using this last version can check it for me?

113 lines are not such a big content, I believe you can upload up to 20kb without issues. If you need to post bigger files, you can use the
Nabble attach features (the file will be kept in the Nabble servers,
the ml will only receive a link to it).
Cheers
Andrea

ok, I think the interesting part is not so large.

thanks a lot,

Pere

27-jun-2008 18:23:46 org.vfny.geoserver.wms.requests.GetMapKvpReader parseStyledLayerDescriptor
INFO: request comes in “library” mode
27-jun-2008 18:23:46 org.vfny.geoserver.servlets.AbstractService sendError
INFO: Had an undefined error: null
27-jun-2008 18:23:46 org.vfny.geoserver.servlets.AbstractService sendError
GRAVE: Service exception occurred
org.vfny.geoserver.wms.WmsException
at org.vfny.geoserests.GetMapKvpReader.parseStyledLayerDescriptor(GetMapKvpReader.java:1221)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseSldParam(GetMapKvpReader.java:1123)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseLayersAndStyles(GetMapKvpReader.java:853)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseMandatoryParameters(GetMapKvpReader.java:483)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.getRequest(GetMapKvpReader.java:215)
at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:299)
… 28 more
27-jun-2008 18:23:46 org.vfny.geoserver.wms.requests.GetMapKvpReader parseStyledLayerDescriptor
INFO: request comes in “library” mode
27-jun-2008 18:23:46 org.vfny.geoserver.servlets.AbstractService sendError
INFO: Had an undefined error: null
27-jun-2008 18:23:46 org.vfny.geoserver.servlets.AbstractService sendError
GRAVE: Service exception occurred
org.vfny.geoserver.wms.WmsException
at org.vfny.geoserver.wms.WmsExceptionHandler.newServiceException(WmsExceptionHandler.java:65)
at org.vfny.geoserver.servlets.AbstractService.sendError(AbstractService.java:865)
at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:308)
at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:192)
at org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:52)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:103)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:674)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:866)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.vfny.geoserver.wms.requests.GetMapKvpReader.findStyleOf(GetMapKvpReader.java:1448)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseStyledLayerDescriptor(GetMapKvpReader.java:1221)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseSldParam(GetMapKvpReader.java:1123)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseLayersAndStyles(GetMapKvpReader.java:853)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.parseMandatoryParameters(GetMapKvpReader.java:483)
at org.vfny.geoserver.wms.requests.GetMapKvpReader.getRequest(GetMapKvpReader.java:215)
at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:299)
… 28 more

2008/6/27 Andrea Aime <aaime@anonymised.com>:

pere roca ha scritto:

the error log (using INFO logging level) is too big (113 lines) to post in
the forum. Maybe the RASTER+SLd problem is solved in the last version? maybe someone
using this last version can check it for me?

113 lines are not such a big content, I believe you can upload up to 20kb without issues. If you need to post bigger files, you can use the
Nabble attach features (the file will be kept in the Nabble servers,
the ml will only receive a link to it).
Cheers
Andrea