classitem variable substitution
cplist at EARTHLINK.NET
Tue Oct 18 22:03:34 EDT 2005
Goodness bless open source.
mapserv.c after line 1615 (MapServer version 4.6.1)
if(map->layers[j].classitem && (strstr(map->layers[j].classitem, tmpstr) !=
NULL)) map->layers[j].classitem = gsub(map->layers[j].classitem, tmpstr,
It didn't seem to break anything and DID seem to work!
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
> Behalf Of Charlton Purvis
> Sent: Tuesday, October 18, 2005 4:45 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] classitem variable substitution
> Hi, folks:
> I poked around on the archives and couldn't find a post related to this.
> I'm sure it's there, and I apologize for not laying my finger on it.
> But is a variable substitution on a CLASSITEM not allowed? Var. sub.
> fine elsewhere, just not here.
> I am trying to hit a .shp and have the CLASSITEM be dependant on one of
> columns or whatever they're called in the .shp world.
> Error . . .
> msDBFGetItemIndex(): DBASE file error. Item '%TARGETTIME%' not found.
> .map excerpt . . .
> NAME elevation
> TYPE POLYGON
> STATUS DEFAULT
> CLASSITEM "%TARGETTIME%"
> STYLE END
> OUTLINECOLOR 0 0 0
> I have tried playing around w/ single and double quotes, but no luck.
> I'm used to PostGIS, and I could jolly well do this on the DATA line as an
> alias, but staying w/i the shapefile world for this project is probably
> way to go.
More information about the mapserver-users