-
Notifications
You must be signed in to change notification settings - Fork 923
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: Add clip module #1128
ENH: Add clip module #1128
Conversation
updating from geopandas master
updating from geopandas master
updating from geopandas master
Test fiona 1.8b1 (geopandas#844)
Update from geopandas base
Codecov Report
@@ Coverage Diff @@
## master #1128 +/- ##
=========================================
- Coverage 90.06% 90% -0.07%
=========================================
Files 21 22 +1
Lines 2094 2161 +67
=========================================
+ Hits 1886 1945 +59
- Misses 208 216 +8
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good! Looking forward having it implemented. I have made some comments, but nothing critical. I haven't checked tests so far, but that can wait once we'll know what exactly should be tested.
Thank you for moving this from earthpy to geopandas!
thank you @martinfleis i left a question in the issue as well. i just am not sure what the review process is here for geopandas! i am still working on some cleanup but should i go ahead and address your comments first? will there be others that need to review and so I should wait for that input as well? Or just dig in to these first and see if other things come up? thank you! |
@lwasser It is highly probable that @jorisvandenbossche will leave his comments as well, so you can wait with any changes until then. You can respond to comments where we can expect some kind of discussion though. Or just let us know your thoughts on the comments (they are suggestions, not rock solid requests). |
@lwasser you can certainly already start replying to Martin's comments, or updating for comments that seem straightforward. Will try to give this a more detailed look tomorrow. In any case, already thanks for starting the PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lwasser already added a few questions about the implementation
Nice to see this functionality being worked on. I implemented a clip operation in the |
thanks all!! i know i have some more work to do on this PR. i've been slammed this semester but will work on this more THIS WEEK. |
use rtree for points too! Co-Authored-By: Martin Fleischmann <36797143+martinfleis@users.noreply.github.com>
Added changes requested by geopandas to clip and vignette
hi again @martinfleis and @jorisvandenbossche can you please have another look at this PR? we've spent some time (@nkorinek and myself) working on your comments. my apologies for the slowness of our effort. we are juggling a bunch of different projects right now!! |
@lwasser thanks a lot for the update! I will also take a look tomorrow |
wonderful @jorisvandenbossche ! we will have that CI issue fixed by then as well. it's just a black format issue and i just need to push the commit through!! |
hey there @martinfleis @jorisvandenbossche just checking in on this PR and the time frame for when it might be merged! if there are things that we missed please do say the word. |
Hi @lwasser, I hope to finally spend some time again on my geopandas backlog after the holidays the coming days! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, sorry for the slow follow-up, but this is looking really good!
I did a pass over the code myself and pushed some clean-ups (which would otherwise be tedious to put as comments), and left a few remaining inline comments / questions.
For the tests, I think it would be good to have at least one test where we actually compare with a known result with intersected geometries (with assert_geodataframe_equal
, now most tests only check the types of the output etc). This can be a small test where the result is can be easily constructed manually as well.
Also a test that ensures that the output still has the same crs
as the input would be good.
hi team! @martinfleis @ljwolf @jorisvandenbossche i just wanted to check in. i'm currently fairly busy as i'm teaching this semester and working on some tools to support our class!! i will try to have a look at the comments left on this pr. it may however take me some time!! I'm curious if there are things that you guys would like that you could just add vs things you'd like for me or @nkorinek to work on? i'm just trying to be sensitive to my time but also i want to see this merged so we can deprecate it from earthpy as there are bugs over there that we've fixed here! Please let me know what you think! This pr has been open for a while so i hadn't expected to be working on it this spring. i'm not complaining as i just want the best for this package and to help where i can. i'm also just short on time right now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lwasser sorry it takes so long. I'll take care of latest comments in the next couple of days.
@martinfleis thank you! and please don't apologize! i really understand how much effort it is to maintain these projects and appreciate all of the work. Thank you for working on some of the comments! please let us know where we can chip in. like i said i'm really excited about this being incorporated into geopandas! i will then update all of our lessons accordingly. |
I have made changes as per comments, to support I still want to do couple more tests later today or tomorrow. |
thank you @martinfleis !! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@martinfleis thanks for the updates!
There are no remaining unresolved comments, some tests are using @jorisvandenbossche shall we merge? |
Yes, let's do that :) |
@lwasser @nkorinek @martinfleis @ljwolf thanks all for the nice collaborative PR! (and for your patience .. :)) |
@jorisvandenbossche @martinfleis @ljwolf and everyone!! Wow thank you so much for this!! I'm so excited that this is now merged and also excited that we were able to move clip over here where it belongs!! Just curious... when will the next release of geopandas be? I'll then plan to update our online lessons and deprecated clip from earthpy. |
-> #1285 |
Co-authored-by: Martin Fleischmann <martin@martinfleischmann.net> Co-authored-by: Nathan Korinek <nako1890@colorado.edu> Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Hi Again @jorisvandenbossche
Addressing: #821
This PR is the beginning of adding the clip module to geopandas. As i began to copy things over, i noticed that the data used in our vignette uses data downloaded with an earthpy function. So I will need to refactor it to work here. @nkorinek is actually working on that here:
earthlab/earthpy#414
So this is also a WIP PR. so far tests for this module are working just fine but I want to see what CI has to say as well. I noticed some of the other tests are failing locally but they have nothing to do with what i am adding here. Excited to see this functionality in GeoPandas!!
This pr complements #1127 where i'm updating docs as I contribute.
please say the word if something needs to be changed, fixed, etc!!
Closes #956, closes #821