Skip to content

Commit

Permalink
Ensure first ring is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Apr 2, 2024
1 parent 81edae0 commit 0317acd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/maple/refresh_metadata_tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ pub async fn refresh_metadata_assignments(
let hulls_from_static_geo_types: Vec<geo::Polygon<f64>> = hulls_from_static
.iter()
.filter(|x| x.rings.len() > 0)
.filter(|x| x.rings[0].len() > 0)
.map(|x| {
let mut points = vec![];
for point in x.rings[0].iter() {
Expand Down

0 comments on commit 0317acd

Please sign in to comment.