g0v / twgeojson Goto Github PK
View Code? Open in Web Editor NEWgeojson data for Taiwan
geojson data for Taiwan
無雨時現在很藍很刺眼 是否改成白色?
我是參考 http://blog.safaribooksonline.com/2014/02/11/d3-js-maps/ 這篇文章進行地圖的繪製
但是繪製出來的時候會無法正確顯示(http://ghost.cs.nccu.edu.tw/~s10033/newmap/error.html)
搜尋了 D3 的 issue 之後找到了可能的原因
根據 d3/d3#1315 的說法
D3 在跨到新版的時候進行了一些判定的重新設計,可是實在看不太懂是什麼意思
只好做了一些測試,發現如果把台東縣、宜蘭縣、台中市、連江縣、澎湖縣、新北市刪除後就會比較正常(http://ghost.cs.nccu.edu.tw/~s10033/newmap/geojson.html)
所以應該是這些縣市的點有因為 D3 的更新導致無法繪製出來
不知道能有辦法修復這個問題?
在雨量處理上常用的內插方法是 Barnes Objective Analysis
影響半徑多設為10km。
canvas 更新時,可以畫好後,讓舊的 opacity 從 100 變成 0, 新的從 0 變成 100, 達到 transition 效果
好像沒有澎湖金門馬祖?
轉貼朋友建議:增加 social sharing button。
在 http://data.gov.tw/node/7440 拿到的最新版本是 102.05.21 ,踹了一下相關指令:
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
mapshaper -p 0.01 new.shp -f topojson --encoding utf8 -o 102_05_21.json
目前測試有幾個問題:
但基本上產出的檔案已經可以用來操作,所以就在這邊打住,看看有沒有人要接手
看起來只有 25 個縣市,沒有裡面的鄉鎮?
In some cases, the SVG data can't fit toShapes(), like moveTo, lineTo, lineTo, moveTo, lineTo ......
The result will be segmented by modeTo, instead of full area.
One can draw New Taipei area only in 3dmap2 to show this issue.
第一次接觸這個,想照著README做
一開始想說在專案目錄下 npm install ,結果發現package.json它被丟在json資料夾下
後來想執行 make ,結果發現 MakeFile 執行 node_module 的設定不對
https://github.com/g0v/twgeojson/blob/gh-pages/stations.json
這邊 @clkao 說可能要用觀測站 ID,不過觀測站有些沒有 ID。
也許可以手動加規則處理 script,變成 "台南東河" 和 "台東東河",這樣前端程式就不用改了 XD
請問邊界比如有重疊了,有簍空變成三不管地帶的。這個有解嗎?
要畫一個 Legend Bar 顯示「顏色」與「高度」的對應關係。
P.S. 我也不知道資料來源是從哪來的,只知道有個 Firebase 可以接就拿來玩玩看了 😆
為各項空汙指標(英文縮寫)加入簡要中文翻譯或延伸說明連結,讓使用者了解指標涵義。
參考連結:
PSI 空氣汙染指標 wiki http://bit.ly/1hpiOmR
環保署對 PSI 的定義及健康影響說明 http://taqm.epa.gov.tw/taqm/zh-tw/b0201.aspx
註:本 issue 來自 facebook 使用者路盛智對 http://g0v.github.io/twgeojson/air.html
的建議 http://on.fb.me/1hphYqn
Comments:
for example: 底圖為今日累積,疊上十分鐘雨量(顏色變化 scale 不同),然後用閃爍的方式 (控制 opacity)凸顯最近十分鐘降雨區
As suggested by 陳郁玲, perhaps we can have a URL pointing to a PNG files of the current view (as an image)?
Increasing timeout and passing current state as parameters to http://i.jimmyhub.net/shot/http://g0v.github.io/twgeojson/air.html may be one way to do this.
在 shp 裡的資訊,layer name 本來是 twCounty2010.geo
,轉出來的 topo.json 變成 layer1
。
If this project does not belong to http://g0v.tw/ or is not applicable,
you can ignore and close this bug.
Otherwise please add g0v.json to your project.
See https://g0v.hackpad.com/g0v.json-spec-c07sSfauWSc for detail.
You can see the progress of adding g0v.json here: g0v/hack.g0v.tw#35
轉貼朋友建議:換上 EVA 字型(推薦大字可以用超明體,像是王漢宗超明體),也把 PSI/etc. 按鈕做成福音戰士風格。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.