{"id":4714,"date":"2017-04-14T14:37:39","date_gmt":"2017-04-14T05:37:39","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=4714"},"modified":"2017-04-24T10:31:46","modified_gmt":"2017-04-24T01:31:46","slug":"gdal%ec%97%90%ec%84%9c-%ec%a0%9c%ea%b3%b5%ed%95%98%eb%8a%94-command-%ec%a0%95%eb%a6%ac","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=4714","title":{"rendered":"GDAL\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 Command \uc815\ub9ac"},"content":{"rendered":"<p>GDAL\uc740 geotif \ub4f1\uacfc \uac19\uc740 Raster \ub370\uc774\ud130\uc5d0 \ub300\ud574 \uc218\ud589\ud560 \uc218 \uc788\ub294 \ub2e4\uc591\ud55c Command\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. Raster \ud30c\uc77c\uc5d0 \ub300\ud55c Extent\uc640 \uc88c\ud45c\uacc4 \uc815\ubcf4\ub97c \uc5bb\uc744 \uc218 \uc788\ub294 gdalinfo.exe\uc5d0\uc11c\ubd80\ud130 \uc601\uc0c1\uc5d0\uc11c \ud2b9\uc815 \uc601\uc5ed\ub9cc\uc744 \ubf51\uc544\ub0b4 \ub610 \ub2e4\ub978 \uc601\uc0c1 \ud30c\uc77c\ub85c \uc800\uc7a5\ud560 \uc218\ub3c4 \uc788\uace0, \uc88c\ud45c\uacc4\uc5d0 \ub300\ud55c \ud22c\uc601\ubcc0\ud658\ub3c4 \uac00\ub2a5\ud558\uba70 GCP\ub97c \uc9c0\uc815\ud574 Georeferencing\ub3c4 \uac00\ub2a5\ud569\ub2c8\ub2e4. GIS \uac1c\ubc1c\uc790\uc5d0\uac8c Raster \ub370\uc774\ud130\ub97c \uc800\uc218\uc900\uc5d0\uc11c \ucc98\ub9ac\ud558\uae30 \uc704\ud574 GDAL\ub294 \ub9e4\uc6b0 \ud65c\uc6a9\ub3c4\uac00 \ub192\uace0 \uc911\uc694\ud55c \uc624\ud508\uc18c\uc2a4 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc785\ub2c8\ub2e4. (GDAL \ub77c\uc774\ube0c\ub7ec\ub9ac\ub9cc \uc788\ub2e4\uba74 \uc5b4\ub5a0\ud55c GIS \ub370\uc774\ud130 \ud3ec\ub9f7\uc774\ub4e0 \ubaa8\ub450 \ub0b4 \uc190 \uc548\uc5d0 \uc788\ub2e4\uaddc !!)<\/p>\n<p>GDAL\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 Command \uba85\ub839 \uc911 \uc2e4\uc81c \uc791\uc5c5 \uc911\uc5d0 \uc0ac\uc6a9\ud588\ub358 \uac83\uc744 \uc815\ub9ac\ud574 \ub461\ub2c8\ub2e4.<\/p>\n<p><strong>1. Raster \ub370\uc774\ud130\uc758 \uc815\ubcf4 \ubcf4\uae30<\/strong><\/p>\n<p><code>Z:\\> gdalinfo A.tif<\/code><\/p>\n<p>\uc704\uc758 \uba85\ub839\uc740 A.tif \ud30c\uc77c\uc5d0 \ub300\ud55c \uc88c\ud45c\uacc4 \ubc0f Extents \ub4f1\uc5d0 \ub300\ud55c \uc815\ubcf4\ub97c \uc5bb\uae30 \uc704\ud55c \uba85\ub839\uc785\ub2c8\ub2e4.<\/p>\n<p><strong>2. geotif \uc601\uc0c1\uc5d0\uc11c \uc6d0\ud558\ub294 \ubd80\ubd84\ub9cc\uc744 \uc798\ub77c\ub0b4 \ub610\ub2e4\ub978 \ud30c\uc77c\ub85c \uc800\uc7a5\ud558\uae30<\/strong><\/p>\n<p><code>Z:\\> gdalwarp -te 197789.97 552829.04 199789.97 554829.04 G:\\img\\geotif\\Seoul_10cm_GRS80.tif g:\\a.tif<\/code><\/p>\n<p>\uc704\uc758 \uba85\ub839\uc740 Seoul_10cm_GRS80.tif \uc601\uc0c1 \ud30c\uc77c\uc5d0\uc11c MBR(197789.97 552829.04 199789.97 554829.04)\uc5d0 \ub300\ud55c \ubd80\ubd84\uc744 a.tif \ud30c\uc77c\ub85c \uc800\uc7a5\ud558\uae30 \uc704\ud55c \uba85\ub839\uc785\ub2c8\ub2e4. <\/p>\n<p><strong>3. GCP\ub97c \uc9c0\uc815\ud55c Georeferencing \ud558\uae30<\/strong><\/p>\n<p><code>Z:\\> gdal_translate -of GTiff -gcp 48.954 1298.304 219084 362071 -gcp 1174.042 348.95 219261 362144 -gcp 2610.376 5.8401 219418 362116 A.jpg B.tif<br \/>\nZ:\\> gdalwarp -r lanczos B.tif C.tif<\/code><\/p>\n<p>\uc704\uc758 \uc5f0\uc18d\uc801\uc73c\ub85c \uc2e4\ud589\ub418\ub294 2\uac1c\uc758 \uba85\ub839 \uc911 \uccab\ubc88\uc9f8\ub294 GCP\ub97c 3\uac1c \uc0ac\uc6a9\ud574 \uc785\ub825 \ud30c\uc77c\uc778 A.jpg \ud30c\uc77c\uc5d0 \ub300\ud574 Georeferencing \ud558\uc5ec B.tif \ud30c\uc77c\ub85c \uc800\uc7a5\ud558\ub77c\ub294 \uba85\ub839\uc774\uace0, \ub450\ubc88\uc9f8\ub294 \uc800\uc7a5\ub41c B.tif\ub97c Resizing \uc54c\uace0\ub9ac\uc998 \uc911 lanczos\ub97c \uc0ac\uc6a9\ud574 c.tif \ud30c\uc77c\ub85c \uc800\uc7a5\ud558\ub77c\ub294 \uba85\ub839\uc785\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GDAL\uc740 geotif \ub4f1\uacfc \uac19\uc740 Raster \ub370\uc774\ud130\uc5d0 \ub300\ud574 \uc218\ud589\ud560 \uc218 \uc788\ub294 \ub2e4\uc591\ud55c Command\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. Raster \ud30c\uc77c\uc5d0 \ub300\ud55c Extent\uc640 \uc88c\ud45c\uacc4 \uc815\ubcf4\ub97c \uc5bb\uc744 \uc218 \uc788\ub294 gdalinfo.exe\uc5d0\uc11c\ubd80\ud130 \uc601\uc0c1\uc5d0\uc11c \ud2b9\uc815 \uc601\uc5ed\ub9cc\uc744 \ubf51\uc544\ub0b4 \ub610 \ub2e4\ub978 \uc601\uc0c1 \ud30c\uc77c\ub85c \uc800\uc7a5\ud560 \uc218\ub3c4 \uc788\uace0, \uc88c\ud45c\uacc4\uc5d0 \ub300\ud55c \ud22c\uc601\ubcc0\ud658\ub3c4 \uac00\ub2a5\ud558\uba70 GCP\ub97c \uc9c0\uc815\ud574 Georeferencing\ub3c4 \uac00\ub2a5\ud569\ub2c8\ub2e4. GIS \uac1c\ubc1c\uc790\uc5d0\uac8c Raster \ub370\uc774\ud130\ub97c \uc800\uc218\uc900\uc5d0\uc11c \ucc98\ub9ac\ud558\uae30 \uc704\ud574 GDAL\ub294 \ub9e4\uc6b0 \ud65c\uc6a9\ub3c4\uac00 \ub192\uace0 \uc911\uc694\ud55c \uc624\ud508\uc18c\uc2a4 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=4714\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;GDAL\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 Command \uc815\ub9ac&#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":[44,7],"tags":[],"class_list":["post-4714","post","type-post","status-publish","format-standard","hentry","category-gis-tools","category-gis-working-history"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/4714","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=4714"}],"version-history":[{"count":6,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/4714\/revisions"}],"predecessor-version":[{"id":9679,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/4714\/revisions\/9679"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4714"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}