WMS and SRS issue: "Invalid SRS given : SRS must be valid for all requested layers."

Frank Warmerdam warmerdam at POBOX.COM
Thu Jun 29 09:53:14 EDT 2006


Marcos Cobeña wrote:
> Hi again Frank,
> 
> Really thanks for your support, I think I've found the issue.
> 
> Taking network dumps I've seen the query OpenLayers use:
> 
> http://localhost:8080/cgi-bin/DGIS/mapserv.exe?bbox=-6.299999999999988,37.35000000000001,-5.849999999999988,37.80000000000001&width=256&height=256&map=DGIS_12c.map&layers=12c_linea&transparent=true&format=image/png&service=WMS&version=1.1.1&request=GetMap&styles=&exceptions=application/vnd.ogc.se_inimage&srs=EPSG:4326 
> 
> 
> , which should draw some shapes, but it doesn't. Changing bbox values
> with those ones:
> 
> http://localhost:8080/cgi-bin/DGIS/mapserv.exe?bbox=187889.12817030,4092316.51133811,197493.65136571,4099997.10096501&width=256&height=256&map=DGIS_12c.map&layers=12c_linea&transparent=true&format=image/png&service=WMS&version=1.1.1&request=GetMap&styles=&exceptions=application/vnd.ogc.se_inimage&srs=EPSG:4326 
> 
> 
> , draws everything as expected. The issue, then, seems to be in the
> way we ask MS for the layer. Is there any way to tell MS to receive
> degree positions instead of the other ones?

Marcos,

Good sleuthing.  The issue I believe is that MapServer does not know
enough about the coordinate system of it's data to properly reproject
things from whatever the projected coordinates are to lat/long.  You
need to establish the true coordinate system of the data and properly
identify that in the .map file in a PROJECTION block on the layers.

The WMS request is correct since it indicates via SRS=EPSG:4326 that the
bbox is lat/long.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org



More information about the mapserver-users mailing list