WindowsServer2008でPostGIS/Geoserver/OpenLayersスタックに基づいた単純なWebマップをテストしようとしています。このチュートリアルとgeoserverのドキュメントを使用しています。
GeoWebCacheを使用してマップにWMSレイヤーを追加しようとすると、次のようになります。
var index1d = new OpenLayers.Layer.WMS(
"Index1",
"http://localhost:1979/geoserver/gwc/service/wms",
{'layers': "Index2000:index1d",
'format': "image/png",
'transparent': true
},
{'opacity': 1.0, 'isBaseLayer': true}
);
map.addLayer(index1d);
私は悪名高い「ピンクのタイル」を手に入れます。Geoserverのエラーは次のように述べています:
ERROR [geowebcache.GeoWebCacheDispatcher] - Requested horizontal resolution:
750.0000000000005 , best match: 632.4668417968734 exceeds 10% threshold.
Perhaps the client is configured with an incorrect set of scales (resolutions),
or the DPI setting is off compared to the one in GWC ? http://localhost:
1979/geoserver/gwc/service/wms
私のレイヤーは正しく構成されているようで、GeoWebCacheなしで提供すると次のようになります。
"http://localhost:1979/geoserver/wms"
すべてが正常に動作します。
誰かが私が間違っているところを指摘できますか?