Giter VIP home page Giter VIP logo

Comments (11)

curran avatar curran commented on July 17, 2024

Related #25

from world-atlas.

curran avatar curran commented on July 17, 2024

It appears these have been solved in https://github.com/fil/visionscarto-world-atlas by @Fil

from world-atlas.

mbostock avatar mbostock commented on July 17, 2024

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)

map (4)

Let me take a look at some patches…

from world-atlas.

mbostock avatar mbostock commented on July 17, 2024

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.

mbostock avatar mbostock commented on July 17, 2024

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.

Fil avatar Fil commented on July 17, 2024

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.

mbostock avatar mbostock commented on July 17, 2024

@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.

Fil avatar Fil commented on July 17, 2024

from world-atlas.

mbostock avatar mbostock commented on July 17, 2024

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.

Fil avatar Fil commented on July 17, 2024

from world-atlas.

mbostock avatar mbostock commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.