issue with classitem and tileindex...

John Cole john.cole at UAI.COM
Thu Mar 29 18:42:30 EDT 2007


Brent,
  Thanks, I'm not up to the task of debugging mapserver just yet :-)

  I've check the column names and the appear to be the same.  If I remember
correctly, the tile4ms program chokes if the schemas are different, doesn't
it?

  I'd be happy to send anyone an example who wanted to debug this.  It's
only two county landmark polyogns shapefiles and the tile index.

John



Brent Fraser wrote:
> 
> John,
> 
>   Make sure all the tile shapefiles have the same attributes
> (name, type, and order).  Other than that, I'm tempted to
> fire up the debugger...
> 
>   Searching the email archive shows some posts about Tiger
> data working with a tileindex, and classes with expressions,
> so it should work (I know, that doesn't help much).
> 
> Brent Fraser
> GeoAnalytic Inc.
> Calgary, Alberta
> 
> ----- Original Message ----- 
> From: "John Cole" <john.cole at UAI.COM>
> To: <MAPSERVER-USERS at LISTS.UMN.EDU>
> Sent: Thursday, March 29, 2007 3:21 PM
> Subject: Re: [UMN_MAPSERVER-USERS] issue with classitem and
> tileindex...
> 
> 
>> 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" <john.cole at UAI.COM>
>> > To: <MAPSERVER-USERS at LISTS.UMN.EDU>
>> > 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.
>> >
>> >
>>
>> -- 
>> View this message in context:
> http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9742947
>> Sent from the Mapserver - User mailing list archive at
> Nabble.com.
> 
> 

-- 
View this message in context: http://www.nabble.com/issue-with-classitem-and-tileindex...-tf3488200.html#a9744231
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list