Problems with WMS time support

Yewondwossen Assefa assefa at DMSOLUTIONS.CA
Tue Apr 17 07:25:07 PDT 2007


Hi there,

  From your request paramter (layers=dream_pm25), I am assuming that you 
are trying to access the 2nd layer in your example. What is the content 
of your tileindex file "pm25_time_index" ? Is there  a reference to the 
D031007_t21.pm25_raw file in there ?  I am assuming at this point that 
Grass is built into GDAL and your are able to load it properly (using 
something like gdalinfo and your grass raster, should let you know if it 
opens properly).

Later,


William Hudspeth wrote:
> Hello,
> 
> I am using Mapserver 4.10.1 on Red Hat Enterprise 3.
> 
> I am trying to display a GRASS raster image with WMS time support. I
> have created a tileindex using gdaltindex, imported the tileindex
> shapefile into PostGIS, and added a timestamp column containing the date
> and hour in an acceptable format (e.g. 2007-04-16 01:00:00).
> 
> My mapfile entries for the tileindex, and raster layer are:
> 
> #*****LAYER - TILE INDEX FOR PM2.5 RASTERS (Time sensitive) 
> 
> LAYER
>   STATUS ON
>   NAME "pm25_time_index"
>   TYPE POLYGON
>   DATA "the_geom from pm25_dream_raster_view"
>   METADATA
> 	"wms_title" "PM25 TIME INDEX"
> 	"wms_srs" "EPSG:4326"
> 	"wms_extent" "-120 26 -96:50 43:50" #[minx][miny][maxx][maxy]
> 	"wms_timeextent" "2003-01-01 00:00:00/2009-01-31 23:00:00"
> 	"wms_timeitem" "datetime"
> 	"wms_timedefault" "2007-03-30T18:00:00"
> 	time_sensitive "yes"
> 	background 'yes'
> 	dream_raster "no"
> 	raster_selected ""
> 	static "no"
> 	checked "unchecked"
>   END
>   CONNECTION "user=apache dbname=reason host=phairs-devel.unm.edu"
>   CONNECTIONTYPE postgis
> END
> 
> #**LAYER - DREAM RASTER PM2.5 (Time Sensitive)
> 
> LAYER
>  NAME 'dream_pm25'
>  TYPE RASTER
>  STATUS ON
>  DEBUG ON
>  DUMP TRUE
>  TRANSPARENCY 50
>  FILTER ""
> 	METADATA
> 		"wms_abstract" 'DREAM model dust output - Date:12/15/03 Time:00 hrs
> UTC  Particle Size Class: PM2.5'  #wms_abstract(Abstract)
> 		"wms_keywordlist" 'DREAM dust model, PM2.5' #wms_keywordlist
> (Keywordlist)
> 		"wms_opaque" '0' #wms_opaque(layer)
> 		"wms_srs" 'EPSG:4326' #wms_srs(SRS)
> 		"wms_title" "DREAM dust output PM2.5"
> 		"wms_extent" "-120 26 -96:50 43:50" #[minx][miny][maxx][maxy]
> 		"wms_timeformat" "YYYY-MM-DDTHH"
> 		"wms_timeextent" "2003-01-01T00:00:00/2009-01-31T23:00:00"
> 		"wms_timeitem" "datetime"
> 		"wms_timedefault" "2007-03-30T18:00:00"
> 		layer_title 'DREAM dust output - PM2.5'
> 		layer_name 'dream_pm25'
> 		background 'yes'
> 		checked 'unchecked'
> 		build_class 'no'
> 		raster_selected 'unselected'   #used to control which raster layer is
> active
> 		static 'no'   #if no, can be controlled in legend; if yes, never
> appears in legend, but visibility is controlled by STATUS
> 		analytic 'no'  #used to identify whether the layer is to be used in
> density functions
> 		time_sensitive "no"
> 		dream_raster "yes"
> 	END   #METADATA
>   PROJECTION
> 	"init=epsg:4326"     #WGS84 Decimal Degrees
>   END  #PROJECTION
> TILEITEM "location"
> TILEINDEX "pm25_time_index"
> END  #LAYER
> 
> My WMS request looks like this:
> 
> http://phairs-devel.unm.edu:8080/cgi-bin/mapserv?map=mapmodule_wms.map&VERSION=1.1.1&REQUEST=GetMap&BBox=-120.000,26.000,-97.000,44.000&SRS=EPSG:4326&Width=459&Height=360&Layers=dream_pm25&TIME=2007-04-06T08
> 
> 
> And, the error I get is below:
> 
> <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
> <!DOCTYPE ServiceExceptionReport SYSTEM
> "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.1">
> <ServiceException>
> msDrawMap(): Image handling error. Failed to draw layer named
> 'dream_pm25'.
> msDrawRaster(): Image handling error. Unrecognized or unsupported image
> format
> drawEPP(): Image handling
> error. /home/apache/western_us/20070310/cellhd/D031007_t21.pm25_raw is
> not an EPPL file.
> </ServiceException>
> </ServiceExceptionReport>
> 
> Note how the raster referenced in the error is different from that
> referenced in the WMS request. I can find no reference to the raster
> referenced in the error output anywhere in my mapfile.
> 
> I would appreciate any insight into this problem.
> 
> Thanks, Bill
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the MapServer-users mailing list