zoukankan      html  css  js  c++  java
  • 【GIS】GeoServer、GeoWebCache发布ArcGIS瓦片集成测试(2.15.4)

    一、geowebcache.xml文件配置

        <arcgisLayer> 
          <name>ArcGISCache</name> 
          <tilingScheme>I:9000_GISgisdata-cacheArcGISCacheLayersconf.xml</tilingScheme> 
          <tileCachePath>I:9000_GISgisdata-cacheArcGISCacheLayers\_alllayers</tileCachePath> 
          <hexZoom>false</hexZoom> 
        </arcgisLayer>
    
         <wmsLayer>
          <name>ChinaCityLatLon</name>
          <mimeFormats>
            <string>image/gif</string>
            <string>image/jpeg</string>
            <string>image/png</string>
            <string>image/png8</string>
          </mimeFormats>
          <wmsUrl>
            <string>http://192.168.198.252:8080/geoserver/demo/wms</string>
          </wmsUrl>
          <wmsLayers>demo:ChinaCityLatLon</wmsLayers>
        </wmsLayer>
        

    二、配置说明

    ArcGISCache:ArcGIS瓦片目录
    ChinaCityLatLon:其他GeoServer服务,通过gwc进行缓存托管,如全部下载之后,可以脱离那台GeoServer服务

    三、Leaflet测试代码

                L.tileLayer.wms("http://127.0.0.1:5430/geoserver/gwc/service/wms", {
                    layers: 'ArcGISCache',
                    format: 'image/png',
                    transparent: true,
                    noWrap: true
                }).addTo(m); 
                
                const url2 = 'http://127.0.0.1:5430/geoserver/gwc/service/wmts/';
                const dem_tile = new L.TileLayer.WMTS(url2, {
                    layer: 'ChinaCityLatLon', 
                    tilematrixSet: 'EPSG:900913',
                    format: 'image/png'
                })
                dem_tile.addTo(m)

    四、具体效果










  • 相关阅读:
    洛谷-P5709 【深基2.习6】Apples Prologue
    右键添加功能
    配置Java环境变量遇到的坑
    mysql安装
    页面置换算法
    程序员画图软件
    Java中传值和传引用
    计算机网络之链路层
    Python开发【第十五篇】模块的导入
    Python开发【第十四篇】装饰器
  • 原文地址:https://www.cnblogs.com/defineconst/p/13502203.html
Copyright © 2011-2022 走看看