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

Additional functional maps for GeoJSON entities #109

Closed
wants to merge 2 commits into from

Conversation

jlaxson
Copy link
Contributor

@jlaxson jlaxson commented Mar 28, 2018

The documentation for map_coords hints that it should be usable for coordinate transforms and the like, but the actual implementation only calls with individual values. So rather than

Point(x, y, z) => func(Point(x, y, z))

You get

Point(x, y, z) => Point(func(x), func(y), func(z))

In my experience, this isn't a very useful transform. This PR adds map_tuples (rather than map_coords to preserve compatibility) for the former use case, and map_geometries for use cases like doing a spatial intersection.

@frewsxcv
Copy link
Collaborator

looks good to me, but any chance you could fix the flake8 issues that travis ci found?

@frewsxcv frewsxcv mentioned this pull request May 7, 2018
@JanLikar JanLikar mentioned this pull request May 16, 2018
bors bot added a commit that referenced this pull request May 22, 2018
112: Fix PR #109. r=frewsxcv a=JanLikar

Fix tests to make #109 mergeable.

Co-authored-by: John Laxson <jlaxson@mac.com>
Co-authored-by: Jan Likar <jan.likar@protonmail.com>
@notriddle
Copy link

notriddle commented May 22, 2018

Close this now that #112 is merged, right?

@frewsxcv frewsxcv closed this May 22, 2018
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.

3 participants