Hi, It may be hard for the developers to decide how kind to be for users. There should be no danger of misinterpretation with GetFeature even without service because no other OGC service has that request. However WFS 1.1.0 standard says:
"The mandatory SERVICE parameter specifies which of the available service types at a particular service instance is being invoked. The value WFS is used to indicate that the Web Feature Service should be invoked." Geoserver could do schema validation and be strict but that would mean that your service=wfs would also fail because it should be service=WFS. And getfeature would fail because it is officially GetFeature. That would make some users to say that Geoserver is nit-picky. Try deegree and you will see what I mean http://inspire.kademo.nl/deegree-wfs/services?SERVICE=WFS&VERSION=1.1.0&REQUEST=getcapabilities Problem with being kind is that all non-standard variations can't be tested. Perhaps best you can do is to try to follow the lexicon of standard more strictly on your side. Making Geoserver more strict would for sure break many existing applications. -Jukka Rahkonen- ________________________________________ Lähettäjä: Roel De Nijs [[email protected]] Lähetetty: 25. syyskuuta 2013 19:22 Vastaanottaja: [email protected] Aihe: Re: [Geoserver-users] Why does GetFeature return feature 5 times? I upgraded geoserver to the latest 2.4.0 release, unfortunately this issue still occurs. I was able to do some extra tests now and I guess I found the cause (and also a solution). For some reason the PROPERTYNAME parameter influences the size of the feature collection. When this parameter contains 5 attributes, the feature collection contains this feature 5 times. When this parameter contains just 3 attributes, the feature only appears 3 times in the collection. When I remove the PROPERTYNAME parameter from the request, the feature collection has the feature just once. When I add "service=wfs" to the request, the number of attributes of the PROPERTYNAME parameter has no influence anymore on the size of the feature collection. The requested feature appears just once in the feature collection (as expected). So I wonder why there is such a difference in behavior between a request with or without the "service=wfs" part? I would assume it has something to do with And the difference between both gets even bigger when the PROPERTYNAME parameter has just 1 attribute: without the "service=wfs" part the request results in an exception (/java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection java.lang.String cannot be cast to java.util.Collection/), whereas with the part the request returns the requested feature. I would assume if the "service=wfs" part is required to execute the request correctly, not providing this value would result in an exception unless there is some backwards compatibility involved... Kind regards, Roel -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Why-does-GetFeature-return-feature-5-times-tp5077054p5079944.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
