I have preexisting caches of maps that I would like to turn into a WMS. I am trying to implement this through Geoserver/Geowebcache. I tweaked the web.xml file to set the Geowebcache_Cache_Dir to the directory with the preexisting cache. I then put the appropriate information into geowebcache.xml and Geoserver can see the cache under Tile Layers, from here I can open it in OpenLayers, however, I can't ping the cache through a WMS call from arcgis or google earth. I checked the box for direct integration with Geoserver WMS but I still cannot seem to get external softwares to see the WMS. I checked fiddler and it seems to be hitting the tiles in openlayers through /geoserver/gwc/service/wms?blahblahblah. If I try to hit that WMS endpoint from anything else I get the ever so helpful error 400.

Does anyone know the proper method for building a WMS from a cache using this software?

  • Hard to answer without seeing your config file, is it set up to point the layer to your GeoServer Instance? Oct 9 '14 at 1:39
  • I'm running Opengeo Suite 4.1.1. I can give you all the steps I did to get where I currently am:Tweaked web.xml with <!--Added new GWC Directory--> <context-param> <param-name>GEOWEBCACHE_CACHE_DIR</param-name> <param-value>D:\Workspace\Cache\Converted_Cache</param-value> </context-param> Did this to point the cache dir at the folder location with the prebuilt cache (D:\Workspace\Cache\Converted_Cache) cache named “Cache_CADRG_WMS_ARC_Layers”. After reloading Geoserver it places the geowebcache.xml file in that directory. Oct 9 '14 at 14:08
  • I tweaked that geowebcache.xml with <wmsLayer> <name>Cache_CADRG_WMS_ARC_Layers</name> <mimeFormats> <string>image/gif</string> <string>image/jpeg</string> <string>image/png</string> <string>image/png8</string> </mimeFormats> <wmsUrl> <string>demo.opengeo.org/geoserver/wms</string> </wmsUrl> <!--wmsLayers>nurc:Img_Sample</wmsLayers--> </wmsLayer> This enabled the tileset to appear under Tile Layers. Oct 9 '14 at 14:10
  • Preview with JPEG in OpenLayers works well but trying to hit the endpoint with ArcGIS (localhost:8080/geoserver/wms?) it results in no love. Even with direct integration with GWC enabled and specifying TILED=true it still won't render the tiles in Arcgis/Google Earth etc. Oct 9 '14 at 14:15
  • Have you tried your WMS url with a http:// in front of it? YOu should post your actual Xml file in your question, makes it a lot easier .. Oct 9 '14 at 15:04

After going back through my questions I wanted to post an update to this that there was a bug at the time that prevented GWC from doing this. I talked directly with the Boundless folks about this at the time. I think it's been fixed since then but haven't tested it since. I ended up working around the issue with a set of cascaded WMSes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.