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

ENH: optimize export_by_location with e.g. intersects is False #606

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

KriWay-LV
Copy link
Collaborator

@KriWay-LV KriWay-LV commented Dec 19, 2024

fixes #617
resolves #548

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

Attention: Patch coverage is 97.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 93.74%. Comparing base (5f08842) to head (d2f13f8).
Report is 94 commits behind head on main.

Files with missing lines Patch % Lines
geofileops/util/_geoops_sql.py 97.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #606      +/-   ##
==========================================
+ Coverage   93.11%   93.74%   +0.62%     
==========================================
  Files          21       21              
  Lines        4113     4457     +344     
==========================================
+ Hits         3830     4178     +348     
+ Misses        283      279       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@KriWay-LV KriWay-LV requested a review from theroggy January 13, 2025 08:24
Copy link
Collaborator

@theroggy theroggy left a comment

Choose a reason for hiding this comment

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

Looks already very promising, thanks!

Already a first round of more higher level feedback in this review, and additionally:

  • feel free to add a line in the changelog for this great improvement ;-)

geofileops/util/_geoops_sql.py Outdated Show resolved Hide resolved
geofileops/util/_geoops_sql.py Show resolved Hide resolved
geofileops/util/_geoops_sql.py Outdated Show resolved Hide resolved
geofileops/util/_geoops_sql.py Outdated Show resolved Hide resolved
geofileops/util/_geoops_sql.py Outdated Show resolved Hide resolved
tests/test_named_spatial_relationships.py Outdated Show resolved Hide resolved
tests/test_named_spatial_relationships.py Outdated Show resolved Hide resolved
geofileops/util/_geoops_sql.py Show resolved Hide resolved
@theroggy theroggy added this to the 0.10 milestone Jan 16, 2025
"spatial_relations, exp_features",
[("intersects is True", 1), ("intersects is False", 2)],
)
def test_intersects(
Copy link
Collaborator

@theroggy theroggy Jan 23, 2025

Choose a reason for hiding this comment

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

Maybe it is clearer to name this module test_export_by_location.py and to put all tests related to export_by_location (also the one(s) now in test_geofileops_twolayers.py) together here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants