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

縣市界有洞的問題 #28

Closed
u8621011 opened this issue Feb 25, 2014 · 4 comments
Closed

縣市界有洞的問題 #28

u8621011 opened this issue Feb 25, 2014 · 4 comments

Comments

@u8621011
Copy link

我突然發現。使用ShapeViewer看 TWN_COUNTY.shp 並沒有 D3+Leaflet 那個縣市界有洞的問題耶。

會不會那個洞其實是 Simplify 之後的失真,不是資料面的Bug?

image

@clkao
Copy link
Member

clkao commented Feb 25, 2014

不,是因為原始資料的邊界沒有共用,所以就被分別 simplify 了

@chilijung
Copy link

@clkao 我也覺得 topojson 是不是有問題耶...

我用 twVote1982.topo.json 跑 d3 的 topojson.feature (topojson 面積)
example:
http://bl.ocks.org/chilijung/10906524

會變成一片漆黑(應該是有破洞)

用別的 topojson 可以跑
http://bl.ocks.org/chilijung/10902724

之前我用 leaflet 做的圖
https://github.com/chilijung/TWmap/blob/master/town.js

可以成功(因為是用線來畫),是不是有破洞?還是我那裡搞錯...

@chilijung
Copy link

我覺得應該不是 simplify 的問題,是否是原始資料問題?

@yhsiang
Copy link
Member

yhsiang commented Apr 16, 2014

twCounty2010.topo.json 是可以畫的, 不過縣市邊界有洞

@clkao clkao closed this as completed Apr 19, 2014
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

4 participants