Skip to content

fix schema-invalid GML for polygon rings when useSurfaceAndCurve is enabled#568

Merged
cportele merged 1 commit into
masterfrom
fix-gml-polygon-encoder
Jul 4, 2026
Merged

fix schema-invalid GML for polygon rings when useSurfaceAndCurve is enabled#568
cportele merged 1 commit into
masterfrom
fix-gml-polygon-encoder

Conversation

@cportele

@cportele cportele commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Plain polygons were encoded as Ring > curveMember > LineStringSegment, but gml:curveMember requires an element from the gml:AbstractCurve substitution group. The ring is now delegated to the geometry encoder, producing Ring > curveMember > Curve > segments > LineStringSegment, consistent with the existing curve-polygon path. Curve polygons were not affected.

  • GeometryEncoderGml: delegate polygon rings to the embedded encoder in the USE_SURFACE_RING_CURVE branch
  • GeometrySpec: expect the wrapped, schema-valid encoding

…nabled

Plain polygons were encoded as Ring > curveMember > LineStringSegment,
but gml:curveMember requires an element from the gml:AbstractCurve
substitution group. The ring is now delegated to the geometry encoder,
producing Ring > curveMember > Curve > segments > LineStringSegment,
consistent with the existing curve-polygon path. Curve polygons were
not affected.

- GeometryEncoderGml: delegate polygon rings to the embedded encoder
  in the USE_SURFACE_RING_CURVE branch
- GeometrySpec: expect the wrapped, schema-valid encoding
@cportele cportele self-assigned this Jul 4, 2026
@cportele cportele requested a review from azahnen as a code owner July 4, 2026 14:59
@cportele cportele added the bug label Jul 4, 2026
@cportele cportele merged commit 9b879ef into master Jul 4, 2026
3 checks passed
@cportele cportele deleted the fix-gml-polygon-encoder branch July 4, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant