Jorn,<br><br>I have the following columns:<br><br>gid&nbsp;&nbsp; <br>capakey<br>percid<br>capaty<br>shape_area<br>the_geom<br><br>Thanks for helping out !<br><br>Steven<br><br><div class="gmail_quote">On Nov 19, 2007 2:21 PM, Jørn Vegard Røsnes &lt;
<a href="mailto:jorn@spacetec.no">jorn@spacetec.no</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>do you have a column named oid with integer type in your table?
<br><br>cheers<br>Jørn Vegard<br><div><div></div><div class="Wj3C7c"><br>On Monday 19 November 2007 09:48, Steven De Vriendt wrote:<br>&gt; Hi folks,<br>&gt;<br>&gt; I&#39;m trying to query a postgis-layer through wms. Yet, I do not get any
<br>&gt; query results.<br>&gt; Can anyone have a look at my mapfile. I have tried to label my features<br>&gt; too, using<br>&gt; a field of the postgis-table, but that doesn&#39;t seem to work too. So, my<br>&gt; guess it should
<br>&gt; be something wrong in my map-file. Thanks for helping out !<br>&gt;<br>&gt; #<br>&gt; # Start of map file<br>&gt; #<br>&gt; # Sample map file for a chameleon app.<br>&gt; #<br>&gt; NAME DEMO<br>&gt; STATUS ON<br>
&gt; SIZE 600 500<br>&gt; SYMBOLSET symbols.sym<br>&gt; EXTENT 77336.359625 189988.500250 90937.297125 201812.968625<br>&gt; UNITS METERS<br>&gt; SHAPEPATH &quot;../data&quot;<br>&gt; IMAGECOLOR 255 255 255<br>&gt; FONTSET 
fonts.txt<br>&gt; TRANSPARENT FALSE<br>&gt;<br>&gt;<br>&gt; WEB<br>&gt; &nbsp; IMAGEPATH &quot;etc/mapserver/tmp/ms_tmp&quot;<br>&gt; &nbsp; IMAGEURL &quot;/tmp/&quot;<br>&gt;<br>&gt; &nbsp;METADATA<br>&gt; &nbsp; &quot;wms_title&quot; &quot;Aalter_WMS&quot;
<br>&gt; &nbsp; &quot;wms_onlineresource&quot; &quot;<br>&gt; &nbsp; &quot;wms_srs&quot; &quot;EPSG:31300&quot;<br>&gt;<br>&gt; &nbsp;END<br>&gt; END<br>&gt;<br>&gt;<br>&gt; OUTPUTFORMAT<br>&gt; NAME png<br>&gt; DRIVER &quot;GD/PNG&quot;
<br>&gt; MIMETYPE &quot;image/png&quot;<br>&gt; IMAGEMODE PC256<br>&gt; EXTENSION &quot;png&quot;<br>&gt; END<br>&gt;<br>&gt;<br>&gt; SCALEBAR<br>&gt; &nbsp; IMAGECOLOR 255 255 255<br>&gt; &nbsp; LABEL<br>&gt; &nbsp; &nbsp; COLOR 0 0 0<br>&gt; &nbsp; &nbsp; SIZE SMALL
<br>&gt; &nbsp; END<br>&gt; &nbsp; SIZE 150 5<br>&gt; &nbsp; COLOR 255 255 255<br>&gt; &nbsp; BACKGROUNDCOLOR 0 0 0<br>&gt; &nbsp; OUTLINECOLOR 0 0 0<br>&gt; &nbsp; UNITS meters<br>&gt; &nbsp; INTERVALS 5<br>&gt; &nbsp; STATUS ON<br>&gt; END<br>&gt;<br>&gt; QUERYMAP
<br>&gt; &nbsp; STATUS ON<br>&gt; &nbsp; SIZE 200 200<br>&gt; &nbsp; STYLE HILITE<br>&gt; &nbsp; COLOR 255 0 0<br>&gt; END<br>&gt;<br>&gt; PROJECTION<br>&gt; &nbsp; &nbsp; &quot;init=epsg:31300&quot;<br>&gt; END<br>&gt;<br>&gt; LAYER<br>&gt; &nbsp; &nbsp;NAME &quot;Grens&quot;
<br>&gt; &nbsp; &nbsp;METADATA<br>&gt; &nbsp; &nbsp; &nbsp;&quot;wms_title&quot; &quot;gemeentegrens&quot;<br>&gt; &nbsp; &nbsp; &nbsp;&quot;gml_include_items&quot; &quot;all&quot;<br>&gt; &nbsp; &nbsp;END<br>&gt; &nbsp; &nbsp;CONNECTIONTYPE postgis<br>&gt; &nbsp; &nbsp;CONNECTION &quot;host=&quot;&quot;
<br>&gt; &nbsp; &nbsp;DATA &quot;the_geom from alr_gemline&quot;<br>&gt; &nbsp; &nbsp;DUMP TRUE<br>&gt; &nbsp; &nbsp;TEMPLATE &quot;ttt&quot;<br>&gt;<br>&gt; &nbsp; &nbsp;TYPE LINE<br>&gt; &nbsp; &nbsp; CLASS<br>&gt; &nbsp; &nbsp; NAME &quot;KadScan&quot;<br>&gt; &nbsp; &nbsp; OUTLINECOLOR 208 208 208
<br>&gt; &nbsp; END<br>&gt; &nbsp; &nbsp; PROJECTION<br>&gt; &nbsp; &nbsp; &quot;init=epsg:31300&quot;<br>&gt; &nbsp; &nbsp; END<br>&gt; END<br>&gt;<br>&gt; &nbsp; &nbsp;LAYER<br>&gt; &nbsp; &nbsp;NAME &quot;Percelen&quot;<br>&gt;<br>&gt; &nbsp; &nbsp;CONNECTIONTYPE postgis<br></div></div>
&gt; &nbsp; &nbsp;CONNECTION &quot;host=&quot;&quot; &lt;<a href="http://192.168.102.100/" target="_blank">http://192.168.102.100/</a>&gt;<br><div><div></div><div class="Wj3C7c">&gt; &nbsp; &nbsp;DATA &quot;the_geom from b_capa_percid&quot;<br>
&gt; &nbsp; &nbsp;TEMPLATE &quot;ttt&quot;<br>&gt; &nbsp; &nbsp;LABELITEM &#39;capakey&#39;<br>&gt; &nbsp; TYPE POLYGON<br>&gt; &nbsp; &nbsp; CLASS<br>&gt; &nbsp; &nbsp; NAME &quot;KadScan&quot;<br>&gt;<br>&gt; &nbsp; &nbsp; OUTLINECOLOR 208 208 208<br>&gt; &nbsp; END<br>&gt; &nbsp; &nbsp; METADATA
<br>&gt; &nbsp; &nbsp; &nbsp;&quot;wms_title&quot; &quot;percelen&quot;<br>&gt; &nbsp; &nbsp; &nbsp;&quot;gml_include_items&quot; &quot;all&quot;<br>&gt; &nbsp; &nbsp;END<br>&gt;<br>&gt; &nbsp; &nbsp; PROJECTION<br>&gt; &nbsp; &nbsp; &quot;init=epsg:31300&quot;<br>&gt;<br>&gt; &nbsp; &nbsp;END
<br>&gt; END<br>&gt;<br>&gt;<br>&gt; END # Map File<br></div></div></blockquote></div><br>