Skip to content

Commit

Permalink
Ensure feeds have polygons of 4 or more points
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Apr 2, 2024
1 parent 0317acd commit c5c4ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maple/refresh_metadata_tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +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)
.filter(|x| x.rings[0].len() >= 4)
.map(|x| {
let mut points = vec![];
for point in x.rings[0].iter() {
Expand Down

0 comments on commit c5c4ec2

Please sign in to comment.