I'm using GeoServer - GeoWebCache with one layer group set to British National Grid (EPSG:27700). All layers within the group are the same projection - EPSG:27700
I've created a gridset for EPSG27700 and set the bounds to match the extent of my layer group.
I'm using OpenLayers 3 to fetch my layer using the following code:
var floodLayer = new ol.layer.Tile({
extent: [96092.79481278273, 4921.6053531033685, 692596.2537952941, 665725.907765107],
source: new ol.source.TileWMS({
url: 'http://GEOSERVER/geoserver/Flood/wms',
params: { workspace: 'Flood', layers: 'FloodRisk', tiled: true },
serverType: 'geoserver',
projection: 'EPSG:27700',
)
})
The extents above match the extents for the layer and the grid set. Hence the "Origin" should be the same - right??
So why do all my tile requests say "request does not align". The gridset is set to 256X256, I'm requesting 256x256.
What am I missing here?
So after 1 week of trying to resolve this issue I have to say I am not much further forward. I've set the same extent on the layers, gridset and openlayers request. I've set the same set of resolutions that are used by the OS base layer on the cached gridset, and also set these resolutions on the Flood layer overlay. Everything is the same and should line up, but I'm still getting 95% cache misses with the occasional hit when zoomed in.
1393.0196, 13494.9764, 671196.3657, 1230275.0454
(from spatialreference.org/ref/epsg/osgb-1936-british-national-grid). Why is your lower northing 4921.6053531033685 ? Why is your upper easting 692596.2537952941 ? Did you possibly swap X and Y?