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.
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.