ft-interactive/annotated-atlas

Name: annotated-atlas

Owner: FT Interactive News

Description: Pre-built TopoJSON from Natural Earth.

Forked from: topojson/world-atlas

Created: 2017-09-14 10:59:12.0

Updated: 2017-09-14 11:02:08.0

Pushed: 2017-09-15 13:11:16.0

Homepage:

Size: 17

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Annotated Atlas TopoJSON

This is a fork of topojson/world-atlas that merges in topojson/us-atlas and other shapefiles.

It leaves all the original shapefile metadata attached, meaning the resulting files are not optimised for web-use but are much easier to use, particularly in non-production settings.

Usage

In a browser (using d3-geo and Canvas), bl.ocks.org/3783604:

CTYPE html>
vas width="960" height="500"></canvas>
ipt src="https://d3js.org/d3.v4.min.js"></script>
ipt src="https://unpkg.com/topojson-client@3"></script>
ipt>

context = d3.select("canvas").node().getContext("2d"),
path = d3.geoPath(d3.geoOrthographic(), context);

son("https://unpkg.com/world-atlas@1/world/110m.json", function(error, world) {
 (error) throw error;

ntext.beginPath();
th(topojson.mesh(world));
ntext.stroke();


ript>

In Node (using d3-geo and node-canvas), bl.ocks.org/885fffe88d72b2a25c090e0bbbef382f:

fs = require("fs"),
d3 = require("d3-geo"),
topojson = require("topojson-client"),
Canvas = require("canvas"),
world = require("./node_modules/world-atlas/world/110m.json");

canvas = new Canvas(960, 500),
context = canvas.getContext("2d"),
path = d3.geoPath(d3.geoOrthographic(), context);

ext.beginPath();
(topojson.mesh(world));
ext.stroke();

as.pngStream().pipe(fs.createWriteStream("preview.png"));
File Reference

# world/110m.json <>

A TopoJSON topology containing two geometry collections: countries and land. The geometry is quantized, but not projected; it is in spherical coordinates, decimal degrees. This topology is derived from the Natural Earth?s Admin 0 country boundaries, 1:110m small scale, version 2.0.0. The land boundary is computed by merging countries, ensuring a consistent topology.

# world.objects.countries

# world.objects.land

# world/50m.json <>

Equivalent to world/110m.json, but at 1:50m medium scale.

# world.objects.countries

# world.objects.land

Sources

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.