0

I have a huge problem setting up geoserver's geowebcache to serve arcgis compact cache layer and I am getting a bit confused. I have installed geoserver 2.8.0 which contains geowebcache 1.8.0.

According to official geowebcache manpage (http://geowebcache.org/docs/1.8.0/configuration/layers/arcgistilingschemes.html), serving of arcgis compact cache is not possible.

On the other hand, I have found this thread (http://sourceforge.net/p/geowebcache/mailman/message/31884822/) which says that it is possible to serve this data source. I have also found ArcGIS compact cache support in geowebcache RELEASE_NOTES.txt file on github under version 1.6.x. I can also see some code that should cope with arcgis compact cache in the git directories.

I tried to add following section to the geowebcache.xml:

<arcgisLayer>
      <name>naturalearth</name>
      <tilingScheme>/home/geoserver/geoserver2.8/data_dir/gwc/arccache/conf.xml</tilingScheme>
</arcgisLayer>

But geoserver failed to start. Does anyone successfully serve arcgis compact cache? Can you please share the information about how to configure such a service with geowebcache?

Thanx a lot.

1

I have finally managed to serve arcgis compact cache with geowebcache. The problem was in poor documentation.

Note that you can not publish arcgis compact cache with geoserver built in geowebcache, but you have to use standalone geowebcache application.

Then you just have to set up GEOWEBCACHE_CACHE_DIR context parameter and edit geowebcache.xml.

Now everything works fine for me, (tested with ubuntu 14.04 LTS, tomact7 and geowebcache 1.8.0)

  • what exactly did you edit in the XML? – Jack E Apr 12 '16 at 18:00
  • you need to edit your geowebcache exactly as in the tutorial geowebcache.org/docs/1.8.0/configuration/layers/… – Milan Muňko May 5 '16 at 17:12
  • Hi, i am doing the same work. My tiles are exploded Tile cache, but it is successfully read by the geowebcache, but when when i view layers of geowebcache in browsers, it just adds layername with epsg in grid set. – Ahsan Mukhtar Aug 8 '18 at 7:11
  • @MilanMuňko can you please help me ? – Ahsan Mukhtar Aug 8 '18 at 7:12
1

As MilanMuňko has already pointed out, you'll have to use the standalone geowebcache to publish ArcGIS compact cache.

Your ArcGIS compact cache folder must include conf.xml and conf.cdi, and an _allLayers folder.

To add the ArcGIS compact cache layer, edit geowebcache.xml (you can locate this file by visiting http://localhost:8080/geowebcache then look at the bottom of the web page) by adding a arcgisLayer tag inside gwcConfiguration > layers with a tilingScheme tag pointed to conf.xml then reload the configuration:

<gwcConfiguration>
  <gridSets>
    ...
  </gridSets>
  <layers>
    <wmsLayer>...</wmsLayer>
      ...
    <arcgisLayer>
      <name>sample_cache</name>
      <tilingScheme>/usr/local/tomcat/temp/geowebcache/sample_cache/conf.xml</tilingScheme>
    </arcgisLayer>
  </layers>
</gwcConfiguration>

For more information, please visit the documentation.

Currently, this feature is fully usable in version 1.8.x - 1.10.5, partially usable (unable to preview the layer with built-in OpenLayers) in version 1.11.4 - 1.12.5 and broken in version 1.13.2 - 1.14.2.

protected by Community Jul 17 at 21:34

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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