Я пытаюсь протестировать простую веб-карту на основе стека PostGIS/Geoserver/OpenLayers на Windows Server 2008. Я использовал этот tutorial и геосервер docs.«Розовые плитки» при использовании GeoWebCache
Когда я пытаюсь добавить слой WMS на мою карту, используя GeoWebCache:
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"
все работает отлично.
Может ли кто-нибудь указать, где я ошибаюсь?