Skip to content

YuakaTL/RegionsofTaiwan-GeoJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

臺灣各級行政區域 GeoJSON


如果需要自己重畫行政區域地圖的步驟:

  1. 安裝 mapshaper
apt-get install npm
npm install -g mapshaper
  1. 安裝 json 轉檔用套件 jq:
    jq 教學
apt-get install jq
  1. 將「政府資料開放平台-鄉鎮市區界線」的壓縮檔下載下來
    透過 ogr2ogr or 線上工具把檔案轉成 GeoJSON

  2. 最後使用 jq 篩選出各地區資料,並使用 mapshaper 簡化地圖資料,輸出 GeoJSON ,以新北市為例

jq '.features = (.features | map(select(.properties.COUNTYNAME=="新北市")))' TOWN_MOI_1100415.json | mapshaper - -simplify 10% -o - > Taiwan_New_Taipei_City.geo.json

資料來源:https://data.gov.tw/dataset/7441

參考資料:https://newtoypia.blogspot.com/2015/08/admin-boundary.html

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors