Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

geojson data for Taiwan

NotificationsYou must be signed in to change notification settings

g0v/twgeojson

Repository files navigation

Synopsis

varcounty=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 rulesgenerating 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.jsonmake twVillage1982.topo.jsonmake twTown1982.topo.jsonmake 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 copyrightand related or neighboring rights to twgeojson.

This work is published from Taiwan.

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


[8]ページ先頭

©2009-2025 Movatter.jp