GeoServer 五 發佈ArcGis切片(使用Geowebcache)

目錄

 

1.使用版本:

2.部署geowebcache 1.10.0

 3.重新啓動geoserver

4.打開geowebcache.xml,配置arcgisLayer

5.重新啓動geoserver,瀏覽發佈成功的arcgis切片服務


1.使用版本:

geoserver 2.13.0

geowebcache 1.10.0

arcgis10.2 切片教程

2.部署geowebcache 1.10.0

  安裝方法:將下載的geowebcache獨立部署包解壓到geoserver的webapp目錄下  例如:webapp/geowebcache  

 配置:打開geowebcache\WEB-INF\web.xml,加入如下節點(arcgis文件夾路徑需要先手動創建好)

   加入節點

<context-param>
 <param-name>GEOWEBCACHE_CACHE_DIR </param-name>
 <param-value>E:\YY\programFiles\GeoServer 2.13.0\webapps\geowebcache\WEB-INF\arcgis</param-value>
</context-param>

 3.重新啓動geoserver

   如果無法啓動,那麼找到geowebcache-core-context.xml

<bean id="gwcArcGIGridsetConfigutation" class="org.geowebcache.arcgis.layer.ArcGISCacheGridsetConfiguration"/> 

  重新啓動會在配置的arcgis文件夾下生成geowebcache.xml文件

4.打開geowebcache.xml,配置arcgisLayer

<arcgisLayer>
	<name>naturalearth</name>
	  <tilingScheme>E:\YY\GISData\punlish\yangzhouPng\yangz\conf.xml</tilingScheme>
	  <tileCachePath>E:\YY\GISData\punlish\yangzhouPng\yangz\_alllayers</tileCachePath>
	<hexZoom>false</hexZoom>
</arcgisLayer>

5.重新啓動geoserver,瀏覽發佈成功的arcgis切片服務

瀏覽器中打開如下路徑:http://localhost:8080/geowebcache

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章