Skip to content

GML: curves with arc segments are read as polylines through their control points, without a notice #1700

Closed

Description

@giswqs

The GML reader reads a gml:Curve (and a LineString/LinearRing) by taking every gml:pos/gml:posList under it, so a curve segment of a kind it doesn't interpolate (Arc, ArcString, Circle, CircleByCenterPoint, Clothoid, BSpline, Bezier, CubicSpline, …) is kept as a polyline through its control points. The shape is approximated with no notice, which breaks the never-silent rule.

Example: <gml:Curve><gml:segments><gml:Arc><gml:posList>10 48 10.5 48.5 11 48</gml:posList></gml:Arc></gml:segments></gml:Curve> gives a three-vertex line and no message.

Expected: either interpolate the segment kinds that have a closed form (arcs and circles through three points, arcs by centre point), or say per layer how many features had curve segments approximated by their control points (one notice with a count, names of the segment kinds). Test both ways: a curve with an arc gives the notice, a curve of LineStringSegments gives none.

This predates #1686, which settles the other accounting from #1620 (found during its review).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions