Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g0v/twgeojson
geojson data for Taiwan
https://github.com/g0v/twgeojson
Last synced: about 2 months ago
JSON representation
geojson data for Taiwan
- Host: GitHub
- URL: https://github.com/g0v/twgeojson
- Owner: g0v
- Created: 2012-11-07T10:52:18.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2024-07-27T13:35:12.000Z (6 months ago)
- Last Synced: 2024-10-02T07:44:06.435Z (4 months ago)
- Language: LiveScript
- Size: 88.8 MB
- Stars: 196
- Watchers: 135
- Forks: 81
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-g0v - twgeojson - 台灣行政區視覺化 (Open Data Open Gov / 開放資料、開放政府 / 政府運作(區域劃分與統計、法人基本資料、採購資訊與委外營運服務明細、國防與外交))
README
twgeojson
============# Synopsis
```javascript
var county = require('twgeojson/twCounty1982');projection = d3.geo.mercator().scale(50000).translate([-16500, 3650]);
```# Demo
* http://g0v.github.com/twgeojson/
# 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* http://www.iot.gov.tw/ct.asp?xItem=154948&ctNode=1091
* https://github.com/d3/d3-plugins/tree/master/simplify# 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