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

Make geometries unhashable #320

Merged
merged 1 commit into from Sep 11, 2015

Conversation

Projects
None yet
2 participants
@sgillies
Copy link
Member

sgillies commented Sep 6, 2015

Shapely's geometries are mutable, but we're providing a hash function. These two features are inconsistent. Rather than remove mutability (for now) we'll remove the hashability.

See #209

Make geometries unhashable
Shapely's geometries are mutable, but we're providing a hash function.
These two features are inconsistent. Rather than remove mutability
(for now) we'll remove the hashability.

See #209

@sgillies sgillies added the bug label Sep 6, 2015

@sgillies sgillies modified the milestone: 1.6 Sep 6, 2015

@sgillies

This comment has been minimized.

Copy link
Member

sgillies commented Sep 6, 2015

@jwass I'm revisiting the change I made in #211, which seems wrong. I'd love your assessment on the effects of this PR on GeoPandas et al.

Not this weekend, of course. I'm putting my computer away until Tuesday in about 30 mins :)

@jwass

This comment has been minimized.

Copy link
Collaborator

jwass commented Sep 8, 2015

Will do.

@jwass jwass referenced this pull request Sep 9, 2015

Open

Unhashable Geometries #221

@jwass

This comment has been minimized.

Copy link
Collaborator

jwass commented Sep 9, 2015

@sgillies See geopandas/geopandas#221.

As far as GeoPandas goes, I think this only affects anyone that has a merge/join that includes the geometry column in the list of fields to join. My guess is it's rare to have done so intentionally but I proposed additional functionality that would explicitly support that operation, so they won't be left out in the cold.

Once geopandas/geopandas#222 is merged, then the GeoPandas tests will pass against this change.

@kjordahl kjordahl referenced this pull request Sep 10, 2015

Merged

Remove test_merge_geo #222

sgillies added a commit that referenced this pull request Sep 11, 2015

Merge pull request #320 from Toblerity/unhashable
Make geometries unhashable

@sgillies sgillies merged commit 5cde6d2 into maint-1.5 Sep 11, 2015

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@sgillies sgillies deleted the unhashable branch Sep 11, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment