-
Notifications
You must be signed in to change notification settings - Fork 961
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
Add Italy bidding zones (GeoJSON) #1536
Conversation
@antifa-ev Wow, this absolutely made my day/night! 😃😃😃 Zones all look good to me! |
I think it's easier to maintain if we extract them from Natural Earth instead of having custom polygons. Very excited about splitting Italy! |
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.
Good initiative! When I import the shapes into mapshaper I get a json parse error with IT-SIC, the others are fine.
@corradio I've downloaded the boundaries from OpenStreetMap, reprocessed them (deleted all islands) and simplified them with simplify-geojson. I could simplify them in a matter, that adjacent boundaries share the same simplification. But this would involve PostGIS, so I would like to avoid it! And: I've indeed forgotten to fix Sicily. |
Hi @antifa-ev, |
@corradio What do you mean with do the individual areas correspond to regions? I've merged Italian administrative regions into network regions, as demanded. |
@antifa-ev can you ping me on Slack? It will be easier! |
First thing I'm seeing is that these are LineStrings and our other maps use Polygons. That should be a really minor change though. |
From second glance, this should be doable from Natural Earth geometries by merging on region_cod, e.g. Toscana is region_cod=IT-52 (and there are several subdivisions of it - Grosseto, Livorno, Pisa, Siena... but they all have the same region_code). To preview the Natural Earth, download the file http://naciscdn.org/naturalearth/10m/cultural/ne_10m_admin_1_states_provinces_lakes.zip (this is referenced in https://github.com/tmrowco/electricitymap-contrib/blob/master/web/topogen.sh), then upload it to http://mapshaper.org. Using the "i" icon in top-right you can preview properties of the regions. |
We might need to extend https://github.com/tmrowco/electricitymap-contrib/blob/master/web/generate-geometries.js#L65 to enable selection by region_cod |
Closed in favor of #1604 |
No description provided.