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">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">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">
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">http://www.opengis.net/wfs</a> <a href="http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd">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">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">
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><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>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-