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

Marcos Cobeña marcoscobena at GMAIL.COM
Thu Jun 22 03:52:59 EDT 2006


Hi all,

I'm trying to access to a layer made of SHP files, like this one:

"
# DGIS_12c.map
#
MAP
	NAME DGIS
	STATUS ON
	SIZE 800 475
	# "Huelva, Spain " lat=37.258335, lon=-6.9508333
	#
	EXTENT -180 -90 180 90 # 187889.12817030 4092316.51133811
197493.65136571 4099997.10096501 # 36.258335 -7.9508333 38.258335
-5.9508333
	UNITS METERS
	SHAPEPATH "Data"
	IMAGECOLOR 255 255 255
	IMAGETYPE PNG
	CONFIG "PROJ_LIB" "C:\Archivos de programa\Apache Software
Foundation\Apache2.2\cgi-bin\DGIS\Data\Proj" # "C:\Documents and
Settings\Marcos\Escritorio\Temporal\Sistema de Información Geográfica
de Doñana (DGIS)\ms4w_2.0\ms4w\proj\nad"
	
	WEB
		METADATA
			"wms_title" "Sistema de Información Geográfica de Doñana (DGIS)"
			# http://localhost:8080/cgi-bin/DGIS/mapserv.exe?map=DGIS_12c.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
			#
			"wms_onlineresource"
"http://localhost:8080/cgi-bin/DGIS/mapserv.exe?map=DGIS_12c.map&"
			# "wms_srs" "epsg:4326" # "EPSG:4269 EPSG:4326"
		END
	END
	
	PROJECTION
		"init=EPSG:42304"
	END
	
	LAYER
		NAME "12c_linea"
		TYPE LINE
		STATUS ON
		DATA Data/12c/12c_linea
		CLASS
			NAME "12c_linea"
			COLOR 0 0 0
		END
		METADATA
			"wms_title" "12c_linea"
			"wms_srs" "EPSG:4326" # "EPSG:4031"
			"wms_format" "image/png"
		END
	END
[...]
END
"

, where I've defined a projection ("init=EPSG:42304") and, for each
layer, its own SRS ("EPSG:4326"). It works fine, it draws my shape in
Canada (as expected with projections used).

Once I change main projection to 4030:

"
# Unknown datum based upon the WGS 84 ellipsoid
<4030> +proj=longlat +ellps=WGS84 +no_defs  no_defs <>
"

, the one used in ArcView when shapes were created, I receive those errors:

"
msWMSLoadGetMapParams(): Invalid SRS given : SRS must be valid for all
requested layers.
"

I've checked if projection file was been found or not, but it was.

Does anyone know any hint?

Thanks in advance.

Regards,

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


More information about the mapserver-users mailing list