{"id":1165,"date":"2010-05-05T12:17:36","date_gmt":"2010-05-05T12:17:36","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=1165"},"modified":"2017-01-29T09:23:42","modified_gmt":"2017-01-29T00:23:42","slug":"openmap-xr-%ed%86%b5%ea%b3%84-%eb%8d%b0%ec%9d%b4%ed%84%b0%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-%ec%b0%a8%ed%8a%b8%eb%a7%b5","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=1165","title":{"rendered":"[GIS] DuraMap-Xr, \ud1b5\uacc4 \ub370\uc774\ud130\ub97c \uc774\uc6a9\ud55c \ucc28\ud2b8\ub9f5"},"content":{"rendered":"<p>\uc218\uce58 \ub370\uc774\ud130\ub85c \uad6c\uc131\ub41c \ub370\uc774\ud130\ub97c \ucc28\ud2b8\uc640 \uac19\uc740 \uadf8\ub798\ud504\ub85c \ud45c\ud604\ud558\uc5ec \uc0ac\uc6a9\uc790\uc758 \uc774\ud574\ub97c \ub192\uc77c \uc218\uac00 \uc788\uc2b5\ub2c8\ub2e4. \uc5ec\uae30\uc5d0 \ub354\ud574 \ud1b5\uacc4 \ub370\uc774\ud130\ub85c \uad6c\uc131\ub418\ub294 \ucc28\ud2b8\ub97c \uc9c0\ub3c4 \uc704\uc5d0 \ud45c\ud604\ud55c\ub2e4\uba74 \ub354\uc6b1 \uc774\ud574\ub3c4\ub97c \ub192\uc77c \uc218 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4. \uc774 \uae00\uc740 DuraMap-Xr\uc5d0\uc11c \ucc28\ud2b8\ub97c \ud45c\ud604\ud558\ub294 API\uc5d0 \ub300\ud574 \uc124\uba85\ud569\ub2c8\ub2e4. \uba3c\uc800 \uc544\ub798\uc640 \uac19\uc774 \ubc84\ud2bc 4\uac1c\uc640 Xr \ub9f5 \ucee8\ud2b8\ub864\uc744 \ud3fc\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1009304344.jpg\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"507\" height=\"158\" \/><br \/>\n\ubc84\ud2bc\uc758 \uad6c\uc131 \uc21c\uc11c\ub294 \uc2e4\ud589 \uc21c\uc11c\uc640 \uac19\uc2b5\ub2c8\ub2e4. \uba3c\uc800 Add Map Layer \ubc84\ud2bc\uc744 \ud1b5\ud574 \uc11c\uc6b8\uc2dc \uc9c0\ub3c4\ub97c \ub808\uc774\uc5b4\ub85c \ucd94\uac00\ud558\uace0 \ub2e4\uc74c\uc73c\ub85c Add Chart Layer \ubc84\ud2bc\uc744 \ud1b5\ud574 \ucc28\ud2b8 \ub808\uc774\uc5b4\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \uc774\ub807\uac8c \ucd94\uac00\ub41c \ucc28\ud2b8 \ub808\uc774\uc5b4\uc5d0 \uc218\uce58 \ub370\uc774\ud130\ub97c \ud1b5\ud574 \ucc28\ud2b8 \uc694\uc18c\ub97c \ucd94\uac00\ud558\uae30 \uc704\ud558\uc5ec Add Chart Values \ubc84\ud2bc\uc744 \ud074\ub9ad\ud569\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \ucc28\ud2b8\uc758 \ubc94\ub840\ub97c \ucd94\uac00\ud558\uae30 \uc704\ud574 Add Chart Legend \ubc84\ud2bc\uc744 \ud074\ub9ad\ud569\ub2c8\ub2e4. \uba3c\uc800 Add Map Layer \ubc84\ud2bc\uc5d0 \ub300\ud55c \ucf54\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>\r\naxXr1.Layers.AddShapeMapLayer(\"map\", \"d:\/__data__\/seoul.SHP\");\r\naxXr1.Layers.AddShapeMapLayer(\"ref\", \"ref:\/\/map\");\r\naxXr1.WaitForAllConnections();\r\n\r\nIShapeMapLayer map = axXr1.Layers.GetLayerAsShapeMap(\"map\");\r\nmap.FillSymbol.Hollow = true;\r\nmap.LineSymbol.Color = RGB(240, 240, 240);\r\nmap.LineSymbol.Width = 10;\r\nmap.LineSymbol.RoundingEnd = true;\r\n\r\nIShapeMapLayer refmap = axXr1.Layers.GetLayerAsShapeMap(\"ref\");\r\nrefmap.FillSymbol.Color = RGB(220, 220, 220);\r\nrefmap.LineSymbol.Color = RGB(180, 180, 180);\r\nrefmap.LineSymbol.Width = 1;\r\n\r\naxXr1.ZoomFullExtent();<\/pre>\n<p>\ub3d9\uc77c\ud55c SHP \ud30c\uc77c\ub85c\ubd80\ud130 2\uac1c\uc758 \ub808\uc774\uc5b4\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4. DuraMap-Xr\uc740 \ub3d9\uc77c\ud55c \uc9c0\ub3c4 \ub370\uc774\ud130\ub97c \ud1b5\ud574 \uc11c\ub85c \ub2e4\ub978 \uc2a4\ud0c0\uc77c\ub85c \uadf8\ub9b4 \uc218 \uc788\ub610\ub85d \uc9c0\ub3c4 \ub370\uc774\ud130\ub97c \uacf5\uc720\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. 1\ubc88 \ucf54\ub4dc\uc5d0\uc11c \uc6d0\ubcf8 \ub808\uc774\uc5b4\ub97c \ucd94\uac00\ud558\uace0 \uc774 \uc6d0\ubcf8 \ub808\uc774\uc5b4\ub97c \ucc38\uc870\ud558\uae30 \uc704\ud574 2\ubc88 \ucf54\ub4dc\uc5d0\uc11c AddShapeMapLayer\uc758 \ub450\ubc88\uc9f8 \uc778\uc790\uc778 \uc5f0\uacb0 \ubb38\uc790\uc5f4(Connection String)\uc744 ref:\/\/\ub85c \uc2dc\uc791\ud558\uc5ec \ucc38\uc870\ud560 \ub808\uc774\uc5b4\uc758 \uc774\ub984\uc744 \ub367\ubd99\uc778 \ud615\ud0dc\ub85c \uc9c0\uc815\ud569\ub2c8\ub2e4. 5\ubc88 \ucf54\ub4dc\ubd80\ud130\ub294 \uc774\ub807\uac8c \ucd94\uac00\ub41c 2\uac1c\uc758 \ub808\uc774\uc5b4\uc758 \uc2a4\ud0c0\uc77c\uc744 \uc9c0\uc815\ud558\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. \uc2e4\ud589 \uacb0\uacfc\ub294 \uc544\ub798\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<p style='text-align:center'><a href=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1334117769.zip\"><img width='64' src='\/images\/download.svg' \/><\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1207664919.jpg\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"510\" height=\"458\" \/><br \/>\n\ub2e4\uc74c\uc73c\ub85c \ucc28\ud2b8 \ub808\uc774\uc5b4\ub97c \ucd94\uac00\ud558\ub294 \ucf54\ub4dc\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ucf54\ub4dc\ub294 Add Chart Layer \ubc84\ud2bc\uc5d0 \ub300\ud55c \ucf54\ub4dc\uc785\ub2c8\ub2e4.<\/p>\n<pre>\r\naxXr1.Layers.AddChartLayer(\"chart\", \"\");\r\naxXr1.WaitForAllConnections();\r\nIChartLayer chart = axXr1.Layers.GetLayerAsChart(\"chart\");\r\n\r\nPieChartDefine define = new PieChartDefine();\r\ndefine.DrawType = XrPieChartDrawTypeEnum.Xr3DPieChart;\r\ndefine.StartAngle = 30;\r\ndefine.Height3D = 10;\r\n\r\nLineSymbol LS1 = new LineSymbol();\r\nLineSymbol LS2 = new LineSymbol();\r\nLineSymbol LS3 = new LineSymbol();\r\nFillSymbol FS1 = new FillSymbol();\r\nFillSymbol FS2 = new FillSymbol();\r\nFillSymbol FS3 = new FillSymbol();\r\n\r\nLS1.Color = RGB(50, 50, 50);\r\nLS1.Width = 1;\r\nLS2.Color = RGB(130, 130, 130);\r\nLS2.Width = 1;\r\nLS3.Color = RGB(210, 210, 210);\r\nLS3.Width = 1;\r\n\r\nFS1.Color = RGB(50, 50, 50);\r\nFS2.Color = RGB(130, 130, 130);\r\nFS3.Color = RGB(210, 210, 210);\r\n\r\nChartSeries cs = new ChartSeries();\r\ncs.Title = \"\uc5f0\ub839\ub300\";\r\ncs.Add(\"0~20\uc138\", FS1, LS1);\r\ncs.Add(\"20~40\uc138\", FS2, LS2);\r\ncs.Add(\"40~100\uc138\", FS3, LS3);\r\n\r\nIChartDefine cd = define as IChartDefine;\r\ncd.SetChartSize(10, 5, 60, 30);\r\ncd.AddSeries(cs);\r\n\r\nchart.SetChartDefine(cd);<\/pre>\n<p>\uc81c\ubc95 \uae34 \ucf54\ub4dc\ub85c \uad6c\uc131\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ucc28\ud2b8 \ub808\uc774\uc5b4\uc5d0 \uc9c0\uc815\ud560 \uc218\uce58 \ub370\uc774\ud130\uc758 \uad6c\uc870\uc640 \ucc28\ud2b8\ub97c \uadf8\ub9ac\uae30 \uc704\ud55c \uc2ec\ubc8c\uc744 \uc815\uc758\ud558\uae30 \uc704\ud55c \ucf54\ub4dc\uc785\ub2c8\ub2e4. \uba3c\uc800 1~3\ubc88 \ucf54\ub4dc\uac00 \ucc28\ud2b8 \ub808\uc774\uc5b4\ub97c \ucd94\uac00\ud558\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. \uadf8\ub9ac\uace0 4~7\ubc88 \ucf54\ub4dc\ub294 DuraMap-Xr\uc5d0\uc11c \uc9c0\uc6d0\ud558\ub294 \ucc28\ud2b8 \uc911\uc5d0 \ud30c\uc774 \ucc28\ud2b8\ub97c \uad6c\uc131\ud558\ub3c4\ub85d \ud558\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. 9~25\ubc88 \ucf54\ub4dc\ub294 \ud30c\uc774\ucc28\ud2b8\ub97c \uadf8\ub9b4\ub54c \uc0ac\uc6a9\ud558\ub294 \uc0c9\uc0c1 \uc2ec\ubc8c\uc744 \uc815\uc758\ud558\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. \uc5ec\uae30\uc11c \uc0ac\uc6a9\ud560 \ud30c\uc774 \ucc28\ud2b8\ub294 \ucd1d 3\uac1c\uc758 \ud56d\ubaa9\uc73c\ub85c \uad6c\uc131\ub418\uc5b4 \uc788\uc73c\ubbc0\ub85c \ucc44\uc6c0 \uc2ec\ubc8c\uacfc \ub77c\uc778 \uc2ec\ubc8c\uc744 \uac01\uac01 3\uac1c\uc529 \uc815\uc758\ud569\ub2c8\ub2e4. \uadf8\ub9ac\uace0 27~31\ubc88 \ucf54\ub4dc\uac00 \ubc14\ub85c \uc774 3\uac1c\uc758 \ud56d\ubaa9\uc5d0 \ub300\ud55c \uc815\uc758\uc785\ub2c8\ub2e4. \ud56d\ubaa9\uc758 \uc815\uc758\uc5d0\uc11c \uc55e\uc11c \uc0dd\uc131\ud55c \uc0c9\uc0c1 \uc2ec\ubc8c\uc744 \uac01 \ud56d\ubaa9\uc5d0 \uc9c0\uc815\ud558\uace0 \uc788\ub294 \uac83\uc744 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \ub05d\uc73c\ub85c 29~33\ubc88 \ucf54\ub4dc\ub97c \ud1b5\ud574 \ucc28\ud2b8\uc758 \uad6c\uc131 \uc815\ubcf4\ub97c \uc2e4\uc81c\ub85c \ucc28\ud2b8 \ub808\uc774\uc5b4\uc5d0 \uc9c0\uc815\ud558\ub294 \ud569\ub2c8\ub2e4. \uc774 \ucf54\ub4dc\ub4e4\uc740 \ub0b4\ubd80\uc801\uc778 \ucc28\ud2b8\ub808\uc774\uc5b4\ub97c \uad6c\uc131\ud558\uace0 \ucd94\uac00\ud558\ub294 \ucf54\ub4dc\uc774\ubbc0\ub85c \ud654\uba74\uc0c1\uc5d0 \uc544\ubb34\ub7f0 \ubcc0\ud654\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. \uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c \ub2e4\uc74c\uacfc \uac19\uc740 RGB\ub77c\ub294 \uc0ac\uc6a9\uc790 \uc815\uc758 \ud568\uc218\uac00 \uc0ac\uc6a9\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>\r\nprivate uint RGB(Byte R, Byte G, Byte B)\r\n{\r\n\u00a0 \u00a0 return (uint)ColorTranslator.ToOle(Color.FromArgb(R, G, B));\r\n}<\/pre>\n<p>\uc774 \ud568\uc218\ub294 \uc190\uc27d\uac8c RGB \uac12\uc73c\ub85c C#\uc758 \uc0c9\uc0c1\uc744 \uc9c0\uc815\ud558\uae30 \uc704\ud55c \uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218\uc785\ub2c8\ub2e4.<\/p>\n<p>\uc774\uc81c \uc2e4\uc81c\ub85c \ucc28\ud2b8\uc5d0 \ub300\ud55c \uc218\uce58 \ub370\uc774\ud130 \uac12\uc744 \uad6c\uc131\ud558\ub294 \ucf54\ub4dc\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \ubc14\ub85c Add Chart Values \ubc84\ud2bc\uc774 \uc774\ub7ec\ud55c \uc77c\uc744 \uc218\ud589\ud558\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. \ucc28\ud2b8 \uac12\uc740 \ud30c\uc77c\ub85c\ubd80\ud130 \uc77d\uc5b4\uc624\ub294 \uac83\uc73c\ub85c \ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc0ac\uc6a9\ud560 \ub370\uc774\ud130\uc5d0 \ub300\ud55c \ud30c\uc77c\uc740 chartdata.txt\uc774\uba70 \ub0b4\uc6a9\uc740 \uc544\ub798\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\/1242738973.jpg\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"212\" height=\"394\" \/><br \/>\n\ucd1d 25\uac1c\uc758 \uc904\ub85c \uad6c\uc131\ub418\uc5c8\uc73c\uba70 \uc774\ub294 \uc11c\uc6b8\uc2dc\uc758 \uad6c\uac00 \ucd1d 25\uac1c\uc774\uace0 \uc774\ub4e4\uc5d0 \ub300\ud55c \uc218\uce58\uac12\uc73c\ub85c \uad6c\uc131\ub418\uc5c8\uae30 \ub54c\ubd84\uc785\ub2c8\ub2e4. \uccab\ubc88\uc9f8 \uceec\ub7fc\uc778 \uc11c\uc6b8\uc2dc\uc758 \uac01 \uad6c\uc5d0 \ub300\ud55c FID \uac12\uc774\uba70 \ub098\uba38\uc9c0 3\uac1c\uc758 \uceec\ub7fc\uc740 \uc55e\uc11c \uc124\uba85\ud55c 3\uac1c\uc758 \ud56d\ubaa9\uc5d0 \ub300\ud55c \uac12\uc785\ub2c8\ub2e4. \uc774\uc81c \ubc84\ud2bc\uc5d0 \ub300\ud55c \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>\r\nFileInfo fi = new FileInfo(\"d:\/__data__\/chartdata.txt\");\r\nStreamReader sr = fi.OpenText();\r\nIChartLayer chart = axXr1.Layers.GetLayerAsChart(\"chart\");\r\nIShapeMapLayer map = axXr1.Layers.GetLayerAsShapeMap(\"map\");\r\n\r\nwhile (!sr.EndOfStream)\r\n{\r\n\u00a0 \u00a0 string line = sr.ReadLine();\r\n\u00a0 \u00a0 string[] token = line.Split('\\t');\r\n\u00a0 \u00a0 int FID = int.Parse(token[0]);\r\n\u00a0 \u00a0 int value1 = int.Parse(token[1]);\r\n\u00a0 \u00a0 int value2 = int.Parse(token[2]);\r\n\u00a0 \u00a0 int value3 = int.Parse(token[3]);\r\n\r\n\u00a0 \u00a0 ShapeRow row = map.ShapeTable.GetRow(FID);\r\n\u00a0 \u00a0 if (row != null)\r\n\u00a0 \u00a0 {\r\n\u00a0 \u00a0 \u00a0 \u00a0 if (row.Load())\r\n\u00a0 \u00a0\u00a0 \u00a0\u00a0 {\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ICoordinate centroid = row.Centroid;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ValueListCollection vlc = new ValueListCollection();\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ValueList vl = new ValueList();\r\n\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 vl.AddByInteger(value1);\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 vl.AddByInteger(value2);\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 vl.AddByInteger(value3);\r\n\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 vlc.AddValueList(vl);\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 chart.AddChartRow(FID, centroid.X, centroid.Y, vlc);\r\n\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 row.Unload();\r\n\u00a0 \u00a0 \u00a0 \u00a0 }\r\n\u00a0 \u00a0 }\r\n}\r\n\r\nchart.Rebuild();\r\nsr.Close(); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\r\naxXr1.ZoomFullExtent();<\/pre>\n<p>\ud30c\uc77c\uc744 \uc5f4\uace0 \ud30c\uc77c\uc5d0 \ub300\ud55c \ud14d\uc2a4\ud2b8 \uac12\uc744 \uc77d\uc5b4\uc11c \ud544\uc694\ud55c \uac12\uc744 \ud30c\uc2f1\ud558\ub294 C# \ucf54\ub4dc\uc5d0 \ub300\ud55c \uc124\uba85\uc740 \uc0dd\ub7b5\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc911\uc694\ud55c \ubd80\ubd84\uc740 20\ubc88 \ucf54\ub4dc\uc5d0\uc11c \ucc28\ud2b8\uac00 \ud45c\uc2dc\ub420 \uc704\uce58\ub97c \uc5bb\uc5b4\uc624\uace0 \ud14d\uc2a4\ud2b8 \ud30c\uc77c\uc5d0\uc11c \uc77d\uc5b4\ub4e4\uc778 \uc218\uce58 \ub370\uc774\ud130\ub97c 21~28\ucf54\ub4dc\ub97c \ud1b5\ud574 \uc9c0\uc815\ud569\ub2c8\ub2e4. 29\ubc88 \ucf54\ub4dc\uac00 \uc2e4\uc81c\ub85c \uc774\ub807\uac8c \uad6c\ud55c \ucc28\ud2b8\uc758 \ud45c\uc2dc \uc704\uce58\uc640 \uac12\uc744 \uc9c0\uc815\ud558\uc5ec \ucc28\ud2b8 \ud56d\ubaa9\uc744 \ucd94\uac00\ud558\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. \uc544\ub798\uc758 \uadf8\ub9bc\uc740 \uc2e4\ud589 \uacb0\uacfc\uc5d0 \ub300\ud55c \uc774\ubbf8\uc9c0\uc785\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1120296844.jpg\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"510\" height=\"458\" \/><\/p>\n<p>\uc774\uc81c \ub05d\uc73c\ub85c \ucc28\ud2b8\uc758 \ubc94\ub840\ub97c \ucd94\uac00\ud558\uae30 \uc704\ud55c Add Chart Legend \ubc84\ud2bc\uc5d0 \ub300\ud55c \ucf54\ub4dc\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre>\r\nbool bOK = axXr1.Legends.AddLegend(\"chartLegend\", \r\n\u00a0 \u00a0 \u00a0 \u00a0 XrPositionTypeEnum.XrBottomRight);\r\nif(bOK) \r\n{\r\n\u00a0 \u00a0 Legend lgd = axXr1.Legends.GetLegend(\"chartLegend\");\r\n\r\n\u00a0 \u00a0 VerticalLayoutLegendElement vbox = new VerticalLayoutLegendElement();\r\n\u00a0 \u00a0 vbox.Name = \"vbox\";\r\n\u00a0 \u00a0 lgd.SetLegendElement(vbox as ILegendElement);\r\n\r\n\u00a0 \u00a0 TextLegendElement title = new TextLegendElement();\r\n\u00a0 \u00a0 title.Name = \"title\";\r\n\u00a0 \u00a0 title.TextColor = RGB(80, 80, 80);\r\n\u00a0 \u00a0 title.FontName = \"HY\uacac\uace0\ub515\";\r\n\u00a0 \u00a0 title.FontSize = 15;\r\n\u00a0 \u00a0 title.Text = \"\uc5f0\ub839\ub300\ube44\";\r\n\u00a0 \u00a0 title.HorizontalCenter = true;\r\n\u00a0 \u00a0 title.SetMargin(5, 0, 0, 0);\r\n\u00a0 \u00a0 vbox.AddLegendElement(title as ILegendElement);\r\n\r\n\u00a0 \u00a0 HorizontalBarLegendElement hbar = new HorizontalBarLegendElement();\r\n\u00a0 \u00a0 hbar.Name = \"hbar\";\r\n\u00a0 \u00a0 vbox.AddLegendElement(hbar as ILegendElement); \u00a0 \r\n\r\n\u00a0 \u00a0 IPieChartLegendElement pcle = new PieChartLegendElement();\r\n\u00a0 \u00a0 pcle.Name = \"pie\";\r\n\u00a0 \u00a0 pcle.Width = 150;\r\n\u00a0 \u00a0 pcle.Height = 80;\r\n\u00a0 \u00a0 pcle.SetMargin(35, 35, 35, 35);\r\n\u00a0 \u00a0 pcle.SetChartLayer(axXr1.Layers.GetLayerAsChart(\"chart\"));\r\n\u00a0 \u00a0 vbox.AddLegendElement(pcle as ILegendElement);\r\n\r\n\u00a0 \u00a0 axXr1.Legends.Update();\r\n}<\/pre>\n<p>\uc911\uc694\ud55c \ubd80\ubd84\ub9cc\uc744 \uc5b8\uae09\ud558\uba74 25~31\ubc88 \ucf54\ub4dc\uac00 \ud30c\uc774 \ucc28\ud2b8\uc5d0 \ub300\ud55c \ubc94\ub840\uc758 \ud56d\ubaa9\uc744 \uc0dd\uc131\ud558\uc5ec \ubc94\ub840\uc5d0 \ucd94\uac00\ud558\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. DuraMap-Xr\uc740 \ubc94\ub840\uc5d0 \ub300\ud574 \uc0ac\uc6a9\uc790\uac00 \uc6d0\ud558\ub294 \ub2e4\uc591\ud55c \uc694\uad6c \uc0ac\ud56d\uc744 \ub9cc\uc871\uc2dc\ud0a4\uae30 \uc704\ud558\uc5ec \ub808\uc774\uc544\uc6c3 \uae30\ubc18\uc73c\ub85c \ubc94\ub840\uc758 \uad6c\uc131 \ud56d\ubaa9\uc744 \uc870\ub9bd\ud558\ub294 \ud615\ud0dc\ub85c \ubc94\ub840\ub97c \uad6c\uc131\ud558\ub3c4\ub85d \ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uacb0\uacfc\ub294 \uc544\ub798\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\/1253470236.jpg\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"510\" height=\"458\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc218\uce58 \ub370\uc774\ud130\ub85c \uad6c\uc131\ub41c \ub370\uc774\ud130\ub97c \ucc28\ud2b8\uc640 \uac19\uc740 \uadf8\ub798\ud504\ub85c \ud45c\ud604\ud558\uc5ec \uc0ac\uc6a9\uc790\uc758 \uc774\ud574\ub97c \ub192\uc77c \uc218\uac00 \uc788\uc2b5\ub2c8\ub2e4. \uc5ec\uae30\uc5d0 \ub354\ud574 \ud1b5\uacc4 \ub370\uc774\ud130\ub85c \uad6c\uc131\ub418\ub294 \ucc28\ud2b8\ub97c \uc9c0\ub3c4 \uc704\uc5d0 \ud45c\ud604\ud55c\ub2e4\uba74 \ub354\uc6b1 \uc774\ud574\ub3c4\ub97c \ub192\uc77c \uc218 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4. \uc774 \uae00\uc740 DuraMap-Xr\uc5d0\uc11c \ucc28\ud2b8\ub97c \ud45c\ud604\ud558\ub294 API\uc5d0 \ub300\ud574 \uc124\uba85\ud569\ub2c8\ub2e4. \uba3c\uc800 \uc544\ub798\uc640 \uac19\uc774 \ubc84\ud2bc 4\uac1c\uc640 Xr \ub9f5 \ucee8\ud2b8\ub864\uc744 \ud3fc\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4. \ubc84\ud2bc\uc758 \uad6c\uc131 \uc21c\uc11c\ub294 \uc2e4\ud589 \uc21c\uc11c\uc640 \uac19\uc2b5\ub2c8\ub2e4. \uba3c\uc800 Add Map &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=1165\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[GIS] DuraMap-Xr, \ud1b5\uacc4 \ub370\uc774\ud130\ub97c \uc774\uc6a9\ud55c \ucc28\ud2b8\ub9f5&#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-1165","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\/1165","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=1165"}],"version-history":[{"count":1,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1165\/revisions"}],"predecessor-version":[{"id":3349,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1165\/revisions\/3349"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1165"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}