Hi, I would try what happens if the whole PROJECTION block is removed from the LAYER. And I believe it would be good to add "wms_srs" with a list of projections you would like to support into MAP level METADATA object.
-Jukka Rahkonen- -----Alkuperäinen viesti----- Lähettäjä: [email protected] [mailto:[email protected]] Puolesta William Hudspeth Lähetetty: 24. maaliskuuta 2011 19:50 Vastaanottaja: [email protected] Kopio: [email protected] Aihe: [mapserver-users] Problem with cascading WMS reprojection Hello, I am trying to reproject a cascaded NASA MODIS NDVI raster. The original raster is served as epsg:4326 from the NASA servers. It is using version=1.3.0 and CRS-CRS:84. I am cascading it through my own mapserver client/server and trying to reproject as epsg:26913 (utm zone13), where the MAP projection and extents are in 26913. My MAP projection looks like this: MAP ..... EXTENT 93549 3464749 694099 4065299 UNITS METERS ..... END #END MAP OBJECT PROJECTION "init=epsg:26913" #UTM-Zone 13N END #END MAP PROJECTION OBJECT and, my LAYER definition looks like this: LAYER NAME "MOD13A2_E_NDVI" TYPE RASTER CONNECTION "http://neowms.sci.gsfc.nasa.gov/wms/wms?" CONNECTIONTYPE WMS STATUS ON METADATA "wms_name" "MOD13A2_E_NDVI" "wms_server_version" "1.1.1" "wms_srs" "EPSG:4326" "wms_format" "image/jpeg" "wms_latlonboundingbox" "-180 -90 180 90" "wms_transparent" "FALSE" END #METADATA PROJECTION "init=epsg:4326" #WGS84 Decimal Degrees END #PROJECTION END #LAYER Interestingly, even though the MAP projection is NOT set to EPSG:4326, I can make a successful request using epsg:4326. In all cases, the LAYER metadata uses EPSG:4326. So, while this request is successful: http://edacwms.unm.edu/cgi-bin/mapfiles/epht_environment/epht_enviro_wms?version=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&STYLES=&SRS=EPSG:4326&BBOX=-120.000,26.000,-97.000,44.000&Width=600&Height=470&Layers=MOD13A2_E_NDVI This one is NOT successful: http://edacwms.unm.edu/cgi-bin/mapfiles/epht_environment/epht_enviro_wms?version=1.1.1&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/jpeg&STYLES=&SRS=EPSG:26913&BBOX=93549,3464749,694099,4065299&Width=600&Height=470&Layers=MOD13A2_E_NDVI where I get an error: msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers. Any insight would be greatly appreciated... Bill _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
