-
Notifications
You must be signed in to change notification settings - Fork 111
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
Conversation
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.
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']) |
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.
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.
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.
Might also be able to use this on the numpy array check right above
Co-Authored-By: drewbo <[email protected]>
Co-Authored-By: drewbo <[email protected]>
…ker into feature/geojson
33311d2
to
f450ce3
Compare
A functional but unclean implementation of #32. To merge this properly it still needs: