issue with classitem and tileindex...
Peter Shrock
thesl at YAHOO.COM
Sat Mar 31 18:32:24 PDT 2007
My layer setup is like this, but I got the same error message
(msDBFGetItemIndex(): DBASE file error. Item 'DATETIME' not found).
In my case, when I used point shapefile, it worked. In point shapefile, the
wms_timeitem field and the classitem are both in the point shapefile. But if we
use tile index file, the wms_timeitem field is in the tile index shapefile, but
the classitem field is in the data shapefile. I guess this is why mapserver
shows the error message.
This may mean that mapserver design only supports point shapefile (WMS-timeitem
and classitem are both in the data shapefile) and raster tile (TYEP RASTER) ,
not good for polygon shapefiles with seperate tile index.
Is this the case?
Peter
# Tile Index layer
LAYER
STATUS ON
NAME "time_idx1"
TYPE POLYGON
DATA "tile_index2.shp"
METADATA
"wms_title" "TIME INDEX"
"wms_srs" "EPSG:4326"
"wms_extent" "142 40 -50 85"
"wms_timeextent" "2002-11-30-/2006-11-30"
"wms_timeitem" "DATETIME"
"wms_timedefault" "2006-11-30"
END
END
# Data layer
LAYER
NAME "timemap1"
TYPE POLYGON
STATUS ON
DEBUG ON
PROJECTION
"init=epsg:4326"
END
METADATA
"wms_title" "sample WMS-T"
"wms_srs" "EPSG:4326"
"wms_extent" "142 40 -50 85"
"wms_timeextent" "2002-11-30-/2006-11-30"
"wms_timeitem" "DATETIME" #datetime is a column of type date/timestamp
"wms_timedefault" "2006-11-30"
END
TILEITEM "Location"
TILEINDEX "time_idx1"
END
--- Stephen Woodbridge <woodbri at SWOODBRIDGE.COM> wrote:
> John,
>
> Here is my layer setup and it works just fine. But I think you need to
> go back to your ROOT error message.
>
> >>> msDBFGetItemIndex(): DBASE file error. Item 'CFCC' not
>
> For example what to you get if you run dbfdump or
> ogrinfo -so landmark.dbf landmark
>
> -Steve
>
> #
> # Area Landmarks
> #
> LAYER
> NAME "Area_Landmarks"
> STATUS DEFAULT
> DATA "landmark"
> TYPE POLYGON
> TILEINDEX "tgrindex"
> MAXSCALE 500100.0
> LABELMAXSCALE 10100.0
> CLASSITEM "CFCC"
> LABELITEM "NAME"
> CLASS
> NAME "Military"
> EXPRESSION /^D10/
> COLOR 153 153 102
> # Military Installation or Reservation
> OUTLINECOLOR -1 -1 -1
> LABEL
> FONT "arial"
> TYPE TRUETYPE
> POSITION CC
> SIZE 7
> BUFFER 4
> COLOR 0 0 0
> OUTLINECOLOR 245 245 231
> ANTIALIAS TRUE
> PARTIALS FALSE
> END
> END
> ...
> END
>
>
> John Cole wrote:
> > Brent,
> > Well, I didn't know about the 'newer' method. I got it working similar
> to
> > the 'old' one but it still doesn't recognize the 'CFCC' column when I add
> > the class item.
> >
> > Thanks,
> >
> > John
> >
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
More information about the MapServer-users
mailing list