ThinkGeo.com    |     Documentation    |     Premium Support

This CRS is not supported in the Wms server

Hello,


I just downloaded the lateste (4.0) release from you servers, and installed it. I tried to change the WmsRasterLayer I used to a new TiledWmsServer.


But I get the following error : This CRS is not supported in the WMS server.


However, this works good with the old WmsRasterLayer, and I set the same SRS on the server, and CRS in the client layer.


 


Client :


wmsLayer = new TiledWmsLayer(WmsUri);

wmsLayer.DrawingExceptionMode = DrawingExceptionMode.DrawException;

wmsLayer.Crs = "EPSG:21781";


 


Server GetCapabilities :


<Layer>

              <SRS>EPSG:21781</SRS>

              <BoundingBox SRS=""EPSG:21781"" minx=""465000"" maxy=""315000"" maxx=""850000"" miny=""56000"" />


...(layers and sublayers configuration)...


 </Layer>


 


I must say that the SRS value in only specified in the root Layer, not in every child Layer.


Did I miss something ?

Thanks

Guillaume.



Guillaume,


I think the problem probably is the target EPSG: 21781 is not set correctly in the capabilities file. See following sample text in attachment to set the EPSG:
<layer></layer>

<Name>DEFAULT</Name>
DEFAULT

 
 
 
Any more questions just feel free to let me know.
 
Thanks.
 
Yale

2031-layersSetInCapabilies.txt (1.25 KB)

Hello Yale, 
  
 Thanks for your answer. 
 For the WmsRasterLayer I had to set the right SRS only on the root layer. 
 For the TiledWmsLayer I have to set the right SRS for each layer in my Capabilities, and not only on the root layer. 
  
 My problem is solved. 
 Thanks. 
 Guillaume. 


Guilaume, 
  
 Thanks for letting me know your status, I think we need to set the SRS for each layer in TiledWmsLayer up to now. 
  
 Thanks. 
  
 Yale