{"id":1142,"date":"2010-04-09T11:10:52","date_gmt":"2010-04-09T11:10:52","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=1142"},"modified":"2017-01-29T09:26:28","modified_gmt":"2017-01-29T00:26:28","slug":"openmap-xr-%ec%a7%80%eb%8f%84%ec%9c%84%ec%97%90-%eb%9d%bc%eb%b2%a8-%ed%91%9c%ec%8b%9c","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=1142","title":{"rendered":"[GIS] DuraMap-Xr, \uc9c0\ub3c4\uc704\uc5d0 \ub77c\ubca8 \ud45c\uc2dc"},"content":{"rendered":"<p>Xr \ub9f5\uc5d4\uc9c4\uc5d0 \uc218\uce58\uc9c0\ub3c4\ub97c \ub808\uc774\uc5b4\ub85c \ucd94\uac00\ud558\uace0 \uc218\uce58\uc9c0\ub3c4\uc5d0 \ub300\ud55c \uc18d\uc131\uac12\uc744 \ud14d\uc2a4\ud2b8\ub85c \uc9c0\ub3c4\uc704\uc5d0 \ud45c\uc2dc\ud558\ub294 \uae30\ub2a5\uc744 \ub77c\ubca8 \ud45c\uc2dc \ub610\ub294 \uc5b4\ub178\ud14c\uc774\uc158 \ud45c\uc2dc\ub77c\uace0 \ud569\ub2c8\ub2e4. DuraMap-Xr\uc758 \ub77c\ubca8 \ud45c\uc2dc\uc5d0 \ub300\ud55c API\ub97c \uac04\ub2e8\ud55c \uc608\ub97c \ud1b5\ud574 \uc0b4\ud3b4 \ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. \uba3c\uc800 \uc544\ub798\uc640 \uac19\uc774 \ubc84\ud2bc 3\uac1c\uc640 Xr \ucee8\ud2b8\ub864\uc744 \ud3fc\uc5d0 \ubc30\uce58\ud569\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1234722407.jpg\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"400\" height=\"365\" \/><br \/>\n\ucd1d 3\uac1c\uc758 \ubc84\ud2bc\uc73c\ub85c \uad6c\uc131\ub418\uba70 Add Layer\ub294 ESRI\uc758 shp \ud30c\uc77c\uc744 \uc77d\uc5b4 \ub808\uc774\uc5b4\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \uc774 \ucd94\uac00\ub41c \ub808\uc774\uc5b4\uc5d0 \ub300\ud574 2\uac1c\uc758 \ub77c\ubca8\uc744 \ucd94\uac00\ud558\ub294 \ucf54\ub4dc\uac00 \uac01\uac01 &#8216;Add Label 1&#8217;\uacfc &#8216;Add Label 2&#8217; \ubc84\ud2bc\uc5d0 \ud574\ub2f9\ud569\ub2c8\ub2e4. Xr\uc5d0\uc11c\ub294 \ud558\ub098\uc758 \ub808\uc774\uc5b4\uc5d0 \ub300\ud574 \ub2e4\uc218\uc758 \ub77c\ubca8\uc744 \ud45c\uc2dc\ud560 \uc218 \uc788\ub294 \uba40\ud2f0 \ub77c\ubca8\ub9c1 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. &#8216;Add Layer&#8217;\uc758 \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>axXr1.Layers.AddShapeMapLayer(\"\uc11c\uc6b8\", \"d:\/__data__\/seoul.SHP\");<\/pre>\n<p>\uc2e4\ud589\uc744 \ud558\uace0 \ud574\ub2f9 \ubc84\ud2bc\uc744 \ub204\ub974\uba74 \ud654\uba74\uc5d0 \uc544\ubb34\uac83\ub3c4 \ud45c\uc2dc\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. DuraMap-Xr\uc740 \ud30c\uc77c\uc774\ub098 \uc9c0\ub3c4\uc11c\ubc84\ub85c\ubd80\ud130 \ub370\uc774\ud130\ub97c \uc694\uccad\ud558\uba74 \ub370\uc774\ud130\ub97c \ubaa8\ub450 \ubc1b\uc744\ub54c OnLayerConnectionCompleted \uc774\ubca4\ud2b8\uac00 \ubc1c\uc0dd\ud558\uac8c \ub429\ub2c8\ub2e4. \uc774 \uc774\ubca4\ud2b8\uc5d0 \uc544\ub798\uc758 \ucf54\ub4dc\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<pre>\r\nprivate void axXr1_OnLayerConnectionCompleted(object sender, \r\n\u00a0 \u00a0 AxXrMapLib._IXrMapControlEvents_OnLayerConnectionCompletedEvent e)\r\n{\r\n\u00a0 \u00a0 axXr1.ZoomFullExtent();\r\n\u00a0 \u00a0 axXr1.ZoomInFix();\r\n}<\/pre>\n<p>\uc989, \uc9c0\ub3c4 \ub808\uc774\uc5b4\uac00 \uc644\uc804\ud558\uac8c \uc77d\uc5b4\uc9c4 \ud6c4 \uc9c0\ub3c4\ub97c \ud654\uba74\uc5d0 \uaf49 \ucc44\uc6cc \uadf8\ub9ac\ub3c4\ub85d \ud569\ub2c8\ub2e4. ZoonFullExtent \ud638\ucd9c \ub4a4\uc5d0 \ubc14\ub85c ZoomInFix\ub97c \ud638\ucd9c\ud558\uc5ec \uc9c0\ub3c4\ub97c \ud655\ub300\ud574 \uc880 \ub354 \ud654\uba74\uc5d0 \uaf49 \ucc28\uac8c \ud569\ub2c8\ub2e4. \uc774\uc81c \uc2e4\ud589\ud558\uace0 \ud574\ub2f9 \ubc84\ud2bc\uc744 \ud074\ub9ad\ud558\uba74 \uc544\ub798\ucc98\ub7fc \uc9c0\ub3c4\uac00 \ud45c\uc2dc\ub429\ub2c8\ub2e4.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1052892861.jpg\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"268\" height=\"244\" \/><br \/>\n\uc774\uc81c \ub77c\ubca8\uc744 \ucd94\uac00\ud558\ub294 &#8216;Add Label 1&#8217; \ubc84\ud2bc\uc758 \ucf54\ub4dc\ub97c \uc0b4\ud3b4\ubcf4\uae30 \uc804\uc5d0 \uc774 shp \ud30c\uc77c\uc5d0 \ub300\ud55c \uc18d\uc131 \uc815\ubcf4\ub97c \uc0b4\ud3b4\ubcf4\uba74 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1177261015.jpg\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"206\" height=\"130\" \/><br \/>\n\ucd1d 2\uac1c\uc758 \ud544\ub4dc\uac00 \uc874\uc7ac\ud558\uba70 &#8216;Add Label 1&#8217; \ubc84\ud2bc\uc5d0\uc11c\ub294 SGG_NM \ud544\ub4dc\ub97c \uc774\uc6a9\ud574 \ub77c\ubca8\uc744 \ud45c\uc2dc\ud558\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. &#8216;Add Label 1&#8217; \ubc84\ud2bc\uc5d0 \ub300\ud55c \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>\r\naxXr1.Labels.AddLabel(\"\uc11c\uc6b8\", \"{SGG_NM}\");\r\nXrMapLib.ILabel lbl = axXr1.Labels.GetLabel(\"\uc11c\uc6b8\", \"{SGG_NM}\");\r\nlbl.SmartLabel = false;\r\nlbl.Font.Name = \"\ub9d1\uc740 \uace0\ub515\";\r\nlbl.Font.Size = 10;\r\naxXr1.Update();<\/pre>\n<p>Xr \uc5d4\uc9c4\uc758 Labels \ud504\ub85c\ud37c\ud2f0 \uac1d\uccb4\uc758 \ub9e4\uc11c\ub4dc\uc778 AddLabel \ub9e4\uc11c\ub4dc\ub97c \ud1b5\ud574 \ub77c\ubca8\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4. \uc778\uc790\ub294 2\uac1c\ub85c\uc368 \uccab\uc9f8\ub294 \ub300\uc0c1 \ub808\uc774\uc5b4\uc758 \uc774\ub984\uc774\uba70 \ub458\uc9f8\ub294 \ub77c\ubca8 \ubb38\uc790\uac12\uc73c\ub85c \ud45c\uc2dc\ud560 \ud544\ub4dc\uba85\uc785\ub2c8\ub2e4. \uc9c0\uc815\ud560 \ud544\ub4dc\uba85 \uc591\ucabd\uc73c\ub85c {\uc640 }\ub85c \uac10\uc2f8\uc57c \ud569\ub2c8\ub2e4. \uc774\ub294 DuraMap-Xr\uc774 \ud45c\ud604\uc2dd\uc744 \ud1b5\ud55c \ub77c\ubca8 \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4. \uc774\ub807\uac8c \ucd94\uac00\ub41c \ub77c\ubca8\uc740 GetLabel\uc744 \ud1b5\ud574 \ub77c\ubca8 \uac1d\uccb4\ub85c\uc368 \uc5bb\uc744 \uc218 \uc788\uc73c\uba70 \uc774 \uac1d\uccb4\ub97c \ud1b5\ud574 \uc5ec\ub7ec\uac00\uc9c0 \uc18d\uc131\uc744 \uc81c\uc5b4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc2e4\ud589\ud574 \ubcf4\uba74 \uc544\ub798 \uadf8\ub9bc\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1349587570.jpg\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"375\" height=\"342\" \/><br \/>\n\uc774\uc81c \ub610 \ub2e4\ub978 \ub77c\ubca8\uc744 \ucd94\uac00\ud558\ub294 &#8216;Add Label 2&#8217; \ubc84\ud2bc\uc5d0 \ub300\ud55c \ucf54\ub4dc\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ucf54\ub4dc\ub294 \uc55e\uc11c \uc124\uba85\ud55c &#8216;Add Label 1&#8217; \ubc84\ud2bc\uc758 \ucf54\ub4dc\uc640 \uc720\uc0ac\ud569\ub2c8\ub2e4.<\/p>\n<pre>\r\naxXr1.Labels.AddLabel(\"\uc11c\uc6b8\", \"({SGG_ENG_NM})\");\r\nXrMapLib.ILabel lbl = axXr1.Labels.GetLabel(\"\uc11c\uc6b8\", \"({SGG_ENG_NM})\");\r\nlbl.SmartLabel = false;\r\nlbl.Font.Name = \"Arial\";\r\nlbl.Font.Size = 9;\r\nlbl.Font.Color = (uint)ColorTranslator.ToOle(Color.FromArgb(0, 0, 255));\r\nlbl.Offset.HeightUnit = 1;\r\naxXr1.Update();<\/pre>\n<p>\uc8fc\uc758 \uae4a\uc774 \uc0b4\ud3b4\ubcfc \ub9cc\ud55c \ucf54\ub4dc\ub294 7\ubc88\uc9f8 \ucf54\ub4dc\ub85c \uc774\ub294 \ub77c\ubca8\uc758 \ub192\uc774 \ub9cc\ud07c \uc704\uce58\ub97c \uc774\ub3d9\uc2dc\ud0a4\ub77c\ub294 \ucf54\ub4dc\ub85c +1\uc758 \uac12\uc740 \uc544\ub798 \ubc29\ud5a5\uc73c\ub85c \ub192\uc774 x 1 \ud53d\uc140\ub9cc\ud07c \uc774\ub3d9\ud558\ub77c\ub294 \uc758\ubbf8\uc785\ub2c8\ub2e4. \uc774\ub294 &#8216;Add Label 1&#8217; \ubc84\ud2bc\uc5d0\uc11c \ucd94\uac00\ud55c \ub77c\ubca8\uacfc \uc911\ubcf5\ub418\uc5b4\uc9c0\ub294 \uac83\uc744 \ub9c9\uae30 \uc704\ud568\uc785\ub2c8\ub2e4. \uc2e4\ud589\ud558\uc5ec \ubc84\ud2bc\uc744 \uc21c\uc11c\ub300\ub85c \ub20c\ub7ec\ubcf4\uba74 \uc544\ub798 \uacb0\uacfc\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1350817955.jpg\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"487\" height=\"400\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xr \ub9f5\uc5d4\uc9c4\uc5d0 \uc218\uce58\uc9c0\ub3c4\ub97c \ub808\uc774\uc5b4\ub85c \ucd94\uac00\ud558\uace0 \uc218\uce58\uc9c0\ub3c4\uc5d0 \ub300\ud55c \uc18d\uc131\uac12\uc744 \ud14d\uc2a4\ud2b8\ub85c \uc9c0\ub3c4\uc704\uc5d0 \ud45c\uc2dc\ud558\ub294 \uae30\ub2a5\uc744 \ub77c\ubca8 \ud45c\uc2dc \ub610\ub294 \uc5b4\ub178\ud14c\uc774\uc158 \ud45c\uc2dc\ub77c\uace0 \ud569\ub2c8\ub2e4. DuraMap-Xr\uc758 \ub77c\ubca8 \ud45c\uc2dc\uc5d0 \ub300\ud55c API\ub97c \uac04\ub2e8\ud55c \uc608\ub97c \ud1b5\ud574 \uc0b4\ud3b4 \ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. \uba3c\uc800 \uc544\ub798\uc640 \uac19\uc774 \ubc84\ud2bc 3\uac1c\uc640 Xr \ucee8\ud2b8\ub864\uc744 \ud3fc\uc5d0 \ubc30\uce58\ud569\ub2c8\ub2e4. \ucd1d 3\uac1c\uc758 \ubc84\ud2bc\uc73c\ub85c \uad6c\uc131\ub418\uba70 Add Layer\ub294 ESRI\uc758 shp \ud30c\uc77c\uc744 \uc77d\uc5b4 \ub808\uc774\uc5b4\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \uc774 \ucd94\uac00\ub41c \ub808\uc774\uc5b4\uc5d0 \ub300\ud574 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=1142\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[GIS] DuraMap-Xr, \uc9c0\ub3c4\uc704\uc5d0 \ub77c\ubca8 \ud45c\uc2dc&#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":[57],"tags":[5,53],"class_list":["post-1142","post","type-post","status-publish","format-standard","hentry","category-duramap-xr","tag-gis","tag-xr"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1142","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=1142"}],"version-history":[{"count":1,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1142\/revisions"}],"predecessor-version":[{"id":3355,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1142\/revisions\/3355"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1142"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}