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

Choropleth incorrect border polygons #94

Open
robertcv opened this issue Mar 10, 2020 · 2 comments
Open

Choropleth incorrect border polygons #94

robertcv opened this issue Mar 10, 2020 · 2 comments

Comments

@robertcv
Copy link
Collaborator

I want to add some information on #31 that I gather during the reimplementation of Choropleth. I created this additional issue because I wanted it to be clearly laid out.

The problem of drawing the wrong countries comes from points near the countries borders which are incorrectly assigned because the polygons we use may be incorrect. The problem doesn't come from simplifying them for smaller file sizes. The problem lies in the original data that we use. For levels 0 and 1 that would be http://www.naturalearthdata.com. I tried using un-simplified original data and the borders were still not aligned with the ones drawn on maps (see picture below). I am not sure what the ground truth is, but I would assume that OpenStreetMaps is correct. So the solution to this issue is to find new, more correct border polygon data.

By only googling a bit I could unfortunately not find a better data source. External help from someone who knows more about geodata would be really appreciated.

choropleth

@fititnt
Copy link

fititnt commented Aug 10, 2022

@robertcv I do not have an specific timeline, but as a side effect of asking on the other issue some way to allow specify geometries not shipped with the package, might as side effect help with this.

However, compared to http://www.naturalearthdata.com/ (public domain), likely would need some way to allow specify source of the geometry (which now could vary by region), so not sure if would be viable to make the notices hardcoded on the software (compared as read from the geojsons, not checks if already not doing this way)

@danilopinhodealmeida
Copy link

Can you use another data source other than https://www.naturalearthdata.com/?
Because you initially have two problems: the first is related to the resolution, which is that the openstreetmap is larger --> that's why the edges are more serrated than its freature; and secondly, you must place or see if the Datums are the same.
I hope I have shed some light on resolving the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants