GithubHelp home page GithubHelp logo

isabella232 / world-atlas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sporkmonger/world-atlas

0.0 0.0 0.0 110 KB

Roll your own TopoJSON from Natural Earth data.

License: Other

JavaScript 100.00%

world-atlas's Introduction

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.

Generating TopoJSON

Once you have everything installed, simply run:

make

This will generate various TopoJSON files in the topo directory. As a by-product of producing these files, you’ll also download the shapefiles directly from Natural Earth and convert them into GeoJSON and filter.

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.

world-atlas's People

Contributors

ccbcreg avatar mbostock avatar sporkmonger avatar tanner avatar

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.