[Geoserver-users] No caching of images for GeoServer and GeoWebCache

Hi,

we are using GeoServer 1.7.1 with the integrated plugin GeoWebCache in
combination with terraCatalog, a commercial application.

When accessing the GeoWebCache demo pages images are created in the cache
directory. However, when using it with terraCatalog and setting the URL to
http://<tomcat-server>/geoserver/gwc/service/wms, no images are created in
the cache directories. The map is shown but apparently the WMS is accessed
at /geoserver/wms:

10.90.20.221 - - [19/Jan/2009:09:45:48 +0000] "GET
/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&FORMAT=image%2Fpng&SRS=EPSG%3A4326&LAYERS=zzz&STYLES=&BBOX=-14.41%2C35.53%2C29.02%2C60.3&WIDTH=405&HEIGHT=231&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF
HTTP/1.1" 200 54426 "-" "Java/1.5.0_16"

When I try to modify the URL to /geoserver/gwc/service/wms=SERVICE=WMS... I
am getting error messages about the resolution.

What am I doing wrong?
Why is geoserver accessing the data at geoserver/wms and not at
/geoserver/gwc/service/wms?
Can GeoWebCache be expected to return a valid image for a request as
/geoserver/gwc/service/wms?SERVICE=WMS&REQUEST=GetMap...BGCOLOR=0xFFFFFF?

I would be grateful for any help in this matter.

Best regards,

Olfie
--
View this message in context: http://www.nabble.com/No-caching-of-images-for-GeoServer-and-GeoWebCache-tp21540900p21540900.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

If you get an error about the resolution it means that terraCatalog is not requesting proper tiles, at least not bounding boxes that match geowebcache's representation of the grid.

1) Make sure terracatalog can act as a tiling client (WMS-C)
2) Does terracatalog enable you to specify a bounding box for the data? If so, try -180.0,-90.0,180.0,90.0

If 2) works, and you would like to narrow it down to the actual extent of your data, take a look at the source code of the demo page and use those bounds.

-Arne

olfie wrote:

Hi,

we are using GeoServer 1.7.1 with the integrated plugin GeoWebCache in
combination with terraCatalog, a commercial application.

When accessing the GeoWebCache demo pages images are created in the cache
directory. However, when using it with terraCatalog and setting the URL to
http://<tomcat-server>/geoserver/gwc/service/wms, no images are created in
the cache directories. The map is shown but apparently the WMS is accessed
at /geoserver/wms:

10.90.20.221 - - [19/Jan/2009:09:45:48 +0000] "GET
/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&FORMAT=image%2Fpng&SRS=EPSG%3A4326&LAYERS=zzz&STYLES=&BBOX=-14.41%2C35.53%2C29.02%2C60.3&WIDTH=405&HEIGHT=231&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF
HTTP/1.1" 200 54426 "-" "Java/1.5.0_16"

When I try to modify the URL to /geoserver/gwc/service/wms=SERVICE=WMS... I
am getting error messages about the resolution.

What am I doing wrong? Why is geoserver accessing the data at geoserver/wms and not at
/geoserver/gwc/service/wms?
Can GeoWebCache be expected to return a valid image for a request as
/geoserver/gwc/service/wms?SERVICE=WMS&REQUEST=GetMap...BGCOLOR=0xFFFFFF?

I would be grateful for any help in this matter.

Best regards,

Olfie
  
--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers

Thank you Arne,

1) Make sure terracatalog can act as a tiling client (WMS-C)

Unfortunately, terraCatalog has a WMS but it doesn't support WMS-C.

Would it be possible to configure GeoWebCache as to return only one image
(no tiles)? The image width is less than 450 pixels. Caching the image would
already help a lot with the performance.

Regards,

Olfie

--
View this message in context: http://www.nabble.com/No-caching-of-images-for-GeoServer-and-GeoWebCache-tp21540900p21564934.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

olfie wrote:

Thank you Arne,

1) Make sure terracatalog can act as a tiling client (WMS-C)
    
Unfortunately, terraCatalog has a WMS but it doesn't support WMS-C.

Would it be possible to configure GeoWebCache as to return only one image
(no tiles)? The image width is less than 450 pixels. Caching the image would
already help a lot with the performance.

Regards,

Olfie
  
Not sure I understand you correctly, do you just need to cache a single image ? You could stick Apache in front of GeoServer and cache, or redirect to a static image, for that particular URL. May even be able to do it in Tomcat, not sure.

For the more general case, not currently. There was some talk of resources / funding for the ability to patch tiles back together to answer arbitrary WMS requests, but it hasn't come together yet.

--
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers