Skip to content

Commit cd2f763

Browse files
committed
Initialize GML LineString with a ring
1 parent a235111 commit cd2f763

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,10 @@ fn process_event(event: &Event, mut state: &mut State) -> Step {
656656
state.gmlcoll.push(Geometry::new(1));
657657
state.gmlcoll.last_mut().unwrap().rings.push(Vec::new());
658658
},
659-
"gml:LineString" => state.gmlcoll.push(Geometry::new(2)),
659+
"gml:LineString" => {
660+
state.gmlcoll.push(Geometry::new(2));
661+
state.gmlcoll.last_mut().unwrap().rings.push(Vec::new());
662+
},
660663
"gml:Polygon" => state.gmlcoll.push(Geometry::new(3)),
661664
"gml:MultiPolygon" => (),
662665
"gml:polygonMember" => (),

0 commit comments

Comments
 (0)