Hi folks,<br><br>I&#39;m trying to query a postgis-layer through wms. Yet, I do not get any query results.<br>Can anyone have a look at my mapfile. I have tried to label my features too, using<br>a field of the postgis-table, but that doesn&#39;t seem to work too. So, my guess it should
<br>be something wrong in my map-file. Thanks for helping out !<br><br>#<br># Start of map file<br>#<br># Sample map file for a chameleon app.<br>#<br>NAME DEMO<br>STATUS ON<br>SIZE 600 500<br>SYMBOLSET symbols.sym<br>EXTENT 
77336.359625 189988.500250 90937.297125 201812.968625<br>UNITS METERS
<br>SHAPEPATH &quot;../data&quot;<br>IMAGECOLOR 255 255 255<br>FONTSET fonts.txt<br>TRANSPARENT FALSE<br><br><br>WEB<br>&nbsp; IMAGEPATH &quot;etc/mapserver/tmp/ms_tmp&quot;<br>
&nbsp; IMAGEURL &quot;/tmp/&quot;<br>&nbsp; <br>&nbsp;METADATA<br>&nbsp; &quot;wms_title&quot; &quot;Aalter_WMS&quot;<br>&nbsp; &quot;wms_onlineresource&quot; &quot; <br>&nbsp; &quot;wms_srs&quot; &quot;EPSG:31300&quot;<br>&nbsp; <br>&nbsp;END<br>END<br><br><br>
OUTPUTFORMAT<br>NAME png<br>DRIVER &quot;GD/PNG&quot;<br>MIMETYPE &quot;image/png&quot;<br>IMAGEMODE PC256<br>EXTENSION &quot;png&quot;<br>END<br><br><br>SCALEBAR<br>&nbsp; IMAGECOLOR 255 255 255<br>
&nbsp; LABEL<br>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; SIZE SMALL<br>&nbsp; END<br>&nbsp; SIZE 150 5<br>&nbsp; COLOR 255 255 255<br>&nbsp; BACKGROUNDCOLOR 0 0 0<br>&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp; UNITS meters<br>&nbsp; INTERVALS 5<br>&nbsp; STATUS ON<br>END<br><br>QUERYMAP
<br>&nbsp; STATUS ON<br>&nbsp; SIZE 200 200<br>&nbsp; STYLE HILITE<br>&nbsp; COLOR 255 0 0<br>END<br><br>PROJECTION<br>&nbsp;&nbsp;&nbsp; &quot;init=epsg:31300&quot;<br>END<br><br>LAYER<br>&nbsp;&nbsp; NAME &quot;Grens&quot;<br>&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_title&quot; &quot;gemeentegrens&quot;
<br>&nbsp;&nbsp;&nbsp;&nbsp; &quot;gml_include_items&quot; &quot;all&quot;<br>&nbsp;&nbsp; END<br>&nbsp;&nbsp; CONNECTIONTYPE postgis<br>&nbsp;&nbsp; CONNECTION &quot;host=&quot;&quot;<br>&nbsp;&nbsp; DATA &quot;the_geom from alr_gemline&quot;<br>&nbsp;&nbsp; DUMP TRUE<br>&nbsp;&nbsp; TEMPLATE &quot;ttt&quot;
<br><br>&nbsp;&nbsp; TYPE LINE<br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp; NAME &quot;KadScan&quot;<br>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 208 208 208<br>&nbsp; END<br>&nbsp;&nbsp;&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; &quot;init=epsg:31300&quot;<br>&nbsp;&nbsp;&nbsp; END<br>END <br><br>&nbsp;&nbsp; LAYER<br>&nbsp;&nbsp; NAME &quot;Percelen&quot;<br>&nbsp; <br>&nbsp;&nbsp; CONNECTIONTYPE postgis<br>&nbsp;&nbsp; CONNECTION &quot;host=<a href="http://192.168.102.100/" target="_blank">&quot;&quot;
</a><br>&nbsp;&nbsp; DATA &quot;the_geom from b_capa_percid&quot;<br>&nbsp;&nbsp; TEMPLATE &quot;ttt&quot; <br>&nbsp;&nbsp; LABELITEM &#39;capakey&#39;<br>&nbsp; TYPE POLYGON<br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp; NAME &quot;KadScan&quot;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; OUTLINECOLOR 208 208 208
<br>
&nbsp; END<br>&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_title&quot; &quot;percelen&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp; &quot;gml_include_items&quot; &quot;all&quot;<br>&nbsp;&nbsp; END<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp; &quot;init=epsg:31300&quot;<br>&nbsp;<br>&nbsp;&nbsp; END<br>END<br>
<br>
<br>END # Map File<br>