Skip to content

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Feb 15, 2023
1 parent 590dbeb commit 0d50fc7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 377 deletions.
38 changes: 13 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,25 @@
## Natural Earth vector data, fixed & packaged

### 110m:

- fixes topological issues on the border of Sudan
- adds a few Kuril Islands
- adds Gaza
- fixes id="578" for Norway
- countries with no official iso_n3 code receive a negative id

### 110m & 50m:

- uses UN definition for Morocco / Western Sahara
- export countries and land as a quantized GeoJSON
- publishes id in the tsv file
## Natural Earth vector data, modified & simplified

A modification of [topojson/world-atlas](https://github.com/topojson/world-atlas) 110m and 50m files, with various modifications intended for Visionscarto:
- fixes topology issues (border of Sudan; North Korea…)
- adds a few shapes (Kuril Islands; Gaza)
- better reflects the UN views (Ukraine; Western Sahara)
- adds names and ids (Norway; Kosovo; North Macedonia…)
- adds 3-letter codes (as properties.a3)
- quantized and optimized

## Usage

You can use this as a drop-in replacement for [world-atlas](https://github.com/topojson/world-atlas) 110m and 50m data:

In TopoJSON:
```{javascript}
fetch('https://unpkg.com/visionscarto-world-atlas/world/110m.json').then(d => d.json())
```
Consume these files with TopoJSON:

In GeoJSON:
```{javascript}
fetch('https://unpkg.com/visionscarto-world-atlas/world/50m_land.geojson').then(d => d.json())
const world = await fetch("https://cdn.jsdelivr.net/npm/[email protected]/world/110m.json").then(d => d.json());
const features = topojson.feature(world, world.objects.countries);
```

With d3:
```{javascript}
d3.json('https://unpkg.com/visionscarto-world-atlas/world/110m_countries.geojson')
const world = await fetch("https://cdn.jsdelivr.net/npm/[email protected]/world/50m.json").then(d => d.json());
const land = topojson.feature(world, world.objects.land);
```

<img src="img/land.png" width=480>
Expand Down
64 changes: 0 additions & 64 deletions bin/geoformat

This file was deleted.

14 changes: 1 addition & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "visionscarto-world-atlas",
"version": "0.0.6",
"version": "0.1.0",
"description": "Derived from mbostock's world-atlas: Pre-built TopoJSON from Natural Earth.",
"license": "BSD-3-Clause",
"homepage": "https://github.com/Fil/visionscarto-world-atlas",
Expand All @@ -12,17 +12,5 @@
"repository": {
"type": "git",
"url": "https://github.com/Fil/visionscarto-world-atlas.git"
},
"scripts": {
"build": "bash run"
},
"devDependencies": {
"d3-dsv": "^1.0.3",
"d3-geo-projection": "^2.4.0",
"ndjson-cli": "^0.3.0",
"shapefile": "^0.6.1",
"topojson-client": "^3.0.0",
"topojson-server": "^3.0.0",
"topojson-simplify": "^3.0.0"
}
}
Loading

0 comments on commit 0d50fc7

Please sign in to comment.