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
Brent Fraser wrote:
John,
You could try the newer (and more flexible?) "two-layer"
style of tileindex specification:
LAYER
NAME "lpy_idx_lyr"
TYPE TILEINDEX
DATA "lpy_idx"
END
LAYER
NAME "landmark_polys"
GROUP "bound"
TILEINDEX "lpy_idx_lyr" # this points to the above layer
METADATA
"wms_title" "landmark_polys"
"wms_group_title" "landmark"
END
PROJECTION
"init=epsg:4326"
END
STATUS ON
CLASSITEM "CFCC"
CLASS
EXPRESSION "D82"
NAME 'Cemetary'
MAXSCALE 250000
STYLE
COLOR 209 208 204
END
END
END
I haven't tested this, so it may not work. The trick is to
tell Mapserver the CLASS is to be applied to the files
pointed to by the tileindex, not the tile index itself (I'm
sure it doesn't have an attributed named "CFCC").
Steve Woodbridge may have some insight into this, since it's
tiled vectors; I've only done tiled raster....
Brent Fraser
GeoAnalytic Inc.
Calgary, Alberta
----- Original Message -----
From: "John Cole" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 29, 2007 2:04 PM
Subject: Re: [UMN_MAPSERVER-USERS] issue with classitem and
tileindex...
Steve,
Thanks for the quick reply, unfortunately I had already
tried that :-(
msDBFGetItemIndex(): DBASE file error. Item 'CFCC' not
found.
Is there anything else that could be wrong?
Here is my layer:
LAYER
NAME "landmark_polys"
GROUP "bound"
TILEINDEX "lpy_idx"
METADATA
"wms_title" "landmark_polys"
"wms_group_title" "landmark"
END
PROJECTION
"init=epsg:4326"
END
STATUS ON
CLASSITEM "CFCC"
TYPE POLYGON
CLASS
EXPRESSION "D82"
NAME 'Cemetary'
MAXSCALE 250000
STYLE
COLOR 209 208 204
END
END
END
We are using the current version of MS4W.
Thanks,
John
Stephen Woodbridge wrote:
John,
In shapefiles attribute are all upper case. try:
classitem 'CFCC'
-Steve W
John Cole wrote:
I have a couple of county shapefiles where I've created
a tileindex using
tile4ms. When I render these with MS, things work fine
until I set the
classitem, and then it can't find the classitem column
on the shapefile
(in
this case 'cfcc').
Is there something special you have to do to use a
class item or label
item
with a tileindex?
Thanks,
John
--
View this message in context:
http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9741591
Sent from the Mapserver - User mailing list archive at
Nabble.com.