You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GML: curves with arc segments are read as polylines through their control points, without a notice #1700
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).
Activity
fix(gml): a dropped ring's curves aren't said to be approximated (ope…
fix(gml): a curve is approximated only in a ring polygon() keeps (ope…
fix(gml): a segment given by a centre point is said for what it is (o…
fix(data): GML says when curve segments are read as their control poi…