{"id":2135,"date":"2012-12-19T10:19:09","date_gmt":"2012-12-19T01:19:09","guid":{"rendered":"https:\/\/gunmagisgeek.com\/wordpress\/?p=2135"},"modified":"2018-03-06T12:02:57","modified_gmt":"2018-03-06T03:02:57","slug":"post-2135","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/google-map-api\/2135","title":{"rendered":"Google Map\u4e0a\u306b\u5b66\u6821\u533a\u60c5\u5831\uff08\u56fd\u571f\u6570\u5024\u60c5\u5831\uff09\u3092\u8868\u793a\u3059\u308b"},"content":{"rendered":"<p><a href=\"http:\/\/nlftp.mlit.go.jp\/ksj\/\">\u56fd\u571f\u6570\u5024\u60c5\u5831<\/a>\u30b5\u30a4\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fJPGIS\u5f62\u5f0f\u306e\u60c5\u5831\u3092KML\u306b\u5909\u63db\u3057\u3066\u3001Google Map\u4e0a\u306b\u8868\u793a\u3059\u308b\u624b\u9806\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u4f7f\u7528\u3057\u305f\u306e\u306f\u4ee5\u4e0b\u3002<\/p>\n<p><a href=\"http:\/\/nlftp.mlit.go.jp\/ksj\/jpgis\/datalist\/KsjTmplt-A27.html\">\u56fd\u571f\u6570\u5024\u60c5\u5831\u3000\u5c0f\u5b66\u6821\u533a\u30c7\u30fc\u30bf<\/a><\/p>\n<p>\u5c0f\u5b66\u6821\u533a\u306e\u30c7\u30fc\u30bf\u3092Google Map\u4e0a\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/shimz.me\/example\/gmapv3\/KML\/index.html\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2012\/12\/WSd000006-300x124.jpg\" alt=\"WSd000006\" width=\"300\" height=\"124\" class=\"aligncenter size-medium wp-image-2142\" \/><\/a><\/p>\n<h2>\u624b\u9806<\/h2>\n<p>\uff11\uff0eJPGIS\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092SHAPE\u5f62\u5f0f\u306b\u5909\u63db\uff08\u521d\u3081\u304b\u3089SHAPE\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308b\u5834\u5408\u306f\u8981\u3089\u306a\u3044\uff09<br \/>\n\uff12\uff0eSHAPE\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092KML\u5f62\u5f0f\u306b\u5909\u63db<br \/>\n\uff13\uff0eKML\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u6574\u5f62<br \/>\n\uff14\uff0eGoogle Map\u4e0a\u306b\u8aad\u307f\u8fbc\u307f<\/p>\n<h2>\u25a0JPGIS\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092SHAPE\u5f62\u5f0f\u306b\u5909\u63db<\/h2>\n<p><a href=\"http:\/\/nlftp.mlit.go.jp\/ksj\/gml\/gml_datalist.html\">\u56fd\u571f\u6570\u5024\u60c5\u5831\u30c7\u30fc\u30bf\u5909\u63db\u30c4\u30fc\u30eb<\/a><br \/>\n\u30c7\u30fc\u30bf\u5909\u63db\u30c4\u30fc\u30eb\uff08KsjTool\uff09\u3092\u4f7f\u3063\u3066\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fXML\u30d5\u30a1\u30a4\u30eb\u3092SHAPE\u5f62\u5f0f\u306b\u5909\u63db\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2012\/12\/WSd000000-300x234.jpg\" alt=\"WSd000000\" width=\"300\" height=\"234\" class=\"aligncenter size-medium wp-image-2136\" \/><\/p>\n<h2>\u25a0SHAPE\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092KML\u5f62\u5f0f\u306b\u5909\u63db<\/h2>\n<p><a href=\"https:\/\/www.qgis.org\/ja\/site\/\">QGIS<\/a>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u8d77\u52d5\u3057\u305f\u3089\u3001\u5909\u63db\u3057\u305fSHAPE\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u304b\u3089shp\u306e\u30d5\u30a1\u30a4\u30eb\uff08\u4eca\u56de\u306f\u30dd\u30ea\u30b4\u30f3\u30c7\u30fc\u30bf\u3092\u4f7f\u3044\u305f\u3044\u306e\u3067SD02.shp\u3092\u4f7f\u7528\u3057\u307e\u3059\uff09\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<br \/>\n\uff08\u7a7a\u9593\u53c2\u7167\u7cfb\u306f\u300cWGS 84\u300d\u3092\u9078\u629e\uff09<br \/>\n\u3053\u306e\u307e\u307e\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092KML\u306b\u5909\u63db\u3057\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u91cf\u304c\u591a\u3059\u304e\u308b\u3068Google Map\u306b\u63b2\u8f09\u3067\u304d\u308b\u5236\u9650\u3092\u8d85\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u3001KML\u306b\u5909\u63db\u3059\u308b\u30c7\u30fc\u30bf\u3092\u7d5e\u308a\u8fbc\u307f\u307e\u3059\u3002<br \/>\n\u300c\u30ec\u30a4\u30e4\u30fc\u300d\u2192\u300c\u5c5e\u6027\u30c6\u30fc\u30d6\u30eb\u306e\u30aa\u30fc\u30d7\u30f3\u300d\u3092\u9078\u629e\u3002<br \/>\n\u4eca\u56de\u306fINS\u30ab\u30e9\u30e0\u306e\u5024\u304c\u300c\u9ad8\u5d0e\u300d\u306e\u3082\u306e\u3060\u3051\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2012\/12\/WSd000001-300x228.jpg\" alt=\"WSd000001\" width=\"300\" height=\"228\" class=\"aligncenter size-medium wp-image-2137\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2012\/12\/WSd000003-300x174.jpg\" alt=\"WSd000003\" width=\"300\" height=\"174\" class=\"aligncenter size-medium wp-image-2138\" \/><\/p>\n<p>\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3060\u3051\u304c\u9078\u629e\u3055\u308c\u305f\u72b6\u614b\u306b\u306a\u3063\u305f\u3089\u3001\u300c\u30ec\u30a4\u30e4\u30fc\u300d\u2192\u300c\u9078\u629e\u90e8\u5206\u3092\u30d9\u30af\u30bf\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b\u2026\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057KML\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u51fa\u529b\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2012\/12\/WSd000004-224x300.jpg\" alt=\"WSd000004\" width=\"224\" height=\"300\" class=\"aligncenter size-medium wp-image-2139\" \/><\/p>\n<h2>\u25a0KML\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u6574\u5f62<\/h2>\n<p>\u4e00\u5fdc\u3001KML\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3067\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u307e\u307e\u3067\u306f\u4e0d\u8981\u306a\u60c5\u5831\u306a\u3069\u304c\u591a\u3044\u306e\u3067\u6574\u5f62\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001Notepad++\u306e\u6b63\u898f\u8868\u73fe\u7f6e\u63db\u3092\u4f7f\u3063\u3066\u624b\u52d5\u3067\u66f8\u304d\u63db\u3048\u307e\u3057\u305f\u3002<br \/>\n\u5927\u91cf\u306b\u6574\u5f62\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u3063\u305f\u65b9\u304c\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><a href=\"http:\/\/www.mergely.com\/QdD5QXJy\/\">\u6574\u5f62\u3057\u305fKML\u30c7\u30fc\u30bf\u306ediff<\/a><br \/>\n\u5de6\u304c\u5143\u30c7\u30fc\u30bf\u3001\u53f3\u304c\u6574\u5f62\u3057\u305f\u30c7\u30fc\u30bf\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u25a0Google Map\u4e0a\u306b\u8aad\u307f\u8fbc\u307f<\/h2>\n<p>KML\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u65b9\u6cd5\u306f\u4ee5\u4e0b\u3002<\/p>\n<pre class=\"lang:xhtml decode:true \" >&lt;html&gt;\n&lt;head&gt;\n&lt;meta name=&quot;viewport&quot; content=&quot;initial-scale=1.0, user-scalable=no&quot; \/&gt;\n&lt;script type=&quot;text\/javascript&quot; src=&quot;http:\/\/maps.googleapis.com\/maps\/api\/js?sensor=false&amp;hl=ja&quot;&gt;&lt;\/script&gt;\n&lt;script type=&quot;text\/javascript&quot;&gt;\n  function initialize() {\n    var initPos = new google.maps.LatLng(36.3219088, 139.0032936);\n    var myOptions = {\n      noClear : true,\n      center : initPos,\n      zoom : 12,\n      mapTypeId : google.maps.MapTypeId.ROADMAP\n    };\n    var map_canvas = new google.maps.Map(document.getElementById(&quot;map_canvas&quot;), myOptions);\n    \n    var kmlUrl = &quot;http:\/\/&lt;\u30db\u30b9\u30c8\u540d&gt;\/takasaki.kml&quot;; \/\/KML\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\n    var kmlLayer = new google.maps.KmlLayer(kmlUrl, {preserveViewport:true});\n    kmlLayer.setMap(map_canvas);\n        \n  }\n&lt;\/script&gt;\n&lt;\/head&gt;\n&lt;body onload=&quot;initialize()&quot;&gt;\n  &lt;div id=&quot;map_canvas&quot; style=&quot;width:100%; height:100%&quot;&gt;&lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n<p><a href=\"http:\/\/shimz.me\/example\/gmapv3\/KML\/index.html\">example<\/a><\/p>\n<h2>KML\u3058\u3083\u306a\u304fGeoJSON\u3092\u4f7f\u3046\u65b9\u6cd5\u3082\u3042\u308b<\/h2>\n<p>QGIS\u3067SHAPE\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u30b3\u30f3\u30d0\u30fc\u30c8\u3059\u308b\u969b\u306bKML\u3058\u3083\u306a\u304f\u3001GeoJSON\u3068\u3057\u3066\u51fa\u529b\u3059\u308b\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u306e\u65b9\u304c\u30de\u30c3\u30d7\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u306e\u304c\u697d\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n<a href=\"https:\/\/gunmagisgeek.com\/blog\/google-map-api\/3445\">Google Map\u4e0a\u306bGeoJSON\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b <\/a><\/p>\n<h2>\u95a2\u9023<\/h2>\n<p><a href=\"https:\/\/gunmagisgeek.com\/blog\/d3-js\/3984\">\u7fa4\u99ac\u770c\u306e\u5c0f\u5b66\u6821\u533a\u3068\u30dc\u30ed\u30ce\u30a4\u56f3\u3092\u91cd\u306d\u5408\u308f\u305b\u3066\u307f\u305f<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56fd\u571f\u6570\u5024\u60c5\u5831\u30b5\u30a4\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fJPGIS\u5f62&hellip;<\/p>\n","protected":false},"author":1,"featured_media":2142,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-2135","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-map-api","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/2135","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=2135"}],"version-history":[{"count":10,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/2135\/revisions"}],"predecessor-version":[{"id":2147,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/2135\/revisions\/2147"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/2142"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=2135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=2135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=2135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}