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

Marcos Cobeña marcoscobena at GMAIL.COM
Thu Jun 29 05:26:05 EDT 2006


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?

Thanks in advance.

Regards,

2006/6/28, Frank Warmerdam <warmerdam at pobox.com>:
> Marcos Cobeña wrote:
> > Hi Frank,
> >
> > Thank you so much for your help, I tried that but, eventhough it
> > doesn't crash anymore, it still doesn't paint the shapes.
> >
> > Under ArcView, my shapes (SHP) are using this projection:
> >
> > "+proj=longlat +ellps=WGS84 +no_defs"
> >
> > , which, in my epsg projection file used, corresponds to:
> >
> > "
> > # Unknown datum based upon the WGS 84 ellipsoid
> > <4030> +proj=longlat +ellps=WGS84 +no_defs  no_defs <>
> > "
> >
> > Why then I still don't see shapes painted?
>
> Marcos,
>
> I don't know why you aren't getting a result.  Many reasons are possible.
>
> But I would encourage you to use EPSG:4326 in place of EPSG:4030.  EPSG:4030
> and EPSG:4326 are the same thing except that 4030 does not imply that we are
> using the normal WGS84 datum on the WGS84 ellipsoid.  But it seems very likely
> that in your case the WGS84 datum would apply so you might as well just use
> 4326 everywhere to avoid problems.
>
> 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
>
>


-- 
Marcos - http://www.youcannoteatbits.org


More information about the mapserver-users mailing list