I changed the EXTENT Value with the ones i got from SELECT extent(geom_column) from departement; but its the same result. Empty feature collection :/
2007/9/27, Jeremy DERRAC <[EMAIL PROTECTED]>: > > Hi, > I'm trying to output the content of a Multipolygon PostGis Table using WFS > Server feature of mapserver. > I created a simple map using some tutorial on the web. the data are in a > postgis DB with MULTIPOLYGON geometry, and srid filled. > > -------- start --------- > EXTENT -2200000 -712631 3072800 3840000 > UNITS METERS > IMAGECOLOR 255 255 255 > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wfs_title" "Wfs TEST (FROM FRANCE.GMF)" ## REQUIRED > "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe ?" ## > Recommended > "ows_schemas_location" "http://ogc.dmsolutions.ca" ## Optional > END > END > > PROJECTION > "init=epsg:27582" > END > > LAYER > NAME departement > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=postgis host=localhost password=xxxxx" > METADATA > "wfs_title" "departement" ## REQUIRED > "gml_featureid" "gid" ## REQUIRED > "gml_include_items" "all" ## Optional (serves all attributes for > layer) > END > TYPE POLYGON > STATUS ON > DATA "geom_column FROM departement AS foo USING UNIQUE gid AND USING > srid=27582" > DUMP TRUE ## REQUIRED > END # Layer > END # Map File > -------- end ---------- > > I access to it using > "http://localhost/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=GETFEATURE&TYPENAME=departement > " > (I used httpd.conf to indicate the .map file) > > And the server answer me an empty feature collection: > > ------- start ---------- > <wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs > http://ogc.dmsolutions.ca/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver > http://127.0.0.1/cgi-bin/mapserv.exe?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=departement&OUTPUTFORMAT=XMLSCHEMA > "> > <gml:boundedBy> > <gml:Box srsName="EPSG:27582"> > <gml:coordinates> > 47680.000000,1620480.000000 1197822.000000,2677441.000000 > </gml:coordinates> > </gml:Box> > </gml:boundedBy> > </wfs:FeatureCollection> > --------- end --------- > > 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 > Can i have some help please ;p > > I'm using latest Stable Release of mapserver and postgis > > Feel free to ask for more details > > Thanks a lot! > > -- > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > >Jeremy DERRAC< > > Tel: (+33) (0)6-88-20-88-24 > Mail: JDerrac<at>gmail<dot>com > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- >Jeremy DERRAC< Tel: (+33) (0)6-88-20-88-24 Mail: JDerrac<at>gmail<dot>com -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
