[mapserver-users] Re: WFS GetFeature on Mapserver doesn't work
Jukka.Rahkonen at mmmtike.fi
Thu Apr 15 04:16:13 EDT 2010
I'm sorry, but I do not use PostGIS. I suppose that your GetFeature is working now (and if you check again the GetCapabilities your layer is probably on the list), but Mapserver just does not find data and therefore it is sending a valid, but empty FeatureCollection.
Myself I would start by copying the WFS mapfile from the http://mapserver.org/ogc/wfs_server.html and placing some of my own shapefiles to be used as DATA. Then I would check the GetCapabilities and GetFeature and I wouldn't give up before they both work. After that I could be sure that Mapserver WFS service is working. Next, I would continue to database layers and other more challenging things. Change only one thing at a time, so you know immediately where the error is if your service stops working for you.
> Hi Rahkonen,
> Thanks for your reply.
> You had rightly pointed out that DUMP TRUE was missing.
> On inserting it The output of GetFeature changed to the following:
> <wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs
> Still I don't get to see the features
> Although I have put a template file it is an HTML template.
> So do I need to put a XML template.If so pls send me an example.
> Do I need to put all the three templates i.e HEADER,TEMPLATE & FOOTER.
> If yes pls send example for all three.
> You have said "Feature List is empty" and so it doesn't appear in the
> What corrections are required in the layer settings for it to
> appear in the
> Thanks again.
> View this message in context:
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
More information about the mapserver-users