Giter VIP home page Giter VIP logo

twgeojson's Introduction

twgeojson

Synopsis

var county = require('twgeojson/twCounty1982');

projection = d3.geo.mercator().scale(50000).translate([-16500, 3650]);

Demo

Description

The package provides the geojson files for administrative divisions in Taiwan. The data has been simplified with d3.simplify and is suitable for geographical visualisation. The county level data file is about 64K in size.

For raw data or different levels of simplification, see Makefile for the rules generating them.

Installation

Use npm to install all required modules, including d3:

npm install

To build taiwan geographic json files you'll need the following:

  • unrar - install it with 'brew install unrar' or your favorite package manager.

then build json files with make:

make twVote1982.topo.json
make twVillage1982.topo.json
make twTown1982.topo.json
make twCounty2010.topo.json

Todo

  • Merge subsumed polygons in the 2010 city merge
  • Town level translation for the 2010 city merge
  • Provide zip code as layer properties for towns
  • fix vote/errant.json
  • fix XXX-1 to XXX-0

Note

  • we used d3-plugins/simplify to simplify the output json files, but d3-plugins/simplify is declared deprecated, replaced by TopoJSON and removed from github. Thus, we made some changes to adopt this issue. Please use TopoJSON format instead of GeoJSON in the future.

See Also

CC0 1.0 Universal

To the extent possible under law, Chia-liang Kao has waived all copyright and related or neighboring rights to twgeojson.

This work is published from Taiwan.

http://creativecommons.org/publicdomain/zero/1.0

twgeojson's People

Contributors

audreyt avatar clkao avatar jjjenq avatar kiang avatar ttcat avatar yllan avatar zbryikt avatar

Watchers

 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.