[mapserver-users] Invalid SRS Error

Christopher Schmidt crschmidt at metacarta.com
Thu Jan 15 18:25:49 EST 2009


On Thu, Jan 15, 2009 at 04:26:40PM -0700, Bill Thoen wrote:
> I'm trying to map a shape file of contours as a WMS layer but I'm 
> getting an error, "Invalid SRS given: SRS must be valid  for all 
> requested layers." When I run OGRinfo on the shape file I get:

OGR is not the problem. Your wms_srs string in metadata->web is not set
correctly; it doesn't include whatever SRS is being requested by your
WMS client.

-- Chris

> Geometry: 3D Line String
> Feature Count: 1308
> Extent: (2155250.804139, 1608590.426636) - (2158723.886638, 1612063.531662)
> Layer SRS WKT:
> PROJCS["NAD_1983_StatePlane_Colorado_Central_FIPS_0502_Feet",
>    GEOGCS["GCS_North_American_1983",
>        DATUM["North_American_Datum_1983",
>            SPHEROID["GRS_1980",6378137.0,298.2572221]],
>        PRIMEM["Greenwich",0.0],
>        UNIT["Degree",0.0174532925199433]],
>    PROJECTION["Lambert_Conformal_Conic_2SP"],
>    PARAMETER["False_Easting",3000000.0],
>    PARAMETER["False_Northing",1000000.0],
>    PARAMETER["Central_Meridian",-105.5],
>    PARAMETER["Standard_Parallel_1",39.75],
>    PARAMETER["Standard_Parallel_2",38.45],
>    PARAMETER["Latitude_Of_Origin",37.83333333333333],
>    UNIT["Foot_US",0.30480060960122]]
> Layer: String (254.0)
> Elevation: Real (19.11)
> 
> I'm pretty sure this is EPSG:2232 (Colorado State Plane Central zone 
> feet NAD83) and it's is what I'm specifying in my WMS map file. Does 
> anyone know what's wrong here and how to fix it?
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-- 
Christopher Schmidt
MetaCarta


More information about the mapserver-users mailing list