johnny.penet-esribelux-com-esridist

WMS services not loading , spatial reference problems

Discussion created by johnny.penet-esribelux-com-esridist on Jun 3, 2012
I try to add different wms services at a map. One of the wms services however fails with the error �??loadMap(): Web application error. CGI variable map is not set�??. Below you can find the different initial situation.

Base layer :  spatial reference 102100
Wms layers : spatial reference 31370 or 4258

What I noticed is that when the getmap wms request is executed, the spatial reference used for the request is 102100 and not the spatial reference defined during the definition of the wms layer.
Both wms layers can be viewed with the gaia tool. Using the gaia tool, a spatial reference of 31370 is used.

I changed the base layer to a layer with a spatial reference of 31370. Now both wms layers loads. Below I showed information about the layers.
What cause the different behavior of the wms layers,  and is there is work around? It is very annoying if no 102100 can be used in some situations for local spatial references.

Base layer used
http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer

Wms layer �??Adrespos�?? happens succesfull, wms layer �??GRB_BASISKAART�?? fails with the message
Using different spatial references does not solve the problem.

But now I run into another problem. I need to convert a selected point into WGS-84 coordinates. Using 31370 spatial reference for the project method of the geometry service results in a displacement of around 100m. But this is another problem not related to the use of wms service. I saw something similar in another thread. With 102100 the projection change is correct.

Information coming from the gaia tool :

http://wms.agiv.be/inspire/wms/adressen
Works always.
Name: Adrespos
Title: CRAB Light �?? Adrespunt

LL BBox: (2,52,50,64;5,94,51,51)
BBox: (2,52,50,64;5,94,51,51) crs = EPSG:4258
BBox: (22000,150000;259000,245000) crs = EPSG:31370
BBox: (552000,650000;759000,745000) crs = EPSG:3812
BBox: (466900,5610500;705700,5710000) crs = EPSG:3043
BBox: (466900,5610500;705700,5710000) crs = EPSG:32631
BBox: (466900,5610500;705700,5710000) crs = EPSG:25831

http://grb.agiv.be/geodiensten/raadpleegdiensten/GRB-basiskaart/wms
Works only with spatial reference 31370
Name: GRB_BASISKAART
Title: GRB-Basiskaart

LL BBox: (2,30351,50,5353;6,15972,51,6493)
BBox: (12000,143000;269000,255000) crs = EPSG:31370
BBox: (2,37763,50,5814;6,08586,51,6044) crs = CRS:84
BBox: (456883,5603440;715847,5720180) crs = EPSG:3043
BBox: (511991,642984;769002,755014) crs = EPSG:3812
BBox: (264676,6547580;677475,6728910) crs = EPSG:3857
BBox: (2,37763,50,5814;6,08586,51,6044) crs = EPSG:4258
BBox: (2,37763,50,5814;6,08586,51,6044) crs = EPSG:4326
BBox: (456883,5603440;715847,5720180) crs = EPSG:25831
BBox: (456883,5603440;715847,5720180) crs = EPSG:32631
BBox: (264676,6547580;677475,6728910) crs = EPSG:900913
BBox: (7000,138000;274000,260000) crs = EPSG:31370
BBox: (2,30351,50,5353;6,15972,51,6493) crs = CRS:84
BBox: (451794,5598350;720940,5725270) crs = EPSG:3043
BBox: (506990,637984;774002,760014) crs = EPSG:3812
BBox: (256426,6539500;685697,6736970) crs = EPSG:3857
BBox: (2,30351,50,5353;6,15972,51,6493) crs = EPSG:4258
BBox: (2,30351,50,5353;6,15972,51,6493) crs = EPSG:4326
BBox: (451794,5598350;720940,5725270) crs = EPSG:25831
BBox: (451794,5598350;720940,5725270) crs = EPSG:32631
BBox: (256426,6539500;685697,6736970) crs = EPSG:900913

Outcomes