Parsing LineString from GML3 containing points only does not work

Description

The GML3ParsingUtils class has annoying bug

1 2 3 4 5 6 7 8 9 10 if (node.hasChild(Point.class)) { List points = node.getChildValues(Point.class); Coordinate[] coordinates = new Coordinate[points.size()]; for (int i = 0; i < points.size(); i++) { coordinates[i] = ((Point) points.get(0)).getCoordinate(); } return ring ? gf.createLinearRing(coordinates) : gf.createLineString(coordinates); }

The code results in LineString or Ring with N points, having the same Coordinates.

Environment

None

Status

Assignee

Unassigned

Reporter

Иван Георгиев

Triage

None

Components

Affects versions

18.1
19.0
17.5

Priority

High
Configure