GeoServer
  1. GeoServer
  2. GEOS-2457

Geometries are encoded in WKT instead of GML (in WPS responses)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.x
    • Component/s: WPS
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Running the ExecuteTest.testFeatureCollectionInlineRawOutput (commented out at the moment) one gets the following output:

      <?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>
      

      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.

        Activity

        Hide
        Justin Deoliveira added a comment -

        This should be fixed with some recent changes to wfs / gml feature encoding on trunk. Will try to verify and close if so.

        Show
        Justin Deoliveira added a comment - This should be fixed with some recent changes to wfs / gml feature encoding on trunk. Will try to verify and close if so.
        Hide
        Andrea Aime added a comment -

        Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

        Show
        Andrea Aime added a comment - Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

          People

          • Assignee:
            Justin Deoliveira
            Reporter:
            Andrea Aime
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: