{"id":7616,"date":"2021-12-10T08:20:52","date_gmt":"2021-12-09T23:20:52","guid":{"rendered":"https:\/\/gunmagisgeek.com\/blog\/?p=7616"},"modified":"2021-12-10T08:24:53","modified_gmt":"2021-12-09T23:24:53","slug":"deck-gl%e3%81%a7kml%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e8%aa%ad%e3%81%bf%e8%be%bc%e3%82%93%e3%81%a7%e5%8f%af%e8%a6%96%e5%8c%96%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/deck-gl\/7616","title":{"rendered":"deck.gl\u3067KML\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u53ef\u8996\u5316\u3059\u308b"},"content":{"rendered":"\n<p>\u3053\u306e\u8a18\u4e8b\u306f<a href=\"https:\/\/qiita.com\/advent-calendar\/2021\/deckgl\">deck.gl Advent Calendar 2021&nbsp;<\/a>\u53c2\u52a0\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6982\u8981<\/h2>\n\n\n\n<p>\u300c<a href=\"https:\/\/www.google.co.jp\/intl\/ja\/maps\/about\/mymaps\/\" data-type=\"URL\" data-id=\"https:\/\/www.google.co.jp\/intl\/ja\/maps\/about\/mymaps\/\">\u30de\u30a4\u30de\u30c3\u30d7<\/a>\u300d\u306a\u3069Google\u7cfb\u306e\u5730\u56f3\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u30c7\u30fc\u30bf\u3092KML\u5f62\u5f0f\u3067\u3057\u304b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3067\u304d\u306a\u3044\u30b1\u30fc\u30b9\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3002\u5834\u5408\u306b\u3088\u3063\u3066\u306fKML\u3092\u76f4\u63a5\u8aad\u307f\u8fbc\u307e\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u6642\u3082\u3042\u308b\u306e\u3067\u3001\u305d\u306e\u3084\u308a\u65b9\u3092\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n\n\n\n<iframe src=\"https:\/\/codesandbox.io\/embed\/deck-gl-kmlhuairuwodu-miip-mu-se4zn?fontsize=14&amp;hidenavigation=1&amp;theme=dark&amp;view=split\" style=\"width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;\" title=\"deck.gl - KML\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\" allow=\"accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking\" sandbox=\"allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts\"><\/iframe>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u8aac<\/h2>\n\n\n\n<p><a href=\"https:\/\/loaders.gl\/\" data-type=\"URL\" data-id=\"https:\/\/loaders.gl\/\">loaders.gl<\/a>\u3092\u4f7f\u3046\u3068\u69d8\u3005\u306a\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u3001<a href=\"https:\/\/loaders.gl\/modules\/kml\/docs\/api-reference\/kml-loader\" data-type=\"URL\" data-id=\"https:\/\/loaders.gl\/modules\/kml\/docs\/api-reference\/kml-loader\">KMLLoader<\/a>\u3092\u4f7f\u7528\u3057\u3066KML\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>deck.gl\u3068\u306f\u5225\u306bloaders.gl\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:sh decode:true \" title=\"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\">&gt; npm install @loaders.gl\/core\n&gt; npm install @loaders.gl\/kml<\/pre><\/div>\n\n\n\n<p>loadres.gl\u306e\u4f7f\u3044\u65b9\u306f\u4ee5\u4e0b\u3002<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:js decode:true \">\/\/loaders.gl\u306e\u8aad\u307f\u8fbc\u307f\nimport { KMLLoader } from \"@loaders.gl\/kml\";\nimport { load } from \"@loaders.gl\/core\";\n\nconst App = () =&gt; {\n  const [data, setData] = useState();\n\n  useEffect(() =&gt; {\n    const dataload = async () =&gt; {\n      \/\/KML\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\n      const res = await load(\".\/data\/takasaki_takeout.kml\", KMLLoader);\n      \/\/KML\u30ed\u30fc\u30c0\u30fc\u3067\u8aad\u307f\u8fbc\u3093\u3060\u30c7\u30fc\u30bf\u306fGeoJSON\u5f62\u5f0f\u306b\u5909\u63db\u3055\u308c\u3066\u3044\u308b\n      console.log(res);\n      \/\/\u8aad\u307f\u8fbc\u3093\u3060\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\n      setData(res);\n    };\n    dataload();\n  }, []);\n\n};<\/pre><\/div>\n\n\n\n<p>loaders.gl\u306fKML\u4ee5\u5916\u306b\u3082\u69d8\u3005\u306a\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u306e\u3067\u3001deck.gl\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u306b\u8ff7\u3063\u305f\u3068\u304d\u306f<a href=\"https:\/\/loaders.gl\/search\" data-type=\"URL\" data-id=\"https:\/\/loaders.gl\/search\">\u3053\u3061\u3089<\/a>\u3067\u5bfe\u5fdc\u3057\u305f\u30ed\u30fc\u30c0\u30fc\u304c\u306a\u3044\u304b\u691c\u7d22\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u304a\u307e\u3051<\/h2>\n\n\n\n<p>\u4ee5\u524d\u3082\u300c<a href=\"https:\/\/gunmagisgeek.com\/blog\/node-js\/4291\" data-type=\"URL\" data-id=\"https:\/\/gunmagisgeek.com\/blog\/node-js\/4291\">KML\u304c\u306a\u305c\u6700\u60aa\u306a\u306e\u304b<\/a>\u300d\u3092\u8aac\u660e\u3057\u305f\u8a18\u4e8b\u3092\u4e0a\u3052\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001Google\u306e\u5730\u56f3\u7cfb\u30b5\u30fc\u30d3\u30b9\u304c\u5410\u304d\u51fa\u3059KML\u306fdescription\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u5c5e\u6027\u5024\u3092HTML\u30c6\u30ad\u30b9\u30c8\u3068\u3057\u3066\u683c\u7d0d\u3059\u308b\u3068\u3044\u3046\u60aa\u884c(\u4ed5\u69d8)\u3092\u3044\u307e\u3060\u306b\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>loaders.gl\u306f\u3001\u8aad\u307f\u8fbc\u3093\u3060KML\u3092GeoJSON\u306b\u5909\u63db\u3057\u3066\u304f\u308c\u307e\u3059\u304c\u3001 description \u306e\u4e2d\u8eab\u307e\u3067\u306f\u6d41\u77f3\u306b\u30d1\u30fc\u30b9\u3057\u3066\u306f\u304f\u308c\u307e\u305b\u3093\u3002\uff08\u4e0b\u8a18\u753b\u50cf\u306f\u30de\u30a4\u30de\u30c3\u30d7\u304b\u3089\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u305fKML\u3092\u8aad\u307f\u8fbc\u3093\u3060\u30c7\u30e2\u3067\u3059\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"960\" src=\"https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2021\/11\/suck-kml.jpg\" alt=\"\" class=\"wp-image-7618\" srcset=\"https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2021\/11\/suck-kml.jpg 950w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2021\/11\/suck-kml-148x150.jpg 148w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2021\/11\/suck-kml-768x776.jpg 768w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/figure>\n\n\n\n<p>\u30de\u30b8\u6700\u60aa\u306a\u306e\u3067\u3001Google\u306f\u901f\u3084\u304b\u306bKML\u3092\u3084\u3081\u3066GeoJSON\u306a\u3069\u4ed6\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3078\u79fb\u884c\u3057\u3066\u3044\u305f\u3060\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001\u30a2\u30e1\u30ea\u30ab\u56fd\u5bb6\u5b89\u5168\u4fdd\u969c\u5c40(NAS)\u3082\u3053\u306e\u554f\u984c\u306b\u982d\u3092\u60a9\u307e\u305b\u3066\u3044\u305f\u306e\u304b\u3001 KML\u3092\u8aad\u307f\u8fbc\u307f\u3064\u3064description \u306e\u4e2d\u8eab\u3092\u30d1\u30fc\u30b9\u3057\u3066\u5c5e\u6027\u5024\u3068\u3057\u3066\u5c55\u958b\u3057\u3066\u304f\u308c\u308bQGIS\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u516c\u958b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/NationalSecurityAgency\/qgis-kmltools-plugin\">NationalSecurityAgency\/qgis-kmltools-plugin: Fast KML Import and Export Plugin for QGIS<\/a><\/p>\n\n\n\n<p>\u3055\u3059\u304c\u3001\u4e16\u754c\u6700\u9ad8\u5cf0\u306e\u60c5\u5831\u6a5f\u95a2\u3000\u7d20\u6674\u3089\u3057\u3044\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p> KML\u306edescription \u306b\u60a9\u3093\u3067\u3044\u308b\u3072\u3068\u306f\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306fdeck.gl Advent Calen&hellip;<\/p>\n","protected":false},"author":1,"featured_media":7617,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"class_list":["post-7616","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-deck-gl","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/7616","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=7616"}],"version-history":[{"count":18,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/7616\/revisions"}],"predecessor-version":[{"id":7800,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/7616\/revisions\/7800"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/7617"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=7616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=7616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=7616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}