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
TST: more thorough testing of overlay #343
TST: more thorough testing of overlay #343
Conversation
72b438f
to
729928b
Compare
Hmm, something strange going on here. All tests pass locally for me (on Windows), and I also used the exact same example dataframe as in the docs: http://geopandas.readthedocs.io/en/master/set_operations.html#the-different-overlay-operations For example, the
The reproducible example from the tests/docs is:
You can see in the result on travis that the coordinates even include '5', while the coordinates in Does anybody see what I am missing? |
b53dcb8
to
335b2a3
Compare
Short report of what I discovered untill now: the reason for the difference lies in the use of |
@jorisvandenbossche maybe the better place to tweak is at the creation of the representative point -- line 116 in overlay.py. Can you tweak with something like:
Trying to think if there's a parameter that would set the right value for the negative buffer. Maybe we can add a parameter to |
Addresses geopandas#338, geopandas#400 Potentially also geopandas#343
335b2a3
to
fa89730
Compare
fa89730
to
f7b039c
Compare
f7b039c
to
02d4729
Compare
b3550b6
to
8cf4189
Compare
Added some more tests for
overlay
comparing to actual output (so using simple example dataframe like in docs, and not only checking shape).Wanted to do this before #338 to ensure the perf improvements do not change the output.