Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning D3.js Mapping
  • Toc
  • feedback
Learning D3.js Mapping

Learning D3.js Mapping

By : Newton, Oscar Villarreal
4.3 (7)
close
Learning D3.js Mapping

Learning D3.js Mapping

4.3 (7)
By: Newton, Oscar Villarreal

Overview of this book

If you are interested in creating maps for the web GIS data, this book is for you. Familiarity with D3.js will be helpful but is not necessary.
Table of Contents (9 chapters)
close
6
6. Finding and Working with Geographic Data
8
Index

Optimizing geographic data files with TopoJSON

The topojson is a command-line utility used to create files in the TopoJSON-serialized format. The TopoJSON format will be discussed in detail in Chapter 6, Finding and Working with Geographic Data. The topojson utility is also installed via npm.

Note

Note that we will use the syntax TopoJSON to refer to the JSON format and topojson to indicate the command-line utility.

We already have installed Node.JS and npm, so enter the following on the command line:

npm install -g topojson

Once the installation is complete, you should check the version of topojson installed on your machine just as we did with Node.js:

topojson –version

If you see Version 1.x, it means you have successfully installed topojson.

Tip

topojson uses node-gyp that has several dependencies based on the operating system. Please go to http://github.com/TooTallNate/node-gyp for details.

If you're using Windows, the basic steps are as follows:

  • Install Python 2.x (3.x not supported at the time of writing this book)
  • Install Microsoft Visual Studio C++ 2012 for Desktop (Express)
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete