[mapserver-users] Projection issues with cascading WMS requests

William Hudspeth bhudspeth at edac.unm.edu
Tue Mar 22 16:19:03 EDT 2011


Hello, I am trying to cascade a NASA dataset into my local WMS server.
Requests to the NASA dataset, as in the example below, require an CRS
designation of &CRS=CRS:84

http://neowms.sci.gsfc.nasa.gov/wms/wms?version=1.3.0&service=WMS&request=GetMap&CRS=CRS:84&FORMAT=image/jpeg&STYLES=&BBox=-180.000,-90.000,180.000,90.000&Width=600&Height=300&Layers=MOD13A2_E_NDVI&TIME=2000-04-07


If I try to access the cascaded layer with the following WMS request:

http://edacwms.unm.edu/cgi-bin/mapfiles/epht_environment/epht_enviro_wms?WMTVER=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&STYLES=&SRS=EPSG:4326&BBOX=-90.0,-180.0,90,180.0&Width=600&Height=300&Layers=MODIS_16d_ndvi&TIME=2000-04-07

(also tried changing the order of BBOX params to ---
&BBOX=-180.0,-90.0,180.0,90.0)

I get an error:

msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must
be valid for all requested layers.


My layer is defined as:

LAYER
 NAME 'MODIS_16d_ndvi'
 TYPE RASTER
 STATUS ON
 DEBUG OFF
 DUMP TRUE
 #TRANSPARENCY 50
 #FILTER ""

	METADATA
		"ows_keywordlist" 'Terra/MODIS, Vegetation Index [NDVI],16 day '
#wms_keywordlist (Keywordlist)
		"ows_description" "Vegetation Index [NDVI] (16 day - Terra/MODIS)"
      		"ows_name" "Vegetation Index [NDVI] (16 day - Terra/MODIS)"
      		"ows_label" "Terra/MODIS 16 day NDVI"
      		"ows_srs" "CRS:84"
      		"ows_extent" "-180 -90 180 90" #[minx][miny][maxx][maxy]
      		"ows_formats" "GEOTIFF"
      		"ows_nativeformat" "8-bit GeoTIF"
		"ows_timeitem" "timezone"

		"wms_abstract" 'Vegetation Index [NDVI] (16 day - Terra/MODIS)'
#wms_abstract(Abstract)
		"wms_opaque" '0' #wms_opaque(layer)
		"wms_title" "Vegetation Index [NDVI] (16 day - Terra/MODIS)"
		"ows_timeformat" "YYYY-MM-DD"
		"ows_timeextent" "2000-02-18/2011-02-02"
		"ows_timeitem" "timezone"
		"ows_timedefault" "2011-01-01"

		"wcs_resolution" "0:6 0:6"
      		"wcs_bandcount" "1"
		#"wcs_size" "2700 319"
		layer_name "MODIS_16d_ndvi"

	END   #METADATA
	PROJECTION
		"init=epsg:4326"     #WGS84 Decimal Degrees
	END  #PROJECTION
END  #LAYER

Any help appreciated on how to get around the projection issues...

Thanks, Bill



More information about the mapserver-users mailing list