WMS/WFS and (yearly) time-dependent data

Peter schrock thesl at YAHOO.COM
Thu Mar 8 07:50:20 PST 2007


Hello, I am having difficulties to make WMS time series work.

I am using mapserver 4.10.0. I tested point data with time dimension, it
worked. I tested tiled polygons, it worked.
But I cannot get polygon shapefile work for time series WMS

The part of my mapfile is:

# Polygon layers, identitical polygon shapefiles, one shapefile for one
year. tile index shapefile was created using tile4ms.exe

# Test method 1: everything in one layer object
   LAYER
 	NAME "timemap"
 	TYPE RASTER
 	STATUS ON
 	METADATA
       		"wms_title" "timemap"
    		"wms_timeformat" "YYYYMMDD"
 		"wms_timeextent" "20021130/20061130"
       		"wms_timeitem" "DATETIME"
       		"wms_timedefault" "20021130"
       		"wms_srs" "EPSG:4326"
     	END
     	TILEINDEX "index1.shp"
     	TILEITEM  "Location"

   	CLASSITEM "color_code"
   	CLASS
   	NAME  "TYPE 1"
     		EXPRESSION ([color_code]==1)
     		COLOR      220 120 130
       		OUTLINECOLOR 150 150 150
   	END

   	CLASS
   	NAME  "TYPE 2"
     		EXPRESSION ([color_code]==2)
     		COLOR      255 255 155
       		OUTLINECOLOR 150 150 150
   	END

   	CLASS
   	NAME  "TYPE 3"
     		EXPRESSION ([color_code]==0)
     		COLOR      200 200 200
       		OUTLINECOLOR 100 100 100
   	END
   END # one layer object method


# Test method 2: seperate tileindex layer and data layer
   LAYER
    	NAME "mylayer"
    	STATUS ON
    	TYPE RASTER
    	TILEINDEX "index1"
    	TILEITEM "Location"
  	PROJECTION
    		"init=epsg:4326"
  	END

  	METADATA
    		"DESCRIPTION" 		"mylayer"
    		"wms_title" 		"mylayer"
     		"WMS_SRS"   		"epsg:4326"
    		"wms_timeformat" 	"YYYYMMDD"
    		"wms_timeextent" 	"20021130/20061130"
    		"wms_timeitem" 		"DATETIME"
    		"wms_timedefault" 	"20030210"
  	END
    	SIZEUNITS PIXELS

   	CLASSITEM "color_code"
   	CLASS
   	NAME  "TYPE 1"
     		EXPRESSION ([color_code]==1)
     		COLOR      220 120 130
       		OUTLINECOLOR 150 150 150
   	END

   	CLASS
   	NAME  "TYPE 2"
     		EXPRESSION ([color_code]==2)
     		COLOR      255 255 155
       		OUTLINECOLOR 150 150 150
   	END

   	CLASS
   	NAME  "TYPE 3"
     		EXPRESSION ([color_code]==0)
     		COLOR      200 200 200
       		OUTLINECOLOR 100 100 100
   	END
    END

   LAYER
 	NAME "tidx"
 	TYPE TILEINDEX
 	STATUS ON
	DATA index1
 	FILTERITEM 'DATETIME'
	FILTER '%DATETIME%'
   END # tile layer

The error message is:
msDrawMap(): Image handling error. Failed to draw layer named 'timemap'.
msDrawRaster(): Image handling error. Unrecognized or unsupported image
format drawEPP(): Image handling error. EPPL7 support is not available.

Did mapserver support WMS time series using polygon shapefile?


Yewondwossen Assefa wrote:
> 
> If your are serving layers as wms you could do soemthing like this :
> 
>   - define a tileindex layer example:
> 
>      LAYER
>      NAME "mylayer"
>      STATUS ON
> #    TYPE POLYGON
>      TYPE RASTER
>    METADATA
>      "DESCRIPTION" "mylayer"
>      "wms_title" "mylayer"
>      "wms_timeitem"  "time"
>      "wms_timeextent"  "1970/2006"
>       "WMS_SRS"   "epsg:4326"
>    END
>      SIZEUNITS PIXELS
>      TILEINDEX "tile_file"
>      TILEITEM "location"
> 
>   - have a tile index that has at least 2 field (localtion for the 
> files, and a time field) :
>         location       time
>       mypath/myfile    2005
>        .....            ...
> 
>   - doing a request of Getmap : something like
>     GetMap&Version=1.1.1&LAYERS=mylayer&Time=2005
> 
>   Not sure if that fits your model.
> 
> Best Regards
> 
> 

-- 
View this message in context: http://www.nabble.com/Re%3A-WMS-WFS-and-%28yearly%29-time-dependent-data-tf3266243.html#a9374208
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list