Hey, what the h... is this. For years the labelitem command without using apostrophes worked. Now, trying everything to find a solution to the below mentioned problem, I put the name of the column into apostrophes.... and then it worked...
LABELITEM 'name'
Gush, what's that?
Stef
Hi there,
I have a problem displaying the labels of a specific fields of my postgres/postgis table on the map.
It always gives me this error message:
Warning: [MapServer Error]: getString(): Parsing error near (name):(line 436)
which is this line:
$map_file = "geo_map.map"; $map = ms_newMapObj($map_path.$map_file);
But it's only when I add the line "LABELITEM name" into the map file. The field name exists, I can query the field with a SELECT command within the database...
LAYER NAME sreg_boundaries CONNECTIONTYPE postgis CONNECTION 'user=xx password=xx dbname=xx' TYPE POLYGON LABELCACHE on DATA 'the_geom FROM subregions USING UNIQUE gid USING srid=-1' LABELITEM name CLASSITEM name SIZEUNITS pixels CLASS NAME 'Subregional Boundaries' ....
Any idea why this is?
Thanks for any hints!
Stef
|