topojson/world-atlas

Name: world-atlas

Owner: TopoJSON

Description: Pre-built TopoJSON from Natural Earth.

Created: 2013-02-14 18:31:03.0

Updated: 2018-01-15 23:11:17.0

Pushed: 2017-09-14 20:18:59.0

Homepage:

Size: 349

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

World Atlas TopoJSON

This repository provides a convenient mechanism for generating TopoJSON files from Natural Earth?s vector data, version 2.0.0.

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


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.