<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808">Hi there,</FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><BR class="khtml-block-placeholder"></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808">I have a problem displaying the labels of a specific fields of my postgres/postgis table on the map. </FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><BR class="khtml-block-placeholder"></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808">It always gives me this error message:</FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><BR class="khtml-block-placeholder"></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B>Warning</B></FONT></FONT><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B>: [MapServer Error]: getString(): Parsing error near (name):(line 436)</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><BR class="khtml-block-placeholder"></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808">which is this line:</FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><BR class="khtml-block-placeholder"></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B>$map_file = "geo_map.map";</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B>$map = ms_newMapObj($map_path.$map_file);</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><BR class="khtml-block-placeholder"></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808">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...</FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><BR class="khtml-block-placeholder"></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> LAYER</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> NAME sreg_boundaries</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> CONNECTIONTYPE postgis</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> CONNECTION 'user=xx password=xx dbname=xx' </B></FONT></FONT><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> TYPE POLYGON</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> LABELCACHE on</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> DATA 'the_geom FROM subregions USING UNIQUE gid USING srid=-1' </B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> LABELITEM name</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> CLASSITEM name </B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> SIZEUNITS pixels</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> CLASS</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> NAME 'Subregional Boundaries'</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B> ....</B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" face="Arial"><FONT class="Apple-style-span" color="#080808"><B><BR class="khtml-block-placeholder"></B></FONT></FONT></DIV><DIV><FONT class="Apple-style-span" color="#080808" face="Arial">Any idea why this is?</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks for any hints!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Stef</DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>