日付 | 曜日 | 歩数 |
---|---|---|
2015.08.23 | 日 | 8756 |
2015.08.24 | 月 | 5004 |
2015.08.25 | 火 | 6703 |
2015.08.26 | 水 | 5003 |
2015.08.27 | 木 | 5826 |
2015.08.28 | 金 | 5179 |
2015.08.29 | 土 | 10906 |
合計 |
---|
47377 |
日付 | 曜日 | 歩数 |
---|---|---|
2015.08.23 | 日 | 8756 |
2015.08.24 | 月 | 5004 |
2015.08.25 | 火 | 6703 |
2015.08.26 | 水 | 5003 |
2015.08.27 | 木 | 5826 |
2015.08.28 | 金 | 5179 |
2015.08.29 | 土 | 10906 |
合計 |
---|
47377 |
日付 | 曜日 | 歩数 |
---|---|---|
2015.08.16 | 日 | 8652 |
2015.08.17 | 月 | 6210 |
2015.08.18 | 火 | 4292 |
2015.08.19 | 水 | 4699 |
2015.08.20 | 木 | 7902 |
2015.08.21 | 金 | 6391 |
2015.08.22 | 土 | 6980 |
合計 |
---|
45126 |
GitHubで、リポジトリを作成するには下記方法でおこないます。
リポジトリとは、Gitでファイルやディレクトリの状態を記録する場所です。
Web上のGitHubを開く → 「+」 → 「New repository」
リポジトリの作成ページに移動するので、
リポジトリ名・概要の入力 → 「Create repository」
GitHub上にリポジトリが作成されます。
次にローカル環境にリポジトリをクローンします。
GitHub Desktopを開く → 「+」 → 「Clone」 → 「リポジトリ名」 → 「Clone リポジトリ名」
保存先フォルダを指定 → 「OK」
これで、ホスト先とローカルに同一のリポジトリが作成されます。
日付 | 曜日 | 歩数 |
---|---|---|
2015.08.09 | 日 | 4014 |
2015.08.10 | 月 | 4494 |
2015.08.11 | 火 | 5536 |
2015.08.12 | 水 | 4571 |
2015.08.13 | 木 | 6435 |
2015.08.14 | 金 | 9561 |
2015.08.15 | 土 | 11346 |
合計 |
---|
45957 |
日付 | 曜日 | 歩数 |
---|---|---|
2015.08.02 | 日 | 9824 |
2015.08.03 | 月 | 6576 |
2015.08.04 | 火 | 4444 |
2015.08.05 | 水 | 13884 |
2015.08.06 | 木 | 6626 |
2015.08.07 | 金 | 6360 |
2015.08.08 | 土 | 7248 |
合計 |
---|
54962 |
コンパクトな充電器がほしくて「cheero Canvas」を購入しました。
非常にシンプルでコンパクト。ちょっとした持ち運びにも便利です。今だとAmazonで60%OFFで買えます。おすすめです。
LeafletでGeoJSONの属性を複数表示するためには下記のように記述します。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<html lang="ja"> <head> <meta charset="UTF-8"> <title>Leaflet Sample</title> <script src="./Library/leaflet-0.7.3/leaflet.js"></script> <link href="./Library/leaflet-0.7.3/leaflet.css" rel="stylesheet"/> <script src="./Library/jquery-2.1.4/jquery-2.1.4.min.js"></script> <script src="http://maps.google.com/maps/api/js?sensor=false&region=JP"></script> <script src="./plugin/leaflet-plugins-master/layer/tile/Google.js"></script> <link href="./css/stylesheet.css" rel="stylesheet"/> </head> <body> <div id="map"></div> <script src="./js/script.js"></script> </body> </html> |
1 2 3 4 5 6 7 8 9 10 |
html, body { height: 100%; padding: 0; margin: 0; } #map { z-index: 0; height: 100%; } |
1 2 3 4 5 6 7 8 9 10 |
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "FID": 0.000000, "aaa": 1, "bbb": "サンプル01", "ccc": "晴" }, "geometry": { "type": "Point", "coordinates": [ 139.76712226867676, 35.681073705610572 ] } }, { "type": "Feature", "properties": { "FID": 1.000000, "aaa": 2, "bbb": "サンプル02", "ccc": "曇" }, "geometry": { "type": "Point", "coordinates": [ 139.70030307769775, 35.690450256394989 ] } }, { "type": "Feature", "properties": { "FID": 2.000000, "aaa": 3, "bbb": "サンプル03", "ccc": "雨" }, "geometry": { "type": "Point", "coordinates": [ 139.75124359130859, 35.707283453190406 ] } } ] } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
var t_std = new L.tileLayer('http://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png', { attribution: "<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>国土地理院</a>" }); var t_pale = new L.tileLayer('http://cyberjapandata.gsi.go.jp/xyz/pale/{z}/{x}/{y}.png', { attribution: "<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>国土地理院</a>" }); var t_ort = new L.tileLayer('http://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg', { attribution: "<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>国土地理院</a>" }); var o_std = new L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' }); var g_roadmap = new L.Google('ROADMAP'); var g_satellite = new L.Google('SATELLITE'); var g_hybrid = new L.Google('HYBRID'); var map = L.map('map', { center: [35.6831925, 139.7511307], zoom: 13, zoomControl: false, layers: [o_std] }); var Map_BaseLayer = { "OpenStreetMap 標準": o_std, "地理院地図 標準": t_std, "地理院地図 淡色": t_pale, "地理院地図 オルソ": t_ort, "GoogleMap 標準": g_roadmap, "GoogleMap オルソ": g_satellite, "GoogleMap ハイブリッド": g_hybrid }; L.control.scale({ imperial: false, maxWidth: 300 }).addTo(map); L.control.layers(Map_BaseLayer, null, { collapsed: false }).addTo(map); $.getJSON("./vector/sample.geojson", function (data) { L.geoJson(data, { onEachFeature: function (feature, layer) { var field = '属性01 : ' + feature.properties.aaa + '<br>' + '属性02 : ' + feature.properties.bbb; layer.bindPopup(field); }}).addTo(map); }); |
index.htmlを実行すると下記のようにブラウザで表示されます。
属性を表示:
onEachFeature: function (feature, layer)~の後に処理を記述します。
1 2 3 4 5 |
onEachFeature: function (feature, layer) { var field = '属性01 : ' + feature.properties.aaa + '<br>' + '属性02 : ' + feature.properties.bbb; layer.bindPopup(field); }}).addTo(map); |
属性を表示追加:
1 2 3 |
var field = '属性01 : ' + feature.properties.aaa + '<br>' + '属性02 : ' + feature.properties.bbb + '<br>' + '属性03 : ' + feature.properties.ccc; |
LeafletでGeoJSONの属性表示するためには下記のように記述します。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<html lang="ja"> <head> <meta charset="UTF-8"> <title>Leaflet Sample</title> <script src="./Library/leaflet-0.7.3/leaflet.js"></script> <link href="./Library/leaflet-0.7.3/leaflet.css" rel="stylesheet"/> <script src="./Library/jquery-2.1.4/jquery-2.1.4.min.js"></script> <script src="http://maps.google.com/maps/api/js?sensor=false&region=JP"></script> <script src="./plugin/leaflet-plugins-master/layer/tile/Google.js"></script> <link href="./css/stylesheet.css" rel="stylesheet"/> </head> <body> <div id="map"></div> <script src="./js/script.js"></script> </body> </html> |
1 2 3 4 5 6 7 8 9 10 |
html, body { height: 100%; padding: 0; margin: 0; } #map { z-index: 0; height: 100%; } |
1 2 3 4 5 6 7 8 9 10 |
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "FID": 0.000000, "aaa": 1, "bbb": "サンプル01", "ccc": "晴" }, "geometry": { "type": "Point", "coordinates": [ 139.76712226867676, 35.681073705610572 ] } }, { "type": "Feature", "properties": { "FID": 1.000000, "aaa": 2, "bbb": "サンプル02", "ccc": "曇" }, "geometry": { "type": "Point", "coordinates": [ 139.70030307769775, 35.690450256394989 ] } }, { "type": "Feature", "properties": { "FID": 2.000000, "aaa": 3, "bbb": "サンプル03", "ccc": "雨" }, "geometry": { "type": "Point", "coordinates": [ 139.75124359130859, 35.707283453190406 ] } } ] } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
var t_std = new L.tileLayer('http://cyberjapandata.gsi.go.jp/xyz/std/{z}/{x}/{y}.png', { attribution: "<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>国土地理院</a>" }); var t_pale = new L.tileLayer('http://cyberjapandata.gsi.go.jp/xyz/pale/{z}/{x}/{y}.png', { attribution: "<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>国土地理院</a>" }); var t_ort = new L.tileLayer('http://cyberjapandata.gsi.go.jp/xyz/ort/{z}/{x}/{y}.jpg', { attribution: "<a href='http://www.gsi.go.jp/kikakuchousei/kikakuchousei40182.html' target='_blank'>国土地理院</a>" }); var o_std = new L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' }); var g_roadmap = new L.Google('ROADMAP'); var g_satellite = new L.Google('SATELLITE'); var g_hybrid = new L.Google('HYBRID'); var map = L.map('map', { center: [35.6831925, 139.7511307], zoom: 13, zoomControl: false, layers: [o_std] }); var Map_BaseLayer = { "OpenStreetMap 標準": o_std, "地理院地図 標準": t_std, "地理院地図 淡色": t_pale, "地理院地図 オルソ": t_ort, "GoogleMap 標準": g_roadmap, "GoogleMap オルソ": g_satellite, "GoogleMap ハイブリッド": g_hybrid }; L.control.scale({ imperial: false, maxWidth: 300 }).addTo(map); L.control.layers(Map_BaseLayer, null, { collapsed: false }).addTo(map); $.getJSON("./vector/sample.geojson", function (data) { L.geoJson(data, { onEachFeature: function (feature, layer) { layer.bindPopup(feature.properties.bbb); }}).addTo(map); }); |
index.htmlを実行すると下記のようにブラウザで表示されます。
属性を表示:
onEachFeature: function (feature, layer)~の後に処理を記述します。
1 2 3 |
onEachFeature: function (feature, layer) { layer.bindPopup(feature.properties.bbb); }}).addTo(map); |
属性を表示変更:
1 |
layer.bindPopup(feature.properties.aaa); |
QGISで、レイヤの種類を取得するスクリプトは下記のように記述します。
1 2 |
layer = iface.activeLayer() layer.type() |
実行すると選択されたレイヤの種類がコンソールに表示されます。
レイヤの種類を取得する場合:
1 |
layer.type() |
0 = VectorLayer
1 = RasterLayer
2 = PluginLayer
QGISで、レイヤの指定地物を選択するスクリプトは下記のように記述します。
1 2 |
layer = iface.activeLayer() layer.setSelectedFeatures([0]) |
実行すると地物IDが1番目の地物が選択されます。
2番目の地物を選択の場合:
1 |
layer.setSelectedFeatures([1]) |
日付 | 曜日 | 歩数 |
---|---|---|
2015.07.26 | 日 | 11238 |
2015.07.27 | 月 | 13124 |
2015.07.28 | 火 | 5648 |
2015.07.29 | 水 | 5480 |
2015.07.30 | 木 | 4748 |
2015.07.31 | 金 | 4273 |
2015.08.01 | 土 | 7670 |
合計 |
---|
52181 |
QGISで、 レイヤの地物を全て選択するスクリプトは下記のように記述します。
1 2 |
layer = iface.activeLayer() layer.selectAll() |
実行すると選択されているレイヤの地物が全て選択されます。
地物を全て選択の場合:
1 |
layer.selectAll() |