LABELITEM problem with Postgis
stefan.schwarzer at GRID.UNEP.CH
Mon Feb 20 04:33:33 EST 2006
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...
Gush, what's that?
> 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...
> 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
> LABELITEM name
> CLASSITEM name
> SIZEUNITS pixels
> NAME 'Subregional Boundaries'
> Any idea why this is?
> Thanks for any hints!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users