Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twVillage1982.topo.json 更新到 102.05.21 版本? #31

Open
kiang opened this issue May 6, 2014 · 3 comments
Open

twVillage1982.topo.json 更新到 102.05.21 版本? #31

kiang opened this issue May 6, 2014 · 3 comments

Comments

@kiang
Copy link
Contributor

kiang commented May 6, 2014

http://data.gov.tw/node/7440 拿到的最新版本是 102.05.21 ,踹了一下相關指令:

  • 把 shp 裡面的座標轉為 EPSG:4326
ogr2ogr -t_srs EPSG:4326 -s_srs EPSG:3826 -f "ESRI Shapefile" -lco ENCODING=UTF-8 new.shp 全國村里界圖102.05.21_修正屬性表ID_TWD97/102_05_21台澎金馬修正村里屬性資料_TWD97.shp
  • 把 shp 轉為 topojson
mapshaper -p 0.01 new.shp -f topojson --encoding utf8 -o 102_05_21.json

目前測試有幾個問題:

  • 連江縣的偏移還蠻嚴重的
  • 執行 ogr2ogr 會提示部份字元無法順利轉換
  • 看了一下產生的南投縣資料,好像少了兩塊,還不知道怎麼去把少的補上去

但基本上產出的檔案已經可以用來操作,所以就在這邊打住,看看有沒有人要接手

@clkao
Copy link
Member

clkao commented May 8, 2014

外島部分應該是 EPSG:3825

@kiang
Copy link
Contributor Author

kiang commented May 8, 2014

剛剛試著用 EPSG:3825 轉出然後以 google map 預覽,畫面的偏移更嚴重,只能猜測外島的資料有人工修正過吧

screenshot from 2014-05-08 14 04 54

@kiang
Copy link
Contributor Author

kiang commented May 8, 2014

EPSG:3826 畫出來的樣子

金門

jinmen

馬祖

matsu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants