geowebcache配置


geowebcache

环境

  1. jdk8
  2. apache-tomcat-9.0.13
  3. geoserver 2.14.1
  4. geowebcache

配置

geowebcache相关

  • users.properties

    修改用户名密码admin=geoserver

    admin=geoserver,ROLE_ADMINISTRATOR
    
  • web.xml

    添加一条数据配置存放位置

     <!-- 增加数据存放位置 -->
       <context-param>
            <param-name>GEOWEBCACHE_CACHE_DIR</param-name>
            <param-value>D:\\dev\\新建文件夹\\apache-tomcat-9.0.13\\webapps\\geoserver\\data\\gwc</param-value>
        </context-param>
    

geoserver gwc配置

  • apache-tomcat-9.0.13\webapps\geoserver\data\gwc\geowebcache.xml

    添加具体的arcgis松散型切片数据存放位置

   <layers>
		<arcgisLayer>
            <name>tiles_test</name>
            <tilingScheme>D:\\dev\\Layers\\Conf.xml</tilingScheme>
            <tileCachePath>D:\\dev\\Layers\\_alllayers\\</tileCachePath>
            <hexZoom>true</hexZoom>
        </arcgisLayer>
  </layers>

访问测试

  • 灰色框中内容为设置地址即为成功配置

1552960621736

  • 点击红色框内

    1552960665894

  • 红色框内 layername 是我们在geoserver gwc下配置的name

1552960683188

  • 点击png

    1552960757747

  • 看到下图访问成功

1552960846312

转载自:https://blog.csdn.net/staHuri/article/details/88655666

You may also like...