{"id":5285,"date":"2018-06-28T10:29:09","date_gmt":"2018-06-28T01:29:09","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=5285"},"modified":"2020-05-28T13:48:02","modified_gmt":"2020-05-28T04:48:02","slug":"%ed%8a%b9%ec%a0%95-%ec%a7%80%ec%a0%90%ec%9c%bc%eb%a1%9c%eb%b6%80%ed%84%b0-%ea%b0%80%ec%9e%a5-%ea%b0%80%ea%b9%8c%ec%9a%b4-%ec%a7%80%ec%98%a4%eb%a9%94%ed%8a%b8%eb%a6%ac%ec%9d%98-%ea%b0%80%ec%9e%a5","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=5285","title":{"rendered":"\ud2b9\uc815 \uc9c0\uc810\uc73c\ub85c\ubd80\ud130 \uac00\uc7a5 \uac00\uae4c\uc6b4 \uc9c0\uc624\uba54\ud2b8\ub9ac\uc758 \uac00\uc7a5 \uac00\uae4c\uc6b4 \uad50\ucc28\uc810"},"content":{"rendered":"<p>\uc544\ub798\uc758 \uc774\ubbf8\uc9c0\ub97c \ubcf4\uba74, Polyline \ud615\ud0dc(GIS\uc5d0\uc11c\ub294 linestring\uc774\ub77c\ub294 \uc6a9\uc5b4\ub97c \uc0ac\uc6a9\ud568)\uc758 \ub808\uc774\uc5b4\uc778 Link1\uac00 \uc788\uace0, \ube68\uac04 \ud3ec\uc778\ud2b8\ub85c \ud45c\uc2dc\ub41c \uc9c0\uc810\uc774 \uc788\ub2e4. \uc5ec\uae30\uc11c.. Link1\uc758 \uc9c0\uc624\uba54\ud2b8\ub9ac \uc911 \ube68\uac04 \ud3ec\uc778\ud2b8\uc5d0\uc11c \uac00\uc7a5 \uac00\uae4c\uc6b4 \ub140\uc11d\uc744 \uad6c\ud558\uace0, \uc774\ub807\uac8c \uad6c\ud55c \ub140\uc11d\uc5d0 \ub300\ud574\uc11c \ube68\uac04 \ud3ec\uc778\ud2b8\uc640 \uac00\uc7a5 \uac00\uae4c\uc6b4 \uad50\ucc28\uc810\uc744 \uad6c\ud558\uace0\uc790 \ud55c\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2018\/06\/nearest_point.png\" alt=\"\" width=\"1810\" height=\"1332\" class=\"aligncenter size-full wp-image-5286\" \/><\/p>\n<p>\uc774\ub7ec\ud55c \ubb38\uc81c\uc5d0 \ub300\ud574 \ud574\uacb0\ud560 \uc218 \uc788\ub294 \ub2e4\uc591\ud55c \ucffc\ub9ac\ubb38 \uc911 \ud558\ub098\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\">\r\nSELECT \r\n    fid,\r\n    st_astext(\r\n        st_closestpoint(\r\n            the_geom, \r\n            st_geomfromtext('POINT(149761 265625)')\r\n        )\r\n    ),\r\n    st_distance(\r\n        st_closestpoint(\r\n            the_geom, \r\n            st_geomfromtext('POINT(149761 265625)')\r\n        ),\r\n        st_geomfromtext('POINT(149761 265625)')\r\n    ) as dist\r\nFROM \r\n    network_link\r\nORDER BY \r\n    dist\r\nLIMIT 1;\r\n<\/pre>\n<p>\uc704 \ucffc\ub9ac\uc5d0 \ub300\ud55c \uacb0\uacfc\ub294 \uc544\ub798\uc640 \uac19\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2018\/06\/nearest_point_result.png\" alt=\"\" width=\"965\" height=\"129\" class=\"aligncenter size-full wp-image-5290\" \/><\/p>\n<p>ID\uac00 557\uc778 \ub140\uc11d\uc774\uba70, \uc608\uc0c1\ud588\ub358 \uac83\ucc98\ub7fc \uad50\ucc28\uc810\uacfc \uac70\ub9ac\uc5d0 \ub300\ud55c \uacb0\uacfc\ub97c \ubcfc \uc218 \uc788\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc544\ub798\uc758 \uc774\ubbf8\uc9c0\ub97c \ubcf4\uba74, Polyline \ud615\ud0dc(GIS\uc5d0\uc11c\ub294 linestring\uc774\ub77c\ub294 \uc6a9\uc5b4\ub97c \uc0ac\uc6a9\ud568)\uc758 \ub808\uc774\uc5b4\uc778 Link1\uac00 \uc788\uace0, \ube68\uac04 \ud3ec\uc778\ud2b8\ub85c \ud45c\uc2dc\ub41c \uc9c0\uc810\uc774 \uc788\ub2e4. \uc5ec\uae30\uc11c.. Link1\uc758 \uc9c0\uc624\uba54\ud2b8\ub9ac \uc911 \ube68\uac04 \ud3ec\uc778\ud2b8\uc5d0\uc11c \uac00\uc7a5 \uac00\uae4c\uc6b4 \ub140\uc11d\uc744 \uad6c\ud558\uace0, \uc774\ub807\uac8c \uad6c\ud55c \ub140\uc11d\uc5d0 \ub300\ud574\uc11c \ube68\uac04 \ud3ec\uc778\ud2b8\uc640 \uac00\uc7a5 \uac00\uae4c\uc6b4 \uad50\ucc28\uc810\uc744 \uad6c\ud558\uace0\uc790 \ud55c\ub2e4. \uc774\ub7ec\ud55c \ubb38\uc81c\uc5d0 \ub300\ud574 \ud574\uacb0\ud560 \uc218 \uc788\ub294 \ub2e4\uc591\ud55c \ucffc\ub9ac\ubb38 \uc911 \ud558\ub098\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4. SELECT fid, st_astext( st_closestpoint( the_geom, st_geomfromtext(&#8216;POINT(149761 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=5285\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ud2b9\uc815 \uc9c0\uc810\uc73c\ub85c\ubd80\ud130 \uac00\uc7a5 \uac00\uae4c\uc6b4 \uc9c0\uc624\uba54\ud2b8\ub9ac\uc758 \uac00\uc7a5 \uac00\uae4c\uc6b4 \uad50\ucc28\uc810&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-5285","post","type-post","status-publish","format-standard","hentry","category-gis-working-history"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/5285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5285"}],"version-history":[{"count":7,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/5285\/revisions"}],"predecessor-version":[{"id":9594,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/5285\/revisions\/9594"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5285"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}