geowebcache发布 arcgis 瓦片

参考

 https://blog.csdn.net/hellfire2007/article/details/80876785?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_title~default-5.control&spm=1001.2101.3001.4242

https://blog.csdn.net/mgsky1/article/details/80151316

https://www.daimajiaoliu.com/daima/60c1de6d7826001

但是各有矛盾杂乱的地方,自己搞一遍

 

1 安装geowebcache

先检查geoserver的版本说明

比如2.18.1

http://geoserver.org/announcements/2020/11/23/geoserver-2-18-1-released.html

明确说道:

We are pleased to announce the release of GeoServer 2.18.1 with downloads ( war | bin ), documentation and extensions.

This release is made in conjunction with GeoTools 24.1 and GeoWebCache 1.18.1. This is a stable release recommended for production systems.

Thanks to everyone who contributed, and Alessandro Parma, Andrea Aime (GeoSolutions) for making this release.

 

官网下载指定版本geowebcache https://sourceforge.net/projects/geowebcache/files/geowebcache/

 

选择 geowebcache-1.18.1-war.zip

 

 

下载之后,把war扩展名直接改为zip,直接解压成geowebcache文件夹

直接把这个文件夹复制到

geoserver-2.18.1-bin\webapps 下

然后这下面有2个文件夹 

geoserver

geowebcache

启动geoserver

访问http://127.0.0.1:8080/geowebcache/

网页最下方显示

Storage Locations
Config file: XXX\geoserver-2.18.1-bin\data_dir\gwc\geowebcache.xml
Local Storage: XXX\geoserver-2.18.1-bin\data_dir\gwc

 

修改geowebcache.xml位置

按上面的路径复制geowebcache.xml 到别的位置,比如 D:\MapTileDownload\OutPut

修改XXX\geoserver-2.18.1-bin\webapps\geowebcache\WEB-INF\geowebcache-core-context.xml

  <bean id="gwcXmlConfig" class="org.geowebcache.config.XMLConfiguration">
    <constructor-arg ref="gwcAppCtx" />
    <!-- <constructor-arg ref="gwcDefaultStorageFinder" /> -->
    <constructor-arg value="D:\MapTileDownload\OutPut" /> 

参考 https://blog.csdn.net/weixin_34075268/article/details/91725108

增加一行

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

 

重启,显示新的路径说明修改成功

 

参考 https://www.cnblogs.com/haolb123/p/14663029.html

 

 

 

   

 

上一篇:Arcgis在数学建模中的应用——空间状况评价问题


下一篇:arcgis esriGeometryType