Skip to content

Add support for geojson labels #109

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

Merged
merged 10 commits into from
Nov 5, 2018
Merged

Add support for geojson labels #109

merged 10 commits into from
Nov 5, 2018

Conversation

drewbo
Copy link
Contributor

@drewbo drewbo commented Oct 4, 2018

A functional but unclean implementation of #32. To merge this properly it still needs:

@wronk wronk self-requested a review October 4, 2018 15:50
Copy link
Contributor

@wronk wronk left a comment

Choose a reason for hiding this comment

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

Minor comments to address. Glad to see this functionality going in :)

I'm happy with this as soon as you get the tests to work

geojson = json.load(geojson_file)

for feature in geojson['features']:
self.assertTrue(feature in expected_geojson['features'])
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's true that the number of features should be the same. If so, try assertCountEqual. The name is a little misleading, but it checks that both (potentially unordered) lists have the same elements.

Copy link
Contributor

Choose a reason for hiding this comment

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

Might also be able to use this on the numpy array check right above

@drewbo drewbo changed the title [WIP] Add support for geojson labels Add support for geojson labels Nov 5, 2018
@drewbo drewbo merged commit 78b149b into master Nov 5, 2018
@drewbo drewbo deleted the feature/geojson branch November 5, 2018 16:57
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.

2 participants