Skip to content

danieledler/world-atlas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

World Atlas TopoJSON

This repository provides a convenient mechanism for generating TopoJSON files from Natural Earth.

Installing via Homebrew

Before you can run make, you’ll need to install Node.js and ogr2ogr. Here’s how to do that using Homebrew on Mac OS X:

brew install node gdal

And then, from this repository’s root directory, install the dependencies:

npm install

If the installation of node-canvas fails for you, try

PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig npm install canvas

Or, add this to your ~/.bash_profile:

export PKG_CONFIG_PATH="/opt/X11/lib/pkgconfig"

If you want to install this software using an alternate method see the website for TopoJSON. I also recommend reading my tutorial, Let’s Make a Map.

Make Targets

topo/world-10m.json

Admin 0 country boundaries at 1:10,000,000 scale.

topo/world-50m.json

Admin 0 country boundaries at 1:50,000,000 scale.

topo/world-110m.json

Admin 0 country boundaries at 1:110,000,000 scale.

If you want to generate a custom map, I recommend modifying the Makefile. Or, just use the Makefile as a set of examples, and run the appropriate ogr2ogr and topojson commands from the terminal.

About

Roll your own TopoJSON from Natural Earth data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Makefile 100.0%