Comments (11)
Related #25
from world-atlas.
It appears these have been solved in https://github.com/fil/visionscarto-world-atlas by @Fil
from world-atlas.
In general, I don’t have the bandwidth to maintain manual patches to the Natural Earth Data. But it does seem pretty egregious that Norway’s country code is missing. Here’s my own visualization as of Natural Earth Data version 4.1.0 (world-atlas 2.0.0)
Let me take a look at some patches…
from world-atlas.
The features with missing identifiers are:
- Somaliland - no defined ISO-3166-1 code (numeric or alpha)
- Norway - 578
- Kosovo - no defined ISO-3166-1 code (numeric or alpha)
- Northern Cyprus - no defined ISO-3166-1 code (numeric or alpha)
- Indian Ocean Ter. - unsure (separate from British Indian Ocean Territory)
- Siachen Glacier - unsure
The name property was added in world-atlas 2.0.0, so that can be used as a fallback to identify countries with no ISO-3166-1 numeric code.
I will patch Norway in 2.0.1.
from world-atlas.
Fixed Norway in 2.0.1. I don’t know what to do for the other cases. Related #19 we could include the ISO alpha codes, but that would not help in this case.
from world-atlas.
In https://github.com/nvkelso/natural-earth-vector/blob/master/50m_cultural/ne_50m_admin_0_countries.dbf some codes are used:
- KAS (for Kashmir / Siachen)
- KOS (Kosovo)
- CYN (N. Cyprus)
- SOL (Somaliland)
- IOA (Indian Ocean Territory)
I've extracted the lines for convenience:
https://gist.github.com/Fil/401928df84ef0a16346ddfc37fd739dd
from world-atlas.
@Fil Yes, but those aren’t the ISO-3166-1 numeric codes, which we’re using as identifiers here. And they aren’t the ISO alpha codes either; I believe they’re essentially made-up by Natural Earth Data with no standardized meaning.
from world-atlas.
from world-atlas.
But unless your data happens to use Natural Earth Data’s identifiers (and I haven’t seen any examples of this in public datasets), you’re going to have to map the data manually anyway. In this recent world choropleth for example, the WHO keys the data by name. Many of these names match the Natural Earth Data, but about 30 of them I had to map manually due to discrepancies in naming.
https://observablehq.com/@d3/world-choropleth
from world-atlas.
from world-atlas.
That‘s fair, but I still don’t think it makes sense for Natural Earth Data’s SOV_A3 to be the primary identifier, since it is just a convention used by Natural Earth Data and not a standard (as I understand it from this comment: “The following 4 columns are unique to the Natural Earth administrative-0 coding system, but somewhat follow the ISO 3 digit alpha codes”). #19 discusses adding additional identifiers as properties.
from world-atlas.
Related Issues (20)
- `npm install` on freshly cloned repo fails HOT 4
- Fails when running prepublish script HOT 1
- Redirect to active fork HOT 2
- The countries-110m.json file seems to be invalid HOT 4
- add iso 3611-1-alpha codes HOT 2
- Add POP_EST attribute HOT 1
- should quantization be more aggressive?
- French Guiana is labelled as France HOT 2
- Rename "eSwatini" to "Eswatini" HOT 1
- Tuvalu shows as part of Fiji
- Is there any way to separate out French Guiana from France on map ? HOT 1
- countries-10m.json shows Russia in a way that is not accurate HOT 2
- Rebuilt on Natural Earth Vector 5.0.0
- Why no Makefile
- Same country id for "Australia" and "Ashmore and Cartier Is"
- Country borders are shown not according to United Nation regulations. HOT 3
- Is the quantisation precision too low for 10m?
- Maldives path remains open when rendering chart in D3 HOT 1
- Please use the correct map of India!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from world-atlas.