Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intersecting each feature in a compound site with spatial too expensi… #992

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

chrisala
Copy link
Collaborator

@chrisala chrisala commented Jul 8, 2024

…ve #929

This change is to implement a single call to spatial to get intersecting objects from the layers, then perform the 5% overlap refinement individually for each site. This is because the calls to spatial to intersect against all of the layers takes a few seconds and repeating this few seconds for each shape in a MERIT outputs report was making the save take minutes.

@chrisala chrisala requested a review from temi July 8, 2024 00:43
Copy link
Contributor

@temi temi left a comment

Choose a reason for hiding this comment

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

looks good. one comment.

}
}
else {
Map filtered = filterOutObjectsInBoundary(result, geometryCollection.getGeometryN(i))
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like geometryCollection and i are not defined here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks @temi I've fixed this.

@temi temi merged commit 72d16f8 into dev Jul 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants