Modify GML3OutputFormat to get feature type names from WFS request not guess them from FeatureCollection.getSchema()
--------------------------------------------------------------------------------------------------------------------
Key: GEOS-2753
URL: http://jira.codehaus.org/browse/GEOS-2753
Project: GeoServer
Issue Type: Improvement
Reporter: Ben Caradoc-Davies
Assignee: Andrea Aime
Attachments: GML3FeatureProducerTest.patch, GML3OutputFormat.patch
GML3OutputFormat presently obtains WFS feature type names by using FeatureCollection.getSchema() to obtain the content FeatureType and then assuming that its name is the same as the name of the WFS Feature Type. This need not be the case. See discussion:
http://n2.nabble.com/Broken-GML3OutputFormat-feature-type-name-assumption-td2465297.html
A straightforward solution is to instead obtain the WFS feature type names from the WFS request, as suggested by Andrea. This is implemented in the attached patch GML3OutputFormat.patch. This patch changes the behaviour of the class to iterate over all queries and over all type names within each query, and so is an enhancement over the present implementation, which is limited to one type name per feature collection.
GML3FeatureProducerTest.patch amends a unit test that used a WFS request without setting any type or Query, relying on the old behaviour of GML3OutputFormat. The patch sets the query type names to match those in the data.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira