[Geoserver-devel] [jira] (GEOS-5381) Tiles requested via cascaded WMS look different from tiles drequested directly

A. Walter created BugGEOS-5381
Tiles requested via cascaded WMS look different from tiles drequested directly

Issue Type:

BugBug

Affects Versions:

2.2

Assignee:

Andrea Aime

Components:

WMS

Created:

29/Oct/12 6:23 AM

Description:

Hello,

I have added an external WMS server as a data store to my GeoServer. I was expecting GeoServer to display exactly the same tiles I get when I request them directly from the remote WMS, but the tiles I receive from GeoServer look different (and, unfortunately, “uglier”).

For example:

This is a request to the original WMS server (jpeg, but same for png):
http://ows.terrestris.de/osm-basemap/service?LAYERS=OSM-WMS-Deutschland&SRS=EPSG%3A31467&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=3474387.6290625,5526143.6123375,3474554.910375,5526310.89365&WIDTH=256&HEIGHT=256

My GeoServer isn’t publicly available, so I cannot link directly to it, but this is what they look like for MY_GEOSERVER_URL?LAYERS=namespace%3AOSM-WMS-Deutschland&SRS=EPSG%3A31467&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&BBOX=3474387.6290625,5526143.6123375,3474554.910375,5526310.89365&WIDTH=256&HEIGHT=256
http://i47.tinypic.com/2v8pdzt.jpg
(Streets look “fat”, labels are bigger, some labels are missing completely…)

I noticed in GeoServer’s logs that GeoServer is actually issuing this request for the above tile:
http://ows.terrestris.de/osm-basemap/service?SERVICE=WMS&LAYERS=OSM-WMS-Deutschland&FORMAT=image%2Fpng&TRANSPARENT=FALSE&HEIGHT=266&BGCOLOR=0xFFFFFF&REQUEST=GetMap&BBOX=3474381.4213575437,5526136.751189917,3474561.771522583,5526317.101354956&WIDTH=266&STYLES=&SRS=EPSG:31467&VERSION=1.1.1

So apparently it is not just handing my request through to the original WMS, but instead it requests a larger tile (266x266 instead of the original 256x256). The WMS responds with one of the “ugly” tiles.

I tried to be clever by requesting a 246x246 tile from my GeoServer, leading GeoServer to request the following 256x256 tile from the original WMS:
http://ows.terrestris.de/osm-basemap/service?SERVICE=WMS&LAYERS=OSM-WMS-Deutschland&FORMAT=image%2Fpng&TRANSPARENT=FALSE&HEIGHT=256&BGCOLOR=0xFFFFFF&REQUEST=GetMap&BBOX=3474487.279063145,5526130.216763615,3474661.094801882,5526304.032502458&WIDTH=256&STYLES=&SRS=EPSG:31467&VERSION=1.1.1

Which is, again, an ugly tile. (Maybe because the bbox is different from the one used above, because it’s created by enlarging a 246x246 box?)

I am not sure if this is actually a bug or if requesting larger than necessary tiles is the desired behaviour.

If this IS the desired behaviour, however, I’d really appreciate it if an option for “just hand this request to the cascaded WMS, no adjustments necessary” could be added.

Thanks a lot in advance!

[Note: This question was asked at the GeoServer Mailing List as well a few weeks ago, but there were no responses, so I’m still lost on this issue.]

Project:

GeoServer

Priority:

MinorMinor

Reporter:

A. Walter

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)