sylvaneau

WMSLayer and EPSG/WKID codes

Discussion created by sylvaneau on Jun 29, 2012
Hi everybody,

I hope this question has not been asked before, if yes, please accept my apologies.

I have edited my previous post as I have changed my approach.

I'm working with WMS Layers provided by a Geoserver instance. So I use WMSLayers (with resourceInfo) in order to retrieve my layers.

It works fine but I noticed a small issue which annoy me a bit. If I set my baseMap with spatial reference wkid:4326 (gcs WGS 84) the EPSG code generated in the WMS request is also 4326 (that's fine), but if I use wkid:3857 (pcs WGS 84 Web Auxiliary Sphere) the generated EPSG code is 102100... Which is the same coordinate system but with the "old" code (I'm not 100% sure of what I'm saying, so feel free to correct me) and which is an incorrect EPSG code (it should be 3857).

I don't know if it's a bug or not. Do you have a solution to be able to define a basemap using the 3857 wkid and to correctly send requests to my wms server (geoserver).

Thank you very much for your help

Sylvain

Outcomes