ラベル google の投稿を表示しています。 すべての投稿を表示
ラベル google の投稿を表示しています。 すべての投稿を表示

2013年11月13日水曜日

WebGL Globeを利用した可視化実験

WebGL Globeはgoogleが作ったオープンソースの地理情報可視化プラットフォーム

本気で頑張るとこんなものも作れるらしい

とりあえず練習がてら、USGSのGeoJSONを可視化してみる。

ベースはwebgl globeのindex.html。
if(!Detector.webgl){Detector.addGetWebGLMessage();} else {var container = document.getElementById('container');var globe = DAT.Globe(document.getElementById(‘container'), function(label) {return new THREE.Color([0x87e7b0,0x87e7b0,0x87e7b0,0x87e7b0,0xcbf299,0xfcd1d1,0xff2800,0x9a0079][label]);});var script = document.createElement('script');
script.src = 'http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojsonp';document.getElementsByTagName('head')[0].appendChild(script);var eqfeed_callback = function(results){        var data = new Array();for (var i = 0; i < results.features.length; i++) {data.push(results.features[i].geometry['coordinates'][0]);data.push(results.features[i].geometry['coordinates'][1]);data.push(results.features[i].properties['mag']/30.0);data.push(Math.floor(results.features[i].properties['mag']));}globe.addData(data, {format: 'legend', name: 'earthquakes', animated: false});
globe.createPoints();globe.animate();document.body.style.backgroundImage = 'none'; // remove loading };}
こんな感じ。


いろいろと試してみよう!

2011年11月11日金曜日

GmailのPOP機能メモ

GmailのPOP機能では,メッセージをダウンロードできるのは1クライアントだけ.

POP機能を使って,複数クライアントでメッセージを共有することは基本できない.

https://mail.google.com/support/bin/answer.py?hl=ja&answer=13289&topic=1668962

ただし,Gmailの最新モードを使うとそれが可能になる.

最新モードだと,過去30日間のメッセージを複数のクライアントから,ダウンロードできるようになる.

最新モードで使うには,POPログインユーザ名を「username@gmail.com」を「recent:username@gmail.com」とするだけ.

https://mail.google.com/support/bin/answer.py?hl=ja&answer=47948&topic=1668962

 

IMAPの方がいいと思うけど,どうしてもPOPを使いたい人は知っておくと便利かも知れない.

 

 

Google Docs SpreadSheetグラフ機能のテスト

今更だけど,東京電力のでんき予報をSpreadSheetでグラフ化してみる.

データの取り込みはimportdataを使用する.

=importdata("http://www.tepco.co.jp/forecast/html/images/juyo-j.csv")

interactive chartで公開したかったけどエラーが発生.

しかたなくimageで公開してみる.

共有設定はAnyone with the linkで十分みたい.



更新タイミングが不明だけど,ちゃんと更新されている.

いい感じ.