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

feat(country-map): Adds Philippines regional map and updates/cleans existing Philippines provincial map #27933

Merged
merged 39 commits into from
Apr 25, 2024

Conversation

jdruii
Copy link
Contributor

@jdruii jdruii commented Apr 8, 2024

SUMMARY

  • Added philippines_regions.geojson map using the regional ISO codes
  • Updates philippines.geojson by dividing Maguindanao province to Maguindanao del Norte and Maguindanao del Sur, as well as splintering off Davao Occidental from Davao del Sur
  • Cleans philippines.geojson by incorporating the inconsistently placed highly urbanized cities (which sometimes uses a pseudo-ISO code) into their respective geographical provinces. This is done to be more in line with how the Philippine Statistics Authority does it in their census.
  • Merges the 16 cities and 1 municipality within Metropolitan Manila under the regional ISO code PH-00 since there is no provincial ISO for the cities within.

References:

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

ph_div
ph_prov_mm
ph_prov_luzon
ph_prov_visayas
ph_prov_mindanao

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

jdruii added 30 commits April 5, 2024 14:58
- Removes inconsistently placed highly urbanized cities (HUCs) and merges them into their respective geographical province.

- Merges all 16 HUC and 1 municipality in the Metropolitan Manila area under "Manila" with the pseudo ISO-3166-2 code of "PH-MNL"

- Adds missing provinces: Davao Occidental, Dinagat Islands

- Updates outdated provincial name: Compostella Valley -> Davao de Oro
Regional subdivisions of the Philippines, including their name and ISO-3166-2:PH code
Renames 'Manila' to 'Metro Manila'. Additional cleanings.
Cleans 'National Capital Region'
Changes to Metro Manila
Changes to Manila and Rizal
Cleans CALABARZON  provinces
Cleans Regions I, II, III, and CAR
Cleans regions I, II, III, and CAR
Cleans regions I, II, III, and CAR
Cleans Bicol Region
Cleans region 6 and 7
Cleans region 9 and 10
Splits Maguindanao into Maguindanao del Norte and del Sur
Cleans the rest of Mindanao
Fixes Surigao del Norte
Fixes Cordillera Administrative Region
Cleans Visayas regions
Fixes Mindanao regions
Further cleanings
jdruii added 3 commits April 8, 2024 12:57
Merges subdivisions within a region
Actually merges the subdivisions within regions
Changes the ISO code for Metro Manila from a pseudo provincial ISO code of `PH-MNL` to its regional ISO code `PH-00`
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Congrats on making your first PR and thank you for contributing to Superset! 🎉 ❤️

We hope to see you in our Slack community too! Not signed up? Use our Slack App to self-register.

@rusackas
Copy link
Member

rusackas commented Apr 8, 2024

Hi there... this is great, and we thank you for the contribution. Both the geojson files and the countries.ts file in this PR will be overwritten by anyone running the Jupyter notebook that generates Superset's maps. Would you be able to make your changes in that notebook so that the geojson/typescript in this PR is generated? This will help the whole project maintain good maps going forward.

@jdruii
Copy link
Contributor Author

jdruii commented Apr 9, 2024

Added it. I hope it's okay that I used a different source for the changes that I made for the phiippines.geojson. The one being generated by the files from the Natural Earth Data is just outdated and too messy with the inconsistent highly urbanized cities.

@rusackas
Copy link
Member

rusackas commented Apr 9, 2024

I'll take a look... as long as the data being pulled in is license-compatible with the Apache 2 license, I think we should be OK.

@rusackas
Copy link
Member

I see the repo you set up with the geojson is MIT licensed. I suppose that's good enough, though I don't know where it came from beyond that 🤔 . Meanwhile, I'll close and reopen this to see if we can get CI to finish this time.

@rusackas rusackas closed this Apr 17, 2024
@rusackas rusackas reopened this Apr 17, 2024
@jdruii
Copy link
Contributor Author

jdruii commented Apr 19, 2024

Some of the coordinates are still from the original .geojson file that was generated by the notebook. The rest are hand-fixed using geojson.io. And according to them:

The data you create and modify in geojson.io doesn't acquire any additional license: if it's secret and copyrighted, it will remain that way - it doesn't have to be public or open source.

@rusackas rusackas merged commit ce1d18e into apache:master Apr 25, 2024
57 checks passed
qleroy pushed a commit to qleroy/superset that referenced this pull request Apr 28, 2024
jzhao62 pushed a commit to jzhao62/superset that referenced this pull request May 16, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.1.0 labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels plugins size/L 🚢 4.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants