[Geoserver-users] Cascading WMS Issue

Hi, all,
I create a WMS server, which public image by ESPG:900913. I am going to serve images to other client by ESPG:4326. Then, I use Cascading WMS of GeoServer to public image from 900913 to 4326. Unfortunately It failed. After the investigation, I found geoserver don’t reproject the “GetMap” request.
For example, when i request following to GeoServer,

http://192.168.1.101:8080/geoserver/hrv_wms/wms?LAYERS=hrv_wms%3Aall&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-105.11718750006,-70.339496220268,140.27343750007,45.676128779794&WIDTH=698&HEIGHT=330

My native wms server receive,

http://192.168.1.101:8888/wms?SERVICE=WMS&LAYERS=osm_auto%3Aall&FORMAT=image
%2Fpng&HEIGHT=330&TRANSPARENT=FALSE&BGCOLOR=0xFFFFFF&REQUEST=GetMap&BBOX=-105.11718750006,-70.339496220268,140.27343750007,45.676128779794&WIDTH=698&STYLES=&SRS=EPSG:4326&VERSION=1.1.1

You can see the SRS and BBOX are not changed. But it should be 900913 and lat./lon. when native wms server received.

My Cascading WMS settings are,

Coordinate Reference Systems
Native SRS
EPSG:WGS84 / Google Mercator…
Declared SRS
EPSG:WGS 84…
SRS handling
Reproject native to declared

Native Bounding Box
-20,037,508.3428, -20,037,508.3428, 20,037,508.3428, 20,037,508.3428
Lat/Lon Bounding Box

-180.00000000009663, -85.05112877981496, -180.00000000009663, -85.05112877981496

Attachment is my native wms capabilities.

Thanks,
Shawn

get_capability.xml (3.4 KB)

Hi Shawn,

Since you have cascading wms, are you sure the remote wms server that provides data for your request supports the projection from espg:900913 to epsg:4326? BTW, you may want to replace 900913 with 3857 instead. 3857 is the formal epsg code for google and other web mapping apps.

From the urls you observed, the srs and bbox seems OK to me. You want the images in epsg:4326, do you? That's the role of the geoserver@anonymised.com to compare with the native projection and then conduct reprojection if necessary. The proxy geoserver@anonymised.com do not have to know the detail of the layers served at remote at all.

I would suggest you to check the geoserver@anonymised.com and see if it wms layers support epsg 4326 and also if the layer is raster, how it was created. Is it cached with a particular projection?

Just my two cents,

Guan

----- Original Message -----
From: "Shawn Gao" <shawngao5@anonymised.com>
To: geoserver-users@lists.sourceforge.net
Sent: Sunday, September 1, 2013 5:57:09 AM
Subject: [Geoserver-users] Cascading WMS Issue

Hi, all,
I create a WMS server, which public image by ESPG:900913. I am going to serve images to other client by ESPG:4326. Then, I use Cascading WMS of GeoServer to public image from 900913 to 4326. Unfortunately It failed. After the investigation, I found geoserver don't reproject the "GetMap" request.
For example, when i request following to GeoServer,

http://192.168.1.101:8080/geoserver/hrv_wms/wms?LAYERS=hrv_wms%3Aall&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-105.11718750006,-70.339496220268,140.27343750007,45.676128779794&WIDTH=698&HEIGHT=330

My native wms server receive,

http://192.168.1.101:8888/wms?SERVICE=WMS&LAYERS=osm_auto%3Aall&FORMAT=image
%2Fpng&HEIGHT=330&TRANSPARENT=FALSE&BGCOLOR=0xFFFFFF&REQUEST=GetMap&BBOX=-105.11718750006,-70.339496220268,140.27343750007,45.676128779794&WIDTH=698&STYLES=&SRS=EPSG:4326&VERSION=1.1.1

You can see the SRS and BBOX are not changed. But it should be 900913 and lat./lon. when native wms server received.

My Cascading WMS settings are,

Coordinate Reference Systems
Native SRS
EPSG:WGS84 / Google Mercator...
Declared SRS
EPSG:WGS 84...
SRS handling
Reproject native to declared

Native Bounding Box
-20,037,508.3428, -20,037,508.3428, 20,037,508.3428, 20,037,508.3428
Lat/Lon Bounding Box

-180.00000000009663, -85.05112877981496, -180.00000000009663, -85.05112877981496

Attachment is my native wms capabilities.

Thanks,
Shawn
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users