Open tevbrasch opened 12 years ago
Just a quick addition, the access error message I get back when I try and use just gridsubsets with a gmaps client is:
09 Aug 10:25:39 ERROR [geowebcache.GeoWebCacheDispatcher] - null http://xxxxxxxxx/geowebcache/service/gmaps java.lang.NullPointerException at org.geowebcache.layer.wms.WMSLayer.getTile(WMSLayer.java:280) at org.geowebcache.GeoWebCacheDispatcher.handleServiceRequest(GeoWebCacheDispatcher.java:353) at org.geowebcache.GeoWebCacheDispatcher.handleRequestInternal(GeoWebCacheDispatcher.java:244) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679)
It seems that you will not get a gmaps response (tiles) if you use just gridsubsets in your gwc config file, however if you add in the old 'bounds/coords' method, it then starts to work. This is only tested with gmaps v.02 which is predominantly the version used by our users.
The client code is:
var tilelayer = new GTileLayer(null, null, null, { tileUrlTemplate: 'http://skrivte58:8080/geowebcache/service/gmaps?layers=topo23&zoom={Z}&x={X}&y={Y}', isPng:true, opacity:1.0 } );
and the geowebcache.xml wms_layer config looks like this: (GeoWebCache version 1.3-RC3, built 2012-05-08)
'''>
This returns nothing at all to the client. However if I add to the section with:
'''>
it works and I get tiles back.
I assume that the gridsubset method should work for gmaps as well as OL.
best regards
Tom