【发布时间】:2018-06-01 20:59:29
【问题描述】:
我有 TileLayer,其中包含 GeoServer2.13 上的一堆数据,并使用 OpenLayers v4.1 API 从浏览器客户端发出请求。 所做的一切是:
1.带投影的Openlayer地图:
var map: any = new ol.Map({
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
})
],
target: 'Map',
projection: 'EPSG:900913',
controls: ol.control.defaults({
attributionOptions: {
collapsible: false
}
}),
view: new ol.View({
center: [0, 0],
zoom: 2
})
});
2.WMS 请求为平铺 True:
layer: new ol.layer.Tile({
source: new ol.source.TileWMS({
url: _GESERVER_URL +'geo/wms',
params: {
'FORMAT': 'image/png',
'VERSION': '1.1.1',
'TILED': true,
'LAYERS': 'geo':myTileLayer'
},
projection: 'EPSG:4326'
})
})
3.在地理服务器上:
-Layer Data tab SRS:4326
-Http Setting response header 3600
-Seeding Executing task 1
-ZoomLevel 15
-GridSet:EPSG:900913 and EPSG:4326
-Metatiling factors 4 by 4
-Image Format image/jpeg and image/png
-DiskQuata:3GB
-TileDimensions:256 x 256
我也尝试过使用 image/png8,但仍然无法加快速度。 是否需要任何其他配置才能使 GeoWebcache 具有更高的性能?
【问题讨论】:
-
你使用的是正确的URL吗? example.com/geoserver/gwc/service/wms
-
不要忘记播种瓦片(预渲染它们),或者在第二次请求瓦片时评估速度影响,而不是第一次创建瓦片。跨度>
标签: geoserver