Skip to content

Instantly share code, notes, and snippets.

@frogcat
Last active April 21, 2016 10:49
Show Gist options
  • Save frogcat/b267b3727268d5c35c8a516a8c52b467 to your computer and use it in GitHub Desktop.
Save frogcat/b267b3727268d5c35c8a516a8c52b467 to your computer and use it in GitHub Desktop.
2016熊本地震の国土地理院正射画像タイルの所在と各種比較UIへのリンクを収録したGeoJSON
Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"title": "宇城地区正射画像(4/15撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0415dol3&ovl=experimental_anno&lat=32.6379&lng=130.6586&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E5%AE%87%E5%9F%8E%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/15%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.6379/130.6586",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0415dol3,std#15/32.6379/130.6586",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0415dol3,ort#15/32.6379/130.6586",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0415dol3,relief#15/32.6379/130.6586"
},
"geometry": {
"type": "Point",
"coordinates": [
130.6586,
32.6379
]
}
},
{
"type": "Feature",
"properties": {
"title": "益城地区正射画像(4/15撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0415dol1&ovl=experimental_anno&lat=32.7905&lng=130.8121&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E7%9B%8A%E5%9F%8E%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/15%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.7905/130.8121",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0415dol1,std#15/32.7905/130.8121",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0415dol1,ort#15/32.7905/130.8121",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0415dol1,relief#15/32.7905/130.8121"
},
"geometry": {
"type": "Point",
"coordinates": [
130.8121,
32.7905
]
}
},
{
"type": "Feature",
"properties": {
"title": "熊本南地区正射画像(4/15撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0415dol2&ovl=experimental_anno&lat=32.7623&lng=130.6914&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E7%86%8A%E6%9C%AC%E5%8D%97%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/15%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.7623/130.6914",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0415dol2,std#15/32.7623/130.6914",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0415dol2,ort#15/32.7623/130.6914",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0415dol2,relief#15/32.7623/130.6914"
},
"geometry": {
"type": "Point",
"coordinates": [
130.6914,
32.7623
]
}
},
{
"type": "Feature",
"properties": {
"title": "宇土地区正射画像(4/16撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0416dol2&ovl=experimental_anno&lat=32.6893&lng=130.688&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E5%AE%87%E5%9C%9F%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/16%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.6893/130.688",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol2,std#15/32.6893/130.688",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol2,ort#15/32.6893/130.688",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol2,relief#15/32.6893/130.688"
},
"geometry": {
"type": "Point",
"coordinates": [
130.688,
32.6893
]
}
},
{
"type": "Feature",
"properties": {
"title": "別府地区正射画像(4/16撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0416dol7&ovl=experimental_anno&lat=33.3416&lng=131.4627&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E5%88%A5%E5%BA%9C%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/16%E6%92%AE%E5%BD%B1%EF%BC%89#15/33.3416/131.4627",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol7,std#15/33.3416/131.4627",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol7,ort#15/33.3416/131.4627",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol7,relief#15/33.3416/131.4627"
},
"geometry": {
"type": "Point",
"coordinates": [
131.4627,
33.3416
]
}
},
{
"type": "Feature",
"properties": {
"title": "阿蘇地区正射画像(4/16撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0416dol5&ovl=experimental_anno&lat=32.91508&lng=130.99399&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E9%98%BF%E8%98%87%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/16%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.91508/130.99399",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol5,std#15/32.91508/130.99399",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol5,ort#15/32.91508/130.99399",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol5,relief#15/32.91508/130.99399"
},
"geometry": {
"type": "Point",
"coordinates": [
130.99399,
32.91508
]
}
},
{
"type": "Feature",
"properties": {
"title": "合志地区正射画像(4/16撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0416dol3&ovl=experimental_anno&lat=32.884&lng=130.7511&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E5%90%88%E5%BF%97%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/16%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.884/130.7511",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol3,std#15/32.884/130.7511",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol3,ort#15/32.884/130.7511",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol3,relief#15/32.884/130.7511"
},
"geometry": {
"type": "Point",
"coordinates": [
130.7511,
32.884
]
}
},
{
"type": "Feature",
"properties": {
"title": "南阿蘇地区正射画像(4/16撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0416dol6&ovl=experimental_anno&lat=32.8251&lng=131.0581&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E5%8D%97%E9%98%BF%E8%98%87%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/16%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.8251/131.0581",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol6,std#15/32.8251/131.0581",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol6,ort#15/32.8251/131.0581",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol6,relief#15/32.8251/131.0581"
},
"geometry": {
"type": "Point",
"coordinates": [
131.0581,
32.8251
]
}
},
{
"type": "Feature",
"properties": {
"title": "西原地区正射画像(4/16撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0416dol4&ovl=experimental_anno&lat=32.8472&lng=130.9268&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E8%A5%BF%E5%8E%9F%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/16%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.8472/130.9268",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol4,std#15/32.8472/130.9268",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol4,ort#15/32.8472/130.9268",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol4,relief#15/32.8472/130.9268"
},
"geometry": {
"type": "Point",
"coordinates": [
130.9268,
32.8472
]
}
},
{
"type": "Feature",
"properties": {
"title": "熊本地区正射画像(4/16撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0416dol1&ovl=experimental_anno&lat=32.8055&lng=130.7072&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E7%86%8A%E6%9C%AC%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/16%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.8055/130.7072",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol1,std#15/32.8055/130.7072",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol1,ort#15/32.8055/130.7072",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0416dol1,relief#15/32.8055/130.7072"
},
"geometry": {
"type": "Point",
"coordinates": [
130.7072,
32.8055
]
}
},
{
"type": "Feature",
"properties": {
"title": "小国地区正射画像(4/19撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0419dol6&ovl=experimental_anno&lat=33.1038&lng=130.9892&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E5%B0%8F%E5%9B%BD%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/19%E6%92%AE%E5%BD%B1%EF%BC%89#15/33.1038/130.9892",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0419dol6,std#15/33.1038/130.9892",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0419dol6,ort#15/33.1038/130.9892",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0419dol6,relief#15/33.1038/130.9892"
},
"geometry": {
"type": "Point",
"coordinates": [
130.9892,
33.1038
]
}
},
{
"type": "Feature",
"properties": {
"title": "南阿蘇2地区正射画像(4/19撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0419dol2&ovl=experimental_anno&lat=32.8224&lng=131.0473&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E5%8D%97%E9%98%BF%E8%98%872%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/19%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.8224/131.0473",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0419dol2,std#15/32.8224/131.0473",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0419dol2,ort#15/32.8224/131.0473",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0419dol2,relief#15/32.8224/131.0473"
},
"geometry": {
"type": "Point",
"coordinates": [
131.0473,
32.8224
]
}
},
{
"type": "Feature",
"properties": {
"title": "西原2地区正射画像(4/20撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0420dol01&ovl=experimental_anno&lat=32.8455&lng=130.921&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E8%A5%BF%E5%8E%9F2%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/20%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.8455/130.921",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0420dol01,std#15/32.8455/130.921",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0420dol01,ort#15/32.8455/130.921",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0420dol01,relief#15/32.8455/130.921"
},
"geometry": {
"type": "Point",
"coordinates": [
130.921,
32.8455
]
}
},
{
"type": "Feature",
"properties": {
"title": "南阿蘇2地区正射画像(4/20撮影)",
"gsi": "http://maps.gsi.go.jp/cmp/?rl=ort&ll=20160414kumamoto_0420dol03&ovl=experimental_anno&lat=32.6713&lng=131.0054&z=15&rattr=%E9%9B%BB%E5%AD%90%E5%9B%BD%E5%9C%9F%E5%9F%BA%E6%9C%AC%E5%9B%B3%EF%BC%88%E3%82%AA%E3%83%AB%E3%82%BD%E7%94%BB%E5%83%8F%EF%BC%89&lattr=%E5%8D%97%E9%98%BF%E8%98%872%E5%9C%B0%E5%8C%BA%E6%AD%A3%E5%B0%84%E7%94%BB%E5%83%8F%EF%BC%884/20%E6%92%AE%E5%BD%B1%EF%BC%89#15/32.6713/131.0054",
"std": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0420dol03,std#15/32.6713/131.0054",
"ort": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0420dol03,ort#15/32.6713/131.0054",
"relief": "http://frogcat.github.io/leaflet-tilelayer-cmp/?20160414kumamoto_0420dol03,relief#15/32.6713/131.0054"
},
"geometry": {
"type": "Point",
"coordinates": [
131.0054,
32.6713
]
}
}
]
}
id longitude latitude
20160414kumamoto_0415dol3 130.6586 32.6379
20160414kumamoto_0415dol1 130.8121 32.7905
20160414kumamoto_0415dol2 130.6914 32.7623
20160414kumamoto_0416dol2 130.6880 32.6893
20160414kumamoto_0416dol7 131.4627 33.3416
20160414kumamoto_0416dol5 130.99399 32.91508
20160414kumamoto_0416dol3 130.7511 32.8840
20160414kumamoto_0416dol6 131.0581 32.8251
20160414kumamoto_0416dol4 130.9268 32.8472
20160414kumamoto_0416dol1 130.7072 32.8055
20160414kumamoto_0419dol6 130.9892 33.1038
20160414kumamoto_0419dol2 131.0473 32.8224
20160414kumamoto_0420dol01 130.9210 32.8455
20160414kumamoto_0420dol03 131.0054 32.6713
"use strict";
var fs = require("fs");
var axios = require("axios");
var promises = [];
fs.readFileSync("data.csv", "UTF-8").split("\n").forEach(function(row) {
if (row.indexOf(",") == -1 || row.match(/^id.*/))
return;
var col = row.replace("\r", "").split(",");
var obj = {
id: col[0],
longitude: parseFloat(col[1]),
latitude: parseFloat(col[2])
};
promises.push(new Promise(function(resolve, reject) {
axios.get("http://frogcat.github.io/layers/" + obj.id + ".txt").then(function(a) {
obj.label = a.data.layers[0].title;
resolve(obj);
});
}));
});
Promise.all(promises).then(function(a) {
var features = [];
a.forEach(function(obj) {
var gsi = "http://maps.gsi.go.jp/cmp/?";
gsi += [
"rl=ort",
"ll=" + obj.id,
"ovl=experimental_anno",
"lat=" + obj.latitude,
"lng=" + obj.longitude,
"z=15",
"rattr=" + encodeURI("電子国土基本図(オルソ画像)"),
"lattr=" + encodeURI(obj.label)
].join("&");
gsi += ("#15/" + obj.latitude + "/" + obj.longitude);
var tmpl = "http://frogcat.github.io/leaflet-tilelayer-cmp/?";
tmpl += (obj.id + ",@");
tmpl += ("#15/" + obj.latitude + "/" + obj.longitude);
features.push({
"type": "Feature",
"properties": {
"title": obj.label,
"gsi": gsi,
"std": tmpl.replace("@", "std"),
"ort": tmpl.replace("@", "ort"),
"relief": tmpl.replace("@", "relief")
},
"geometry": {
"type": "Point",
"coordinates": [obj.longitude, obj.latitude]
}
});
});
console.log(JSON.stringify({
"type": "FeatureCollection",
"features": features
}, null, " "));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment