I changed the EXTENT Value with the ones i got from SELECT extent(geom_column) from departement;<br>but its the same result. Empty feature collection :/<br><br><div><span class="gmail_quote">2007/9/27, Jeremy DERRAC &lt;<a href="mailto:jderrac@gmail.com">
jderrac@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>I&#39;m trying to output the content of a Multipolygon PostGis Table using WFS Server feature of mapserver.
<br>I created a simple map using some tutorial on the web. the data are in a postgis DB with MULTIPOLYGON geometry, and srid filled.
<br><br>-------- start ---------<br>EXTENT -2200000 -712631 3072800 3840000<br>UNITS METERS<br>IMAGECOLOR 255 255 255<br><br>WEB<br>&nbsp; IMAGEPATH &quot;/ms4w/tmp/ms_tmp/&quot; <br>&nbsp; IMAGEURL &quot;/ms_tmp/&quot;<br>&nbsp; METADATA
<br>&nbsp;&nbsp;&nbsp; &quot;wfs_title&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;Wfs TEST (FROM FRANCE.GMF)&quot;&nbsp; ## REQUIRED<br>&nbsp;&nbsp;&nbsp; &quot;wfs_onlineresource&quot;&nbsp;&nbsp; &quot;<a href="http://127.0.0.1/cgi-bin/mapserv.exe" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://127.0.0.1/cgi-bin/mapserv.exe
</a>?&quot;&nbsp; ## Recommended<br>&nbsp;&nbsp;&nbsp; &quot;ows_schemas_location&quot; &quot;<a href="http://ogc.dmsolutions.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://ogc.dmsolutions.ca</a>&quot;&nbsp; ## Optional
<br>&nbsp; END<br>END<br><br>PROJECTION<br>&nbsp; &quot;init=epsg:27582&quot;
<br>END<br><br>LAYER<br>&nbsp; NAME departement<br>&nbsp; CONNECTIONTYPE postgis<br>&nbsp; CONNECTION &quot;user=postgres dbname=postgis host=localhost password=xxxxx&quot;<br>&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp; &quot;wfs_title&quot;&nbsp;&nbsp;&nbsp; &quot;departement&quot; ## REQUIRED
<br>&nbsp;&nbsp;&nbsp; &quot;gml_featureid&quot; &quot;gid&quot; ## REQUIRED<br>&nbsp;&nbsp;&nbsp; &quot;gml_include_items&quot; &quot;all&quot;&nbsp; ## Optional (serves all attributes for layer)<br>&nbsp; END<br>&nbsp; TYPE POLYGON<br>&nbsp; STATUS ON<br>&nbsp; DATA &quot;geom_column FROM departement AS foo USING UNIQUE gid AND USING srid=27582&quot;
<br>&nbsp; DUMP TRUE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ## REQUIRED<br>END # Layer<br>END # Map File<br>-------- end ----------<br><br>I access to it using &quot;<a href="http://localhost/mapserv?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GETFEATURE&amp;TYPENAME=departement" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://localhost/mapserv?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GETFEATURE&amp;TYPENAME=departement</a>&quot;<br>(I used httpd.conf to indicate the .map file)<br><br>And the server answer me an empty feature collection:
<br><br>------- start ----------<br>&lt;wfs:FeatureCollection xsi:schemaLocation=&quot;<a href="http://www.opengis.net/wfs" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.opengis.net/wfs
</a> <a href="http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd
</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://mapserver.gis.umn.edu/mapserver" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mapserver.gis.umn.edu/mapserver</a> <a href="http://127.0.0.1/cgi-bin/mapserv.exe?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=departement&amp;OUTPUTFORMAT=XMLSCHEMA" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://127.0.0.1/cgi-bin/mapserv.exe?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=departement&amp;OUTPUTFORMAT=XMLSCHEMA</a>&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &lt;gml:boundedBy&gt;<br>&nbsp;&nbsp;&nbsp; &lt;gml:Box srsName=&quot;EPSG:27582&quot;&gt;
<br>&nbsp;&nbsp;&nbsp; &lt;gml:coordinates&gt;<br>47680.000000,1620480.000000 1197822.000000,2677441.000000<br>&lt;/gml:coordinates&gt;<br>&lt;/gml:Box&gt;<br>&lt;/gml:boundedBy&gt;<br>&lt;/wfs:FeatureCollection&gt;<br clear="all">--------- end ---------
<br><br>I don&#39;t understand why, my postgis DB is well filled, it works with GeoServer but not with mapserver and my map file. I think my map file is erronous but don&#39;t know where :s<br>Can i have some help please ;p
<br><br>I&#39;m using latest Stable Release of mapserver and postgis<br><br>Feel free to ask for more details<br><br>Thanks a lot!<br><span class="sg"><br>-- <br>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;Jeremy DERRAC&lt;
<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel: (+33) (0)6-88-20-88-24<br>&nbsp;&nbsp;Mail: JDerrac&lt;at&gt;gmail&lt;dot&gt;com<br>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
</span></blockquote></div><br><br clear="all"><br>-- <br>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;Jeremy DERRAC&lt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel: (+33) (0)6-88-20-88-24<br>&nbsp;&nbsp;Mail: JDerrac&lt;at&gt;gmail&lt;dot&gt;com<br>
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-