problem with MapServer WMS -T using polygon shapefiles

Peter Shrock thesl at YAHOO.COM
Mon Mar 19 11:18:48 EDT 2007


Hello, all:

I have been trying to get WMS time series working with MapServer. I used point
shapefiles and it worked well. But I cannot get MapServer work with polygon
shapefiles.

   LAYER
  	NAME "timemap"
  	TYPE POLYGON 
  	STATUS ON
  	METADATA
        	"wms_title" "timemap"
     		"wms_timeformat" "YYYYMMDD"
  		"wms_timeextent" "20021130/20061130"
        	"wms_timeitem" "TIMES"
        	"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


index1 polygon shapefile was created using tile4ms, its data is: 

Location        DATETIME
times\year2002     20021130
times\year2003     20031130
times\year2004     20041130
times\year2005     20051130
times\year2006     20061130

error message: msDrawMap(): Image handling error. Failed to draw layer named
'timemap'. msDBFGetItemIndex(): DBASE file error. Item 'TIMES' not found.

It seems that MapServer tried to find the "TIMES" field from the yearly
shapefiles. But TIMES field only exists in the tile index polygon shapefile. 

Could anyone help me to make WMS time series working using polygon shapefile
data with MapServer? or is this a MapServer Bug? 

I also tried seperating index layer and data layer, and it did not work either.

Thanks

Peter




 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 



More information about the mapserver-users mailing list