Skip to content

Commit

Permalink
incorrect indexing of interrior rings
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Nov 21, 2023
1 parent 2bdc7ef commit 00cd006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geoarrow_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,6 @@ impl<const N: usize> PolygonTrait for EsriPolygon<N> {
}

fn interior(&self, i: usize) -> Option<Self::ItemType<'_>> {
self.rings.iter().nth(i - 1)
self.rings.iter().nth(i + 1)
}
}

0 comments on commit 00cd006

Please sign in to comment.