GeoJSON geometry and geometry_name inconsistent on multi-geometry features

Description

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

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.

Environment

None

Assignee

Unassigned

Reporter

Andreas W

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure