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

Incorrect UN features codes and regions #195

Closed
Toshakins opened this issue May 4, 2017 · 9 comments
Closed

Incorrect UN features codes and regions #195

Toshakins opened this issue May 4, 2017 · 9 comments
Assignees
Labels

Comments

@Toshakins
Copy link

Some features representing UN M49 standard are entered incorrectly. For example, natural earth cultural admin 0 countries dataset has next value for REGION_UN feature: Seven seas (open ocean). This value is set for French Southern Islands, US Minor Outlying Islands and, possible, some other territories.

However, this doesn't correspond to the current M49 standard. Steps how to check:

  1. Open https://unstats.un.org/unsd/methodology/m49/overview/
  2. Enter 'minor' in a search field.

Expected behaviour:
Minor Outlying Islands are listed under some region called 'Seven seas'

Actual behaviour:
Minor outlying islands are part of Micronesia and Micronesia is part of Oceania.

PS: won't you mind a pull request from me? 🤓

@Toshakins
Copy link
Author

@nvkelso

If pull requests are welcome, can you also point me to docs/introduce how to correctly do that? Thanks in advance.

@Toshakins
Copy link
Author

Toshakins commented May 4, 2017

UN_A3 property is also incorrect:

$ ogrinfo  -dialect sqlite -sql "select distinct admin from ne_110m_admin_0_countries \
    where un_a3='-099'" ne_110m_admin_0_countries.shp


INFO: Open of `ne_110m_admin_0_countries/ne_110m_admin_0_countries.shp'
      using driver `ESRI Shapefile' successful.

Layer name: SELECT
Geometry: None
Feature Count: 6
Layer SRS WKT:
(unknown)
admin: String (0.0)
OGRFeature(SELECT):0
  admin (String) = Antarctica

OGRFeature(SELECT):1
  admin (String) = French Southern and Antarctic Lands

OGRFeature(SELECT):2
  admin (String) = Northern Cyprus

OGRFeature(SELECT):3
  admin (String) = Kosovo

OGRFeature(SELECT):4
  admin (String) = Somaliland

OGRFeature(SELECT):5
  admin (String) = Taiwan

Antarctica and French Southern Territories do have UN code.

@nvkelso
Copy link
Owner

nvkelso commented May 5, 2017

This Excel file is the master copy of attributes:

You can change all the resulting country DBF files in the 3 scalesets (10m, 50m, 110m), but the Excel needs to be updated else those will be overwriten in the next full build.

@Toshakins
Copy link
Author

@nvkelso I finally created a PR for this issue, please take a look if possible #232

@nvkelso
Copy link
Owner

nvkelso commented Mar 8, 2021

Fixed in 8278832, scheduled for v5 release.

Unfortunately the associated PR grew stale as it wasn't merged right away (my bad, and it's in OpenOffice now too), so I recreated it for the 2 UN codes and the several++ regions you called out, 2x checking with your PR's Excel file.

@nvkelso nvkelso mentioned this issue Mar 8, 2021
@nvkelso nvkelso changed the title Incorrect UN features Incorrect UN features codes and regions Mar 9, 2021
@Toshakins
Copy link
Author

the associated PR grew stale

No worries, thanks for doing God's work!

I am not able to verify shapefiles in provided commit at the moment, do you need any action from my side? If not, feel free to close the issue whenever is comfortable for you.

@nvkelso
Copy link
Owner

nvkelso commented Mar 10, 2021

Thanks! No further action required from you. Once the associated PR is merged I'll close this issue.

@nvkelso
Copy link
Owner

nvkelso commented Jun 14, 2021

image

image

@nvkelso
Copy link
Owner

nvkelso commented Aug 29, 2021

Closed via #446.

@nvkelso nvkelso closed this as completed Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants