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

remove the US-SEC zone from US-FL so they don't overlap #1944

Merged
merged 5 commits into from
Sep 3, 2019

Conversation

snarfed
Copy link
Contributor

@snarfed snarfed commented Aug 29, 2019

for #1713. thanks to @systemcatch for the drastically simplifying suggestion in #1713 (comment)!

not a big deal, but if/when you all merge, maybe consider preserving the individual commits, ie merge or rebase instead of squashing. d239a74 in particular is a good example of how to subtract one arbitrary set of Topo/GeoJSON features from another, with polygon-clipping.difference(). basically:

const clipping = require('polygon-clipping');
zones['US-FL'] = ... clipping.difference(
    zones['US-FL'].geometry.coordinates,
    zones['US-SEC'].geometry.coordinates)

@systemcatch systemcatch self-requested a review August 30, 2019 15:56
@corradio
Copy link
Member

corradio commented Sep 3, 2019

Hi @snarfed , can you post a screenshot just so we can double check?
Thanks for this!

@snarfed
Copy link
Contributor Author

snarfed commented Sep 3, 2019

oops, yes! sorry, should have done that originally.

image

Copy link
Member

@corradio corradio left a comment

Choose a reason for hiding this comment

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

Great!

@corradio corradio merged commit bd28e53 into electricitymaps:master Sep 3, 2019
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.

None yet

2 participants