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

Admin 0 & 1 interior singleton points #892

Open
xangregg opened this issue Feb 11, 2024 · 0 comments
Open

Admin 0 & 1 interior singleton points #892

xangregg opened this issue Feb 11, 2024 · 0 comments

Comments

@xangregg
Copy link

xangregg commented Feb 11, 2024

I went through all the ~70 admin_x files looking for singleton interior points, as a diagnostic for potentially misaligned polygons (overlapping or gapped). These are minor in general, but the issues can worsen after downstream processing, such as polygon simplification.

For admin 0 and 1, I saw only one real singleton, which occurred in multiple files. Here they are as csv

shape# (1-based), part# (1-based), lon, lat, filename
6, 1, -57.63397091, -30.18358286, 10m_cultural/ne_10m_admin_0_countries_iso.shp
6, 1, -57.63397091, -30.18358286, 10m_cultural/ne_10m_admin_0_countries_tlc.shp
750, 1, -57.63397091, -30.18358286, 10m_cultural/ne_10m_admin_1_states_provinces_lakes.shp
774, 1, -57.63397091, -30.18358286, 10m_cultural/ne_10m_admin_1_states_provinces_scale_rank_minor_islands.shp
774, 1, -57.63397091, -30.18358286, 10m_cultural/ne_10m_admin_1_states_provinces_scale_rank.shp
750, 1, -57.63397091, -30.18358286, 10m_cultural/ne_10m_admin_1_states_provinces.shp

I spot-checked one of the non-offending files and it had this point twice, once each in two polygons.

Probably a non-issue but for completeness, in these files almost all of the interior points are singletons. Being all collinear, they're unlikely to cause problems downstream.

10m_cultural/ne_10m_admin_0_antarctic_claims.shp
10m_cultural/ne_10m_admin_0_pacific_groupings.shp
50m_cultural/ne_50m_admin_0_pacific_groupings.shp
110m_cultural/ne_110m_admin_0_pacific_groupings.shp

I'll make a separate issue for admin 2 singletons.

@xangregg xangregg changed the title Singleton interior points in admin_0 Admin 0 & 1 interior singleton interior points Feb 11, 2024
@xangregg xangregg changed the title Admin 0 & 1 interior singleton interior points Admin 0 & 1 interior singleton points Feb 11, 2024
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

No branches or pull requests

1 participant