Geometries are encoded in WKT instead of GML (in WPS responses)
---------------------------------------------------------------
Key: GEOS-2457
URL: http://jira.codehaus.org/browse/GEOS-2457
Project: GeoServer
Issue Type: Bug
Components: WPS
Reporter: Andrea Aime
Assignee: Justin Deoliveira
Running the ExecuteTest.testFeatureCollectionInlineRawOutput (commented out at the moment) one gets the following output:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:feature="http://www.openplans.org/topp" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengis.net/ows" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<gml:boundedBy>
<gml:Envelope>
<gml:lowerCorner>-7.071067811865475 -7.071067811865475</gml:lowerCorner>
<gml:upperCorner>12.071067811865476 12.071067811865476</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<gml:featureMember>
<feature:states gml:id="states.1">
<gml:boundedBy>
<gml:Envelope>
<gml:lowerCorner>-7.071067811865475 -7.071067811865475</gml:lowerCorner>
<gml:upperCorner>9.071067811865476 9.071067811865476</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<feature:the_geom>MULTIPOLYGON (((-7.071067811865475 7.071067811865475, -5.071067811865475 9.071067811865476, -5.972576408508315 7.972576408508306, -7.071067811865475 7.071067811865475)), ((7.972576408508316 -5.972576408508306, 9.071067811865476 -5.071067811865475, 7.071067811865475 -7.071067811865475, 7.972576408508316 -5.972576408508306)))</feature:the_geom>
<feature:STATE_NAME>Illinois</feature:STATE_NAME>
</feature:states>
</gml:featureMember>
<gml:featureMember>
<feature:states gml:id="states.2">
<gml:boundedBy>
<gml:Envelope>
<gml:lowerCorner>-4.071067811865475 -4.071067811865475</gml:lowerCorner>
<gml:upperCorner>12.071067811865476 12.071067811865476</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<feature:the_geom>MULTIPOLYGON (((-4.071067811865475 10.071067811865476, -2.0710678118654746 12.071067811865476, -2.9725764085083144 10.972576408508306, -4.071067811865475 10.071067811865476)), ((10.972576408508317 -2.9725764085083055, 12.071067811865476 -2.0710678118654746, 10.071067811865476 -4.071067811865475, 10.972576408508317 -2.9725764085083055)))</feature:the_geom>
<feature:STATE_NAME>District of Columbia</feature:STATE_NAME>
</feature:states>
</gml:featureMember>
</wfs:FeatureCollection>
{code}
Yuk, look at the geometries, they are WKT instead of XML... something is missing there.
The same happens in the non raw response, but it's not easy to see and the XML encoder does not complain, I guess because the contents of an output can literally be anything.
--
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