[Geoserver-devel] [JIRA] (GEOS-7349) GeoJSON geometry and geometry_name inconsistent on multi-geometry features

Andreas W created an issue

GeoServer / BugGEOS-7349

GeoJSON geometry and geometry_name inconsistent on multi-geometry features

Issue Type:

BugBug

Affects Versions:

2.8.1

Assignee:

Unassigned

Components:

WFS

Created:

17/Dec/15 11:26 AM

Priority:

MediumMedium

Reporter:

Andreas W

WFS GetFeature requests for features with multiple geometries with outputFormat “json” return JSON structures as in the following sample:

{
  "type": "Feature",
  "id": "MyFeature.0",
  /* default geometry: */
  "geometry": {
    "type": "Point",
    "coordinates": [
      1,
      1
    ]
  },
  "geometry_name": "geom_a",
  "properties": {
    "geom_b": {
      "type": "Point",
      "coordinates": [
        2,
        2
      ]
    },
    "geom_c": {
      "type": "Point",
      "coordinates": [
        3,
        3
      ]
    },
    "Title": "FeatureWithAllGeometries"
  }
}

Problem: If the value of the default geometry of the feature type is null, another geometry of the feature is rendered as default geometry. However the geometry_name is still the name of the default geometry. So the geometry_name does not correspond to the default geometry of the JSON structure.

Additionally the a null value is rendered in the properties for the default geometry. This is inconsistent to behaviour shown on non-null values.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.1.0-OD-02-030#71001-sha1:2ba8c0f)

Atlassian logo