Skip to content

Commit

Permalink
#9 fix Polylines parts must have at least 2 points
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRio42 committed Jan 9, 2025
1 parent a5ff611 commit 125aa41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pullautin_contours_render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@ fn write_formline_shape_to_shapefile(
elevation: f64,
writer: &mut shapefile::Writer<std::io::BufWriter<File>>,
) {
if current_formline.len() < 2 {
return;
}

let mut points: Vec<Point> = vec![];

for (x, y) in current_formline {
Expand Down

0 comments on commit 125aa41

Please sign in to comment.