[MS4W-Users] WMS TIME using shapefiles
Jeff McKenna
jmckenna at gatewaygeomatics.com
Mon Aug 22 09:27:23 EST 2011
Hello,
Hmm. I wonder if you can try the request on a single shapefile (not a
tileindex file). I wonder if that works for you?
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 11-08-21 11:48 PM, HeZheng wrote:
> Hello,all:
>
> I am having difficulties to make WMS time series work.
>
> i used ogrtindex to tile the shapefiles and three files was
> created(tileindex.shp, tileindex.dbf, tileindex.shx) , and then i add a
> field named "DATETIME" to the dbf using access. and my *.map is like this:
>
> ####################################
> LAYER
> METADATA
> "wms_srs" "epsg:4326"
> "wms_title" "co2000_ugl"
> "wms_timeformat" "YYYYMMDD"
> "wms_timeextent" "20110101/20110105"
> "wms_timeitem" "DATATIME"
> "wms_timedefault" "20110101"
> END
> NAME "co2000_ugl"
> STATUS ON
> TYPE POLYGON
> UNITS METERS
> TILEITEM "location"
> TILEINDEX "tileindex.dbf"
> CLASS
> NAME "co2000_ugl"
> STYLE
> ANGLE 360
> COLOR 139 92 169
> OPACITY 0
> OUTLINECOLOR 248 70 82
> SYMBOL 0
> WIDTH 1
> END
> END
> END
> ##################################
> the Url is:
> "http://localhost:8888/cgi-bin/mapserv.exe?map=e:/Tile/test/test.map&version=1.1.1&request=getmap&layers=co2000_ugl&SRS=EPSG:4326&bbox=-96.860901,
> 41.593990, -82.798264, 49.355503&width=800&height=600&format=image/png"
> i got this error:
> <ServiceException>
> msDrawMap(): Image handling error. Failed to draw layer named
> 'co2000_ugl'.
> msDBFGetItemIndex(): DBASE file error. Item'DATETIME' not found.
> </ServiceException>
> can someone help me? Thank you!
>
More information about the MS4W-Users
mailing list