[MS4W-Users] WMS TIME using shapefiles

HeZheng hzxfrank2010 at 163.com
Sun Aug 21 21:48:55 EST 2011


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
&#39;co2000_ugl&#39;.
msDBFGetItemIndex(): DBASE file error. Item &#39;DATETIME&#39; not found.
</ServiceException>
can someone help me? Thank you!

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-TIME-using-shapefiles-tp6710071p6710071.html
Sent from the ms4w-users mailing list archive at Nabble.com.


More information about the MS4W-Users mailing list