[Geoserver-users] GWC tile look up fails

Hi,

I have a gridset configured for british national grid EPSG: 27700, for a particular zoom level (resolution = 5.0) I get rectangular groups of valid tiles surrounded by large areas of missing tiles, yet all tiles appear if I zoom in or out to a different zoom level. The client is implemented with open layers and is initialised with zoom resolutions that match the gridset.

I’ve done the calculations and the requested bounds seem correct to me and don’t understand how GWC comes up with the reports tile index.

image001.png

image002.png

image003.png

image004.png

image005.png

image006.png

image007.png

···

size

x1

y1

x2

y2

width

height

res x

res y

Tile x

Tile y

Result

256

0

0

700000

1100000

← Gridset Origin

387840

399360

389120

400640

1280

1280

5.00

5.00

303.00

312.00

Fails tile index = 272.72, 286.36

386560

399360

387840

400640

1280

1280

5.00

5.00

302.00

312.00

Works

The requests are below in order of the above table. Note, geoserver/wms is mapped to geoserver/gwc/service/wms by an apache proxy

http://xxxx/geoserver/wms?request=GetMap&service=WMS&VERSION=1.1.1&LAYERS=os-combined&CRS=EPSG%3A27700&FORMAT=image%2Fpng&TRANSPARENT=false&STYLES=&SRS=EPSG%3A27700&BBOX=387840,399360,389120,400640&WIDTH=256&HEIGHT=256

Returns 400: X,Y values for the tile index were calculated to be {275.45454545454544, 283.6363636363636} which had to be rounded to {275, 284} and exceeds the threshold of 10%. Perhaps the client is using the wrong origin ?

http://xxxx/geoserver/wms?request=GetMap&service=WMS&VERSION=1.1.1&LAYERS=os-combined&CRS=EPSG%3A27700&FORMAT=image%2Fpng&TRANSPARENT=false&STYLES=&SRS=EPSG%3A27700&BBOX=386560,399360,387840,400640&WIDTH=256&HEIGHT=256

Gives the expect tile.

Does anyone have an ideas what I’m doing ?

Kind Regards, Vic

Cubic Transportation Systems

Victor Kirk

Senior Software Engineer

Cubic Transportation Systems (ITMS) Ltd

+44 1642 636894

cubic.com/transportation

NextCity

RSS

Facebook

Twitter

LinkedIn

YouTube



Joint Winner, Operational and Technical Excellence, Contactless Bankcard Payment



UITP (International Association of Public Transport) Awards 2015



Joint Winner, Best New Innovative Practice-Partnership Deployment, Ventra



ITS-America Awards 2015



http://www.cubic.com/Transportation/About-CTS/Awards

Sorry everyone, found the problem. That zoom level was not in the gridset, I was looking at the wrong server (too many geoserver instances).

Hope no one wasted any time.

image001.png

image002.png

image003.png

image004.png

image005.png

image006.png

image007.png

···

From: Kirk, Victor [mailto:VICTOR.KIRK@…7093…]
Sent: 10 December 2015 14:45
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] GWC tile look up fails

Hi,

I have a gridset configured for british national grid EPSG: 27700, for a particular zoom level (resolution = 5.0) I get rectangular groups of valid tiles surrounded by large areas of missing tiles, yet all tiles appear if I zoom in or out to a different zoom level. The client is implemented with open layers and is initialised with zoom resolutions that match the gridset.

I’ve done the calculations and the requested bounds seem correct to me and don’t understand how GWC comes up with the reports tile index.

size

x1

y1

x2

y2

width

height

res x

res y

Tile x

Tile y

Result

256

0

0

700000

1100000

← Gridset Origin

387840

399360

389120

400640

1280

1280

5.00

5.00

303.00

312.00

Fails tile index = 272.72, 286.36

386560

399360

387840

400640

1280

1280

5.00

5.00

302.00

312.00

Works

The requests are below in order of the above table. Note, geoserver/wms is mapped to geoserver/gwc/service/wms by an apache proxy

http://xxxx/geoserver/wms?request=GetMap&service=WMS&VERSION=1.1.1&LAYERS=os-combined&CRS=EPSG%3A27700&FORMAT=image%2Fpng&TRANSPARENT=false&STYLES=&SRS=EPSG%3A27700&BBOX=387840,399360,389120,400640&WIDTH=256&HEIGHT=256

Returns 400: X,Y values for the tile index were calculated to be {275.45454545454544, 283.6363636363636} which had to be rounded to {275, 284} and exceeds the threshold of 10%. Perhaps the client is using the wrong origin ?

http://xxxx/geoserver/wms?request=GetMap&service=WMS&VERSION=1.1.1&LAYERS=os-combined&CRS=EPSG%3A27700&FORMAT=image%2Fpng&TRANSPARENT=false&STYLES=&SRS=EPSG%3A27700&BBOX=386560,399360,387840,400640&WIDTH=256&HEIGHT=256

Gives the expect tile.

Does anyone have an ideas what I’m doing ?

Kind Regards, Vic

Cubic Transportation Systems

Victor Kirk

Senior Software Engineer

Cubic Transportation Systems (ITMS) Ltd

+44 1642 636894

cubic.com/transportation

NextCity

RSS

Facebook

Twitter

LinkedIn

YouTube



Joint Winner, Operational and Technical Excellence, Contactless Bankcard Payment



UITP (International Association of Public Transport) Awards 2015



Joint Winner, Best New Innovative Practice-Partnership Deployment, Ventra



ITS-America Awards 2015



http://www.cubic.com/Transportation/About-CTS/Awards


This document is intended for, and should only be read by, those persons to whom it is addressed. Its contents are confidential and if you have received this message in error, please delete it. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without our prior written consent is strictly prohibited.

Any views expressed in this message are those of the individual sender, and do not necessarily represent the position of Cubic Transportation Systems (ITMS) Limited (‘CTS’). Furthermore CTS does not authorise or use e-mail for official contractual correspondence. Nothing received in e-mail has any contractual validity.

CTSL and each legal entity in Cubic Corporation reserve the right to monitor all e-mail communications through its networks.

Registered Office:
Cubic Transportation Systems Ltd
AFC House
Honeycrock Lane
Salfords
Surrey
RH1 5LA
United Kingdom

Registered in England under number 8498086