Socket
Socket
Sign inDemoInstall

taiwan-atlas

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

taiwan-atlas

現成 TopoJSON 來自於中華民國內政部


Version published
Weekly downloads
21
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

Taiwan Atlas TopoJSON

Similar to the topojson/us-atlas project, this repository provides a topojson redistribution of the shapefiles provided by Taiwan's Ministry of the Interior. See the demo for usage example.

All of these files are provided at a scale of 1:10 thousand.

File Reference

# villages-10t.json · Download

A TopoJSON file containing the geometry collections villages, towns, counties, and nation. The geometry is quantized and simplified, but not projected. This topology is derived from the Ministry of the Interior’s 村里界圖(TWD97經緯度). The town boundaries are computed by merging villages, the county boundaries by merging towns, and the nation boundary is computed by merging counties, ensuring a consistent topology.

# villages-mercator-10t.json · Download

A TopoJSON file containing the geometry collections villages, towns, counties, and nation. The geometry is quantized, simplified, and projected with the mercatorTw projection. This topology is derived from the Ministry of the Interior’s 村里界圖(TWD97經緯度). The town boundaries are computed by merging villages, the county boundaries by merging towns, and the nation boundary is computed by merging counties, ensuring a consistent topology.

# towns-10t.json · Download

A TopoJSON file containing the geometry collections towns, counties, and nation. The geometry is quantized and simplified, but not projected. This topology is derived from the Ministry of the Interior’s 鄉鎮市區界線(TWD97經緯度). The county boundaries are computed by merging towns and the nation boundaries by merging counties, ensuring a consistent topology.

# towns-mercator-10t.json · Download

A TopoJSON file containing the geometry collections towns, counties, and nation. The geometry is quantized, simplified, and projected with the mercatorTw projection. This topology is derived from the Ministry of the Interior’s 鄉鎮市區界線(TWD97經緯度). The county boundaries are computed by merging towns and the nation boundaries by merging counties, ensuring a consistent topology.

# counties-10t.json · Download

A TopoJSON file containing the geometry collections counties, and nation. The geometry is quantized and simplified, but not projected. This topology is derived from the Ministry of the Interior’s 直轄市、縣市界線(TWD97經緯度). The nation boundaries are computed by merging counties, ensuring a consistent topology.

# counties-mercator-10t.json · Download

A TopoJSON file containing the geometry collections counties and nation. The geometry is quantized, simplified, and projected with the mercatorTw projection. This topology is derived from the Ministry of the Interior’s 直轄市、縣市界線(TWD97經緯度). The nation boundaries are computed by merging counties, ensuring a consistent topology.

# nation-10t.json · Download

A TopoJSON file containing the geometry collections nation. The geometry is quantized and simplified, but not projected. This topology is derived from the Ministry of the Interior’s 直轄市、縣市界線(TWD97經緯度).

# nation-mercator-10t.json · Download

A TopoJSON file containing the geometry collections nation. The geometry is quantized, simplified, and projected with the mercatorTw projection. This topology is derived from the Ministry of the Interior’s 直轄市、縣市界線(TWD97經緯度).

# tw.objects.nation

The nation object has two fields:

  • nation.properties.ID - "TW"
  • nation.properties.NAME - "Taiwan"

# tw.objects.counties

The county object has the following fields:

  • county.properties.COUNTYNAME - The name of the county in Chinese
  • county.properties.COUNTYENG - The name of the county in English
  • county.properties.COUNTYID - The character specifying id
  • county.properties.COUNTYCODE - The five digit county code

# tw.objects.towns

The town object has the following fields in addition to the county fields:

  • town.properties.TOWNNAME - The name of the county in Chinese
  • town.properties.TOWNENG - The name of the county in English
  • town.properties.TOWNID - The character specifying id
  • town.properties.TOWNCODE - The eight digit county code

# tw.objects.villages

The village object has the following fields in addition to the town and county fields:

  • village.properties.VILLNAME - The name of the village in Chinese
  • village.properties.VILLENG - The name of the village in English
  • village.properties.VILLID - The village specifying id
  • village.properties.VILLCODE - The 11 digit county code

MercatorTw Projection

mercatorTw.js uses a Taiwan-centric composite projection of four d3.geoMercator projections: One for the main island, and one for each of Penghu, Kinmen, Lienchiang, and Wuqiu respectively.

This package exports the mercatorTw projection and can be used in your own projects.

import mercatorTw from 'taiwan-atlas';

License

MIT

Keywords

FAQs

Package last updated on 10 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc