Hi,<br>I'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> IMAGEPATH "/ms4w/tmp/ms_tmp/" <br> IMAGEURL "/ms_tmp/"<br> METADATA
<br> "wfs_title" "Wfs TEST (FROM FRANCE.GMF)" ## REQUIRED<br> "wfs_onlineresource" "<a href="http://127.0.0.1/cgi-bin/mapserv.exe">http://127.0.0.1/cgi-bin/mapserv.exe
</a>?" ## Recommended<br> "ows_schemas_location" "<a href="http://ogc.dmsolutions.ca">http://ogc.dmsolutions.ca</a>" ## Optional<br> END<br>END<br><br>PROJECTION<br> "init=epsg:27582"
<br>END<br><br>LAYER<br> NAME departement<br> CONNECTIONTYPE postgis<br> CONNECTION "user=postgres dbname=postgis host=localhost password=xxxxx"<br> METADATA<br> "wfs_title" "departement" ## REQUIRED
<br> "gml_featureid" "gid" ## REQUIRED<br> "gml_include_items" "all" ## Optional (serves all attributes for layer)<br> END<br> TYPE POLYGON<br> STATUS ON<br> DATA "geom_column FROM departement AS foo USING UNIQUE gid AND USING srid=27582"
<br> DUMP TRUE ## REQUIRED<br>END # Layer<br>END # Map File<br>-------- end ----------<br><br>I access to it using "<a href="http://localhost/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=GETFEATURE&TYPENAME=departement">
http://localhost/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=GETFEATURE&TYPENAME=departement</a>"<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><wfs:FeatureCollection xsi:schemaLocation="<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> <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&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=departement&OUTPUTFORMAT=XMLSCHEMA">
http://127.0.0.1/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=departement&OUTPUTFORMAT=XMLSCHEMA</a>"><br> <gml:boundedBy><br> <gml:Box srsName="EPSG:27582">
<br> <gml:coordinates><br>47680.000000,1620480.000000 1197822.000000,2677441.000000<br></gml:coordinates><br></gml:Box><br></gml:boundedBy><br></wfs:FeatureCollection><br clear="all">--------- end ---------
<br><br>I don'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't know where :s<br>Can i have some help please ;p
<br><br>I'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> >Jeremy DERRAC<<br><br>
Tel: (+33) (0)6-88-20-88-24<br> Mail: JDerrac<at>gmail<dot>com<br>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-