Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Allow checks on rings and polygons to support permutes #3

Merged
merged 1 commit into from
Feb 28, 2021

Conversation

rmanoka
Copy link
Contributor

@rmanoka rmanoka commented Feb 28, 2021

Fixes for convex hull:

  1. converts expected geoms: LineString -> Polygon
  2. make equality checks accept if the polygon rings are rotated / interiors are permuted

Now, both centroid and conv. hull checks pass.

@rmanoka rmanoka requested a review from michaelkirk February 28, 2021 08:13
@@ -173,8 +190,11 @@ impl TestRunner {

for entry in GENERAL_TEST_XML.find(&filename_filter)? {
let file = match entry {
DirEntry::Dir(_) => { debug_assert!(false, "unexpectedly found dir.xml"); continue }
DirEntry::File(file) => file
DirEntry::Dir(_) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, sorry for not cargo fmt before my last commit.

Copy link
Member

@michaelkirk michaelkirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks @rmanoka!

I haven't got CI up yet, but I verified these tests pass for me locally against georust/geo#629

@michaelkirk michaelkirk merged commit 3294b9a into master Feb 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants