{"id":7222,"date":"2021-05-05T16:49:30","date_gmt":"2021-05-05T07:49:30","guid":{"rendered":"https:\/\/gunmagisgeek.com\/blog\/?p=7222"},"modified":"2021-10-31T12:19:49","modified_gmt":"2021-10-31T03:19:49","slug":"geojson%e3%82%92%e3%83%90%e3%82%a4%e3%83%8a%e3%83%aa%e5%8c%96%e3%81%97%e3%81%a6%e5%9c%a7%e7%b8%ae%e3%81%99%e3%82%8bflatgeobuf","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/data\/7222","title":{"rendered":"GeoJSON\u3092\u30d0\u30a4\u30ca\u30ea\u5316\u3057\u3066\u5727\u7e2e\u3059\u308bFlatGeobuf"},"content":{"rendered":"\n<p>FlatGeobuf\u306f\u826f\u3044\u3001\u6357\u308b\u305e\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GeoJSON<\/h2>\n\n\n\n<p><a href=\"https:\/\/gis-oer.github.io\/gitbook\/book\/materials\/web_gis\/GeoJSON\/GeoJSON.html\" data-type=\"URL\" data-id=\"https:\/\/gis-oer.github.io\/gitbook\/book\/materials\/web_gis\/GeoJSON\/GeoJSON.html\">GeoJSON \u00b7 GIS\u5b9f\u7fd2\u30aa\u30fc\u30d7\u30f3\u6559\u6750<\/a><\/p>\n\n\n\n<p>\u3053\u306e\u6570\u5e74\u3067\u304b\u306a\u308a\u666e\u53ca\u306e\u9032\u3093\u3060GeoJSON\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u91cf\u304c\u5897\u3048\u308b\u3068\u3069\u3046\u3057\u3066\u3082\u91cd\u304f\u306a\u308a\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3082\u80a5\u5927\u5316\u3059\u308b\u305f\u3081\u6271\u3044\u306b\u304f\u304f\u306a\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067GeoJSON\u306e\u826f\u3055(\u53ef\u642c\u6027)\u3092\u6b8b\u3057\u3064\u3064\u3001\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba(\u30d0\u30a4\u30ca\u30ea\u5316)\u3059\u308b\u3053\u3068\u3067\u5de8\u5927\u306a\u30c7\u30fc\u30bf\u3082\u6271\u3044\u3084\u3059\u304f\u3057\u3088\u3046\u3068\u3044\u3046\u8a66\u307f\u304c\u884c\u308f\u308c\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Geobuf<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/mapbox\/geobuf#geobuf\" data-type=\"URL\" data-id=\"https:\/\/github.com\/mapbox\/geobuf#geobuf\">mapbox \/ geobuf<\/a><\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u304c\u5927\u304d\u304f\u306a\u308a\u304c\u3061\u306aGeoJSON\u3092<a href=\"https:\/\/developers.google.com\/protocol-buffers\/\">protocol buffers<\/a>\u3092\u4f7f\u3063\u3066\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3059\u308b\u3053\u3068\u3067\u5727\u7e2e\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3059\u3002GeoJSON\u306b\u6bd4\u3079\u3066\uff18\uff5e\uff16\u5206\u306e\uff11\u3050\u3089\u3044\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3092\u6291\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>GeoJSON\u3092Geobuf\u306b\u5909\u63db\u3059\u308b\u30c4\u30fc\u30eb\u3084\u3001\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u8aad\u307f\u8fbc\u3093\u3060Geobuf\u30d5\u30a1\u30a4\u30eb\u3092GeoJSON\u306b\u623b\u3059(\u30c7\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba)\u305f\u3081\u306eJavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u306a\u3069\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u6b8b\u5ff5\u306a\u3053\u3068\u306b\u3001\u3042\u307e\u308a\u666e\u53ca\u304c\u9032\u3093\u3067\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u300cGeoJSON\u3068\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u9023\u643a\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u3067\u30e2\u30c0\u30f3\u306aShapefile\u306e\u5f8c\u7d99\u3092\u8a2d\u8a08\u3059\u308b\u300d\u3068\u3044\u3046\u76ee\u6a19\u3092\u63b2\u3052\u3066\u306f\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u73fe\u6642\u70b9\u3067\u306fGeobuf\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308bGIS\u30c4\u30fc\u30eb\u3084\u30bd\u30d5\u30c8\u306f\u3042\u307e\u308a\u306a\u304f\u3001\u30c7\u30fc\u30bf\u3092\u7de8\u96c6\u3059\u308b\u306b\u306f\u6bce\u56deGeoJSON\u306b\u623b\u3057\u3066QGIS\u306a\u3069\u306e\u30bd\u30d5\u30c8\u306b\u8aad\u307f\u8fbc\u307f\u3001\u30c7\u30fc\u30bf\u3092\u7de8\u96c6\u5f8c\u3001\u518d\u5ea6geobuf\u306b\u5909\u63db\u3059\u308b\u3068\u3044\u3046\u4f5c\u696d\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FlatGeobuf<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/flatgeobuf\/flatgeobuf\" data-type=\"URL\" data-id=\"https:\/\/github.com\/flatgeobuf\/flatgeobuf\">flatgeobuf \/ flatgeobuf<\/a><\/p>\n\n\n\n<p>\u3044\u307e\u3044\u3061\u666e\u53ca\u306e\u9032\u307e\u306a\u304b\u3063\u305fGeobuf\u306b\u5909\u308f\u3063\u3066\u3001\u3053\u3053\u6700\u8fd1\u6ce8\u76ee\u5ea6\u304c\u4e0a\u304c\u3063\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304cFlatGeobuf\u3067\u3059\u3002<\/p>\n\n\n\n<p>Geobuf\u3068\u306e\u9055\u3044\u306f\u3001\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b<a href=\"http:\/\/google.github.io\/flatbuffers\/\">flatbuffers<\/a>\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3001\u5727\u7e2e\u7387\u3084\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\uff0f\u30c7\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u3055\u3089\u306b\u3001\u73fe\u6642\u70b9\u3067\u3059\u3067\u306b<a href=\"https:\/\/gdal.org\/\" data-type=\"URL\" data-id=\"https:\/\/gdal.org\/\">GDAL<\/a>\u3084<a href=\"https:\/\/qgis.org\/ja\/site\/forusers\/download.html\" data-type=\"URL\" data-id=\"https:\/\/qgis.org\/ja\/site\/forusers\/download.html\">QGIS<\/a>\u306a\u3069\u30dd\u30d4\u30e5\u30e9\u30fc\u306aGIS\u30c4\u30fc\u30eb\u3084\u30bd\u30d5\u30c8\u304cFlatGeobuf\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/flatgeobuf\/flatgeobuf#supported-applications--libraries\" data-type=\"URL\" data-id=\"https:\/\/github.com\/flatgeobuf\/flatgeobuf#supported-applications--libraries\">Supported applications \/ libraries<\/a><\/p>\n\n\n\n<p>\u3057\u305f\u304c\u3063\u3066\u3001FlatGeobuf\u30d5\u30a1\u30a4\u30eb\uff08.fgb\uff09\u306fQGIS\u306b\u76f4\u63a5\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u7de8\u96c6\u3057\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203b \u4e00\u90e8\u3001\u7de8\u96c6\u304c\u884c\u3048\u306a\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/qgis\/QGIS\/issues\/39574\" data-type=\"URL\" data-id=\"https:\/\/github.com\/qgis\/QGIS\/issues\/39574\">\u53c2\u7167\uff1aCannot edit FlatGeobuf backed layer<\/a><\/p>\n\n\n\n<p>[\u8ffd\u8a18] QGIS 3.20.3\u3067\u306f\u7de8\u96c6\u304c\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3044\u3061\u3044\u3061Geojson\u306b\u623b\u3057\u3066\u7de8\u96c6\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u306e\u3067\u624b\u8efd\u306b\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Web\u3067\u306e\u53d6\u308a\u6271\u3044\u304c\u697d(\u30b9\u30c8\u30ea\u30fc\u30e0\u306b\u3082\u5bfe\u5fdc)<\/h3>\n\n\n\n<p>\u516c\u5f0f\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b <a href=\"https:\/\/unpkg.com\/flatgeobuf\/dist\/flatgeobuf-geojson.min.js\">flatgeobuf-geojson.min.js<\/a> \u3092\u7528\u3044\u308b\u3068\u3001\u7c21\u5358\u306bflatGeoBuf\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u8aad\u307f\u8fbc\u3093\u3067GeoJSON\u306b\u30c7\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3057\u3066\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u6a19\u6e96\u3067\u30b9\u30c8\u30ea\u30fc\u30e0\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u306e\u3067\u5de8\u5927\u306a\u30c7\u30fc\u30bf\u3082\u975e\u5e38\u306b\u6271\u3044\u3084\u3059\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u30c7\u30fc\u30bf\u8aad\u307f\u8fbc\u307f\u306e\u30b5\u30f3\u30d7\u30eb<\/h4>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:js decode:true \">\/\/\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\nfunction handleHeaderMeta(headerMeta) {\n    console.log(\"metadata\", headerMeta)\n}\n\n\/\/ flatGeoBuf\u30c7\u30fc\u30bf\u306e\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\nfunction handleResponse(response) {\n    \/\/flatGeobuf\u3092geojson(\u30b9\u30c8\u30ea\u30fc\u30e0)\u306b\u30c7\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\n    let it = flatgeobuf.deserialize(response.body, undefined, handleHeaderMeta)\n    function handleResult(result) {\n        if (!result.done) {\n            console.log(result.value); \/\/features\u304c\u9806\u6b21\u3001\u8aad\u307f\u8fbc\u307e\u308c\u308b\n            it.next().then(handleResult)\n        }\n    }\n    it.next().then(handleResult)\n}\n\n\/\/ fetch API\u3092\u4f7f\u3063\u3066flatGeobuf\u3092\u8aad\u307f\u8fbc\u3080\nfetch('example.fgb')\n    .then(handleResponse)<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u300c<a href=\"https:\/\/gunmagisgeek.com\/blog\/javascript\/6054\" data-type=\"URL\" data-id=\"https:\/\/gunmagisgeek.com\/blog\/javascript\/6054\">Fetch API\u306eStream\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u306a\u304c\u3089\u5730\u56f3\u3092\u63cf\u753b\u3059\u308b<\/a>\u300d\u306e\u8a18\u4e8b\u3067\u66f8\u3044\u305f\u3088\u3046\u306a\u30c7\u30fc\u30bf\u306e\u9010\u6b21\u8aad\u307f\u8fbc\u307f\u304c\u7c21\u5358\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GeoJSON-&gt;FlatGeobuf \u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u6bd4\u8f03<\/h2>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001\u56fd\u571f\u6570\u5024\u60c5\u5831\u304b\u3089\u6700\u65b0\u306e\u300c<a href=\"https:\/\/nlftp.mlit.go.jp\/ksj\/gml\/datalist\/KsjTmplt-N03-v2_4.html#prefecture00\" data-type=\"URL\" data-id=\"https:\/\/nlftp.mlit.go.jp\/ksj\/gml\/datalist\/KsjTmplt-N03-v2_4.html#prefecture00\">\u5168\u56fd\u884c\u653f\u533a\u5883\u754c\u30c7\u30fc\u30bf<\/a>\u300d\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057QGIS\u3092\u4f7f\u3063\u3066FlatGeobuf\u306b\u5909\u63db\u3057\u3066\u3044\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>GeoJSON<\/td><td>1.17GB<\/td><\/tr><tr><td>FlatGeobuf<\/td><td>244MB<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u304b\u306a\u308a\u5727\u7e2e\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001GIS\u30bd\u30d5\u30c8\u3067\u306e\u30c7\u30fc\u30bf\u8aad\u307f\u8fbc\u307f\u306b\u304b\u304b\u308b\u6642\u9593\u3082FlatGeobuf\u306b\u3059\u308b\u3053\u3068\u3067\u6539\u5584\u3055\u308c\u308b\u306e\u3067\u3001\u305c\u3072\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FlatGeobuf\u306f\u826f\u3044\u3001\u6357\u308b\u305e\u3002 GeoJSO&hellip;<\/p>\n","protected":false},"author":1,"featured_media":7228,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63],"tags":[],"class_list":["post-7222","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/7222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/comments?post=7222"}],"version-history":[{"count":26,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/7222\/revisions"}],"predecessor-version":[{"id":7509,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/7222\/revisions\/7509"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/7228"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=7222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=7222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=7222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}