LABELITEM problem with Postgis

Stefan Schwarzer stefan.schwarzer at GRID.UNEP.CH
Mon Feb 20 04:05:49 EST 2006


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/0b8ae36e/attachment.html


More information about the mapserver-users mailing list