- Learning D3.js Mapping
- Thomas Newton Oscar Villarreal
- 174字
- 2021-08-06 19:42:43
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.
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)
推薦閱讀
- 電氣自動化專業(yè)英語(第3版)
- 腦動力:Linux指令速查效率手冊
- Hands-On Internet of Things with MQTT
- 人工智能超越人類
- 我的J2EE成功之路
- 反饋系統(tǒng):多學(xué)科視角(原書第2版)
- 大數(shù)據(jù)挑戰(zhàn)與NoSQL數(shù)據(jù)庫技術(shù)
- 自動化控制工程設(shè)計
- HTML5 Canvas Cookbook
- Spatial Analytics with ArcGIS
- PLC與變頻技術(shù)應(yīng)用
- 智能+:制造業(yè)的智能化轉(zhuǎn)型
- Practical AWS Networking
- Kubernetes on AWS
- 系統(tǒng)安裝、維護與數(shù)據(jù)備份技巧