LABELITEM problem with Postgis
Stefan Schwarzer
stefan.schwarzer at GRID.UNEP.CH
Mon Feb 20 01:33:33 PST 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...
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060220/4bc0228f/attachment.htm>
More information about the MapServer-users
mailing list