最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Geoserver: How to set custom gridset to default caching using REST - Stack Overflow

programmeradmin5浏览0评论

I've successfully added a custom gridset using the Geoserver REST API, but now I don't know how to add it as the default caching grid set. In addition I would also like to adjust the default caching formats for coverage, vector and other.

I've tried finding something in the documentation, without success. I've also tried a PUT request to /gwc/rest/config:

geoserver_request "$GEOSERVER_URL/gwc/rest/config" "$(cat gwcConfig.xml)" PUT

gwcConfig.xml:

<gwcConfiguration>
    <version>1.0</version>
    <defaultCachingGridSetIds>
        <string>EPSG:2056</string>
    </defaultCachingGridSetIds>
    <defaultCoverageCacheFormats>
        <string>image/png</string>
        <string>image/jpeg</string>
    </defaultCoverageCacheFormats>
    <defaultVectorCacheFormats>
        <string>image/png</string>
        <string>image/jpeg</string>
    </defaultVectorCacheFormats>
    <defaultOtherCacheFormats>
        <string>image/png</string>
        <string>image/jpeg</string>
    </defaultOtherCacheFormats>
</gwcConfiguration>
发布评论

评论列表(0)

  1. 暂无评论