npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

taiwan-atlas

v2021.9.20

Published

Pre-built TopoJSON from the Ministry of the Interior.

Downloads

96

Readme

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. This file also contains a compBorders object for optionally drawing the borders of the composed areas.

# 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. This file also contains a compBorders object for optionally drawing the borders of the composed areas.

# districts-10t.json · Download

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

# districts-mercator-10t.json · Download

A TopoJSON file containing the geometry collections districts specifying legislative districts, 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經緯度) and combined via the districts specified in this json file. The county boundaries are computed by merging districts and the nation boundaries by merging counties, ensuring a consistent topology. This file also contains a compBorders object for optionally drawing the borders of the composed areas.

# 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. This file also contains a compBorders object for optionally drawing the borders of the composed areas.

# 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經緯度). This file also contains a compBorders object for optionally drawing the borders of the composed areas.

# 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.districts

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

  • district.properties.DISTRICTCODE - The eight digit county code dash (-) the district number

# 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

The compBorders object has the following fields:

  • compBorders.properties.BORDERLEVEL - The administrative level that this border encompasses.
  • compBorders.properties.NAME - The name in Chinese of the administrative area that this border encompasses.
  • compBorders.properties.ID - The id of the administrative area that this border encompasses.
  • compBorders.properties.CODE - The name of the administrative area that this border encompasses.
  • compBorders.properties.ENG - The name in English of the administrative area that this border encompasses.

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.

mercatorTw.getCompositionBorders() returns a svg path string of the borders, given the current scale and translation.

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

import mercatorTw from 'taiwan-atlas';

License

MIT