Hi Sture, I suggest you to test first with a browser if Mapserver is actually sending the vectors. If not, for me the reason is usually wrong extents in map-file. Something like this should show you vectors on a browser: http://localhost/cgi-bin/mapserv.exe?map=d:/ms4w/apps/ms101/data/wfstest.map&mode=map It that works, you can next try a WFS request with your browser like: http://localhost/cgi-bin/mapserv.exe?map=d:/ms4w/apps/ms101/data/jukkawfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=jukka If you get something that looks like valid GML then you know that quite a lot is OK on MapServer side. -Jukka- My simple mapfile follows: MAP NAME WFS-MAP STATUS ON EXTENT 2464000.000 6779500.000 2467000.000 6780000.000 SIZE 1000 800 UNITS METERS SHAPEPATH "d:/ms4w/apps/ms101/data" IMAGECOLOR 255 255 255 WEB IMAGEPATH "d:/ms4w/apps/ms101/data" IMAGEURL "/MS_TMP/" METADATA "wfs_title" "JRA-test-WFS" "wfs_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=d:/ms4w/apps/ms101/data/jukkawfs.map" "wfs_srs" "EPSG:2392" END END PROJECTION "init=epsg:2392" END LAYER NAME jukka METADATA "wfs_title" "Parcels" "gml_include_items" "all" END TYPE POLYGON DATA jukka.shp PROJECTION "init=epsg:2393" END DUMP TRUE STATUS DEFAULT CLASS NAME "jukka" OUTLINECOLOR 0 0 0 END END END
________________________________ Lähettäjä: UMN MapServer Users List puolesta: Sture Dingsøyr Lähetetty: ti 7.2.2006 0:27 Vastaanottaja: [email protected] Aihe: [UMN_MAPSERVER-USERS] Hi I am testing the WFS server on Mapserver. I am running on Windows (4.6.2) Have set up WMS and this works just fine (getCapabilities, getMap and getFeatureInfo). I have set up a simple mapfile to server WFS, and my getcapabilities request seems to work. It returns XML listing the layers in my WFS mapfile. But when I try to make a getFeature request it only returns this: <?xml version="1.0" encoding="ISO-8859-1" ?> <wfs:FeatureCollection xmlns:myns="http://www.ttt.org/myns" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd http://www.ttt.org/myns http://avsdi/adaptive/wfs.aspx?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Omverda&OUTPUTFORMAT=XMLSCHEMA"> <gml:boundedBy> <gml:null>missing</gml:null> </gml:boundedBy> </wfs:FeatureCollection> It says <gml:null>missing</gml:null>. What is missing? Anybody got any ideas? Regards Sture
