{"id":1228,"date":"2010-07-05T10:08:07","date_gmt":"2010-07-05T10:08:07","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=1228"},"modified":"2021-04-30T17:15:24","modified_gmt":"2021-04-30T08:15:24","slug":"openmap-xr-%ea%b7%b8%eb%a6%ac%eb%93%9c-%eb%a0%88%ec%9d%b4%ec%96%b4-%ec%9d%91%ec%9a%a9idw-%eb%b3%b4%ea%b0%84","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=1228","title":{"rendered":"[GIS] DuraMap-Xr, \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4 \uc751\uc6a9(IDW \ubcf4\uac04)"},"content":{"rendered":"<p>\uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\uc5d0 \ub300\ud55c \uac04\ub2e8\ud55c \uc18c\uac1c\uc5d0 \uc774\uc5b4&#8230; \uadf8\ub7fc \uc5b4\ub5bb\uac8c \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\ub97c \uc0ac\uc6a9\ud558\ub294\uc9c0\ub97c \ud558\ub098\uc758 \uc608\ub97c \ud1b5\ud574 \uc0b4\ud3b4\ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. IDW \ubcf4\uac04 \uae30\ubc95\uc778\ub370\uc694. \uacf5\uac04\uc0c1\uc5d0 \ubd84\ud3ec\ub41c \uae30\uc9c0\uc810(\uc774\ubbf8 \uc54c\uace0 \uc788\ub294 \uacf5\uac04\uc0c1\uc758 \uc704\uce58\uc640 \uc18d\uc131\uac12)\uc744 \uc774\uc6a9\ud574\uc11c \ubbf8\uc9c0\uc810\uc5d0 \ub300\ud55c \uc18d\uc131\uac12\uc744 \ubcf4\uac04\ud574 \ubcf4\ub294 \uc54c\uace0\ub9ac\uc998\uc774 \ubc14\ub85c IDW \uc785\ub2c8\ub2e4. IDW\uc5d0 \ub300\ud55c \uc124\uba85\uacfc \uc218\ud559\uc801 \uacf5\uc2dd\uc740 \uc774 \ube14\ub85c\uadf8\uc5d0\uc11c IDW\ub85c \uac80\uc0c9\ud574 \uc0b4\ud3b4\ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. \uc774\ud6c4\ubd80\ud130\ub294 IDW\uc5d0 \ub300\ud55c \uc54c\uace0\ub9ac\uc998\uc744 \uc774\ud574\ud558\uace0 \uc788\ub2e4\ub294 \uc804\uc81c \uc544\ub798\uc5d0\uc11c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4\ub9cc&#8230;&#8230;. \uc774\ud574\ud558\uc9c0 \ubabb\ud55c\ub2e4\uace0 \ud574\ub3c4 \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\ub97c \uc751\uc6a9\ud558\ub294 \uac83\uc5d0 \ub300\ud55c \uac10\uc740 \ucda9\ubd84\ud788 \uc775\ud788\uc2e4 \uc218 \uc788\uc744\uac70\ub77c \ud310\ub2e8\ub429\ub2c8\ub2e4. \ubb50\ub2c8 \ubb50\ub2c8\ud574\ub3c4&#8230; \ucf54\ub529\uc744 \ud1b5\ud574 \uc0b4\ud3b4 \ubcf4\ub294 \uac83\uc774 \uba38\ub9ac\ub3c4 \ub9d1\uace0.. \uc815\uc2e0 \uac74\uac15\uc5d0\ub3c4 \uc88b\uc744\ub4ef\ud569\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/1\/1033871613.png\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"422\" height=\"94\" \/><br \/>\n\uac01 \ubc84\ud2bc\uc5d0 \ub300\ud574 \uac04\ub2e8\ud788 \uc124\uba85\uc744 \ub4dc\ub9ac\uba74&#8230; Add Points \ubc84\ud2bc\uc740 \uae30\uc9c0\uc810\uc5d0 \ub300\ud55c \ud3ec\uc778\ud2b8\ub97c \ucd94\uac00\ud558\ub294 \ubc84\ud2bc\uc774\uba70.. Add Grid Layer\ub294 \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\ub97c \ucd94\uac00\ud558\ub294 \ubc84\ud2bc\uc774\uba70.. IDW Analysis\ub294 \uae30\uc9c0\uc810\uacfc \ucd94\uac00\ud55c \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\ub97c \uc774\uc6a9\ud574 IDW \ubcf4\uac04\uc744 \uc218\ud589\ud558\ub294 \ubc84\ud2bc\uc785\ub2c8\ub2e4. \ub05d\uc73c\ub85c Color Setting\uc740 \ubd84\uc11d \uacb0\uacfc \uadf8\ub9ac\ub4dc\ub97c \ud45c\ud604\ud558\ub294 \uc0c9\uc0c1\uc744 \ubcc0\uacbd\ud558\ub294 \ubc84\ud2bc\uc785\ub2c8\ub2e4. \uba3c\uc800 Add Points \ucf54\ub4dc\uc5d0 \ub300\ud574 \uac04\ub2e8\ud788 \uc0b4\ud3b4\ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">\r\nbool bOK = axXr1.Layers.AddShapeMapLayer(\"points\", \"d:\/__data__\/Points.shp\");\r\nif(bOK) \r\n{\r\n\u00a0 \u00a0 axXr1.WaitForAllConnections();\r\n\r\n\u00a0 \u00a0 bOK = axXr1.Labels.AddLabel(\"points\", \"{Value2}\");\r\n\u00a0 \u00a0 if(bOK)\r\n\u00a0 \u00a0 {\r\n\u00a0 \u00a0 \u00a0 \u00a0 XrMapLib.Label lbl = axXr1.Labels.GetLabel(\"points\", \"{Value2}\");\r\n\u00a0 \u00a0 \u00a0 \u00a0 lbl.Font.Name = \"\ub9d1\uc740 \uace0\ub515\";\r\n\u00a0 \u00a0 \u00a0 \u00a0 lbl.Font.Color = (uint)ColorTranslator.ToOle(Color.White);\r\n\u00a0 \u00a0 \u00a0 \u00a0 lbl.Font.Size = 21;\r\n\u00a0 \u00a0 \u00a0 \u00a0 lbl.Effect.OutlineColor = (uint)ColorTranslator.ToOle(Color.DarkGray);\r\n\u00a0 \u00a0 \u00a0 \u00a0 lbl.Effect.Enable = true;\r\n\u00a0 \u00a0 \u00a0 \u00a0 lbl.Effect.OutlineWidth = 3;\r\n\u00a0 \u00a0 }\r\n\r\n\u00a0 \u00a0 axXr1.ZoomFullExtent();\r\n}<\/pre>\n<p>\ub124..! points\ub77c\ub294 \ub808\uc774\uc5b4 \uba85\uc73c\ub85c \uc9c0\uc815\ub41c shp \ud30c\uc77c\uc744 \ub808\uc774\uc5b4\ub85c \ucd94\uac00\ud558\ub294 \ucf54\ub4dc\uc785\ub2c8\ub2e4. \ub367\ubd99\uc5ec.. \uc774 shp \ud30c\uc77c\uc5d0\ub294 Value2\ub77c\ub294 \uc218\uce58\uac12 \uc18d\uc131\uc774 \uc874\uc7ac\ud569\ub2c8\ub2e4. \uc989, \uc774 shp \ud30c\uc77c\uc5d0\ub294 \uacf5\uac04\uc0c1\uc758 (x, y) \uc9c0\uc810\uacfc \ud574\ub2f9 \uc218\uce58\uac12\uc744 \ub2f4\uace0 \uc788\ub294 \uacf5\uac04 \ub370\uc774\ud130\uc785\ub2c8\ub2e4. \uc5b4\ub5a4 \uac12\uc774 \ub2f4\uaca8 \uc788\ub294\uc9c0\ub97c \uc0ac\uc6a9\uc790\uc5d0\uac8c \ubcf4\uc5ec\uc8fc\uae30 \uc704\ud574 9\ubc88~15\ubc88 \ucf54\ub4dc\ub97c \ud1b5\ud574 \ub77c\ubca8\uc744 \ud45c\uc2dc\ud558\ub3c4\ub85d \ud588\uc2b5\ub2c8\ub2e4. \uacb0\uacfc\ub294 \uc544\ub798 \uc774\ubbf8\uc9c0\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\/1004556485.png\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"400\" height=\"399\" \/><br \/>\n\uc774\uc81c \ub2e4\uc74c\uc73c\ub85c Add Grid Layer \ubc84\ud2bc\uc5d0 \ub300\ud55c \ucf54\ub4dc\ub97c \uc0b4\ud3b4\ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. \uc774\ubbf8 \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\uc5d0 \ub300\ud55c \uc18c\uac1c \uae00\uc5d0\uc11c \uc0b4\ud3b4\ubcf4\uc558\uc73c\ubbc0\ub85c \uc5ed\uc2dc \uac04\ub2e8\ud558\uac8c \uc124\uba85\ud558\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">\r\nExtent MBR = axXr1.MapExtent;\r\n\r\nint ColumnCount = 500;\r\ndouble Resolution = (MBR.MaxX - MBR.MinX) \/ ColumnCount;\r\nint RowCount = (int)((MBR.MaxY - MBR.MinY) \/ Resolution);\r\nstring ConnectionString =\r\n\u00a0 \u00a0 \u00a0 \u00a0 \"OnMemory=1;MinX=\" + MBR.MinX + \";MinY=\" + MBR.MinY +\r\n\u00a0 \u00a0 \u00a0 \u00a0 \";Resolution=\" + Resolution +\r\n\u00a0 \u00a0 \u00a0 \u00a0 \";ColumnsCount=\" + ColumnCount + \";RowsCount=\" + RowCount + \r\n\u00a0 \u00a0 \u00a0 \u00a0 \";NullValue=-9999\";\r\n\r\nbool bOK = axXr1.Layers.AddGridMapLayer(\"grid\", ConnectionString);\r\nif (bOK)\r\n{\r\n\u00a0 \u00a0 axXr1.WaitForAllConnections();\r\n\u00a0 \u00a0 axXr1.ZoomFullExtent();\r\n}<\/pre>\n<p>\uc704\uc758 \ucf54\ub4dc\ub294 \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\ub97c \ucd94\uac00\ud558\ub294 \ucf54\ub4dc\ub85c\uc368 \uba3c\uc800 \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\uc5d0 \ub300\ud55c \uc815\ubcf4\ub97c \uc218\uc9d1\ud558\ub294 \ucf54\ub4dc\uac00 \uc2e4\ud589\ub429\ub2c8\ub2e4. 1\ubc88 \ucf54\ub4dc\ub294 \ud604\uc7ac \ud654\uba74\uc5d0 \ub300\ud55c MBR\uc744 \uc5bb\ub294 \ucf54\ub4dc\uc774\uace0 3\ubc88 \ucf54\ub4dc\ub294 \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\uc758 \uac00\ub85c \uc140 \uac1c\uc218\ub97c 500\uac1c\ub85c \uc9c0\uc815\ud558\uae30 \uc704\ud55c \ubcc0\uc218\uc785\ub2c8\ub2e4. 4\ubc88 \ucf54\ub4dc\ub294 \uc140\uc758 \ud574\uc0c1\ub3c4 \uac12\uc785\ub2c8\ub2e4. \uc138\ub85c \uc140 \uac1c\uc218\ub294 \uc55e\uc11c \uad6c\ud55c MBR\uacfc \uac00\ub85c \uc140 \uac1c\uc218 \uadf8\ub9ac\uace0 \ud574\uc0c1\ub3c4\ub97c \ud1b5\ud574 \uacc4\uc0b0\ud558\uba70 5\ubc88 \ucf54\ub4dc\uc5d0 \ud574\ub2f9\ub429\ub2c8\ub2e4. \uc774\ub807\uac8c \uc9c0\uc815\ud55c \uac12\uc744 \ud1b5\ud574 6\ubc88 \ucf54\ub4dc\uc5d0\uc11c \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\uc758 \uc5f0\uacb0\ubb38\uc790\uc5f4\uc744 \uc9c0\uc815\ud569\ub2c8\ub2e4. \uba54\ubaa8\ub9ac \uc0c1\uc5d0\uc11c\ub9cc \uc0dd\uc131\ub418\uba70 \ud30c\uc77c\uc744 \uc800\uc7a5\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \ubcf4\ub2e4 \uc790\uc138\ud55c \ub0b4\uc6a9\uc740 \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4 \uc18c\uac1c \uae00\uc744 \ucc38\uc870\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. \uc544\ubb34\ub7f0 \ub370\uc774\ud130 \uac12\ub3c4 \uc9c0\uc815\ud558\uc9c0 \uc54a\uc740 \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\ub97c \ucd94\uac00\ud588\uc73c\ubbc0\ub85c \ud654\uba74\uc0c1\uc758 \uacb0\uacfc\ub294 \ub2ec\ub77c\uc9c0\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc774\uc81c IDW Analysis \ubc84\ud2bc\uc5d0 \ub300\ud55c \ucf54\ub4dc\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">\r\nShapeMapLayer pointsLyr = axXr1.Layers.GetLayerAsShapeMap(\"points\");\r\nGridMapLayer gridLyr = axXr1.Layers.GetLayerAsGridMap(\"grid\");\r\nif (pointsLyr != null &amp;&amp; gridLyr != null)\r\n{\r\n\u00a0 \u00a0 AttributeTable attTbl = pointsLyr.AttributeTable;\r\n\u00a0 \u00a0 ShapeTable shpTbl = pointsLyr.ShapeTable;\r\n\r\n\u00a0 \u00a0 int FieldIndex = attTbl.FieldSet.GetFieldIndex(\"Value2\");\r\n\u00a0 \u00a0 int RowCount = shpTbl.RowCount;\r\n\u00a0 \u00a0 int nCellRowCount = gridLyr.Cells.RowCount;\r\n\u00a0 \u00a0 int nCellColumnCount = gridLyr.Cells.ColumnCount;\r\n\u00a0 \u00a0 double GridMinX = gridLyr.MBR.MinX;\r\n\u00a0 \u00a0 double GridMinY = gridLyr.MBR.MinY;\r\n\u00a0 \u00a0 double Resolution = gridLyr.Cells.Resolution;\r\n\u00a0 \u00a0 double power = 1.3;\r\n\r\n\u00a0 \u00a0 for (int iRow = 0; iRow &lt; nCellRowCount; ++iRow)\r\n\u00a0 \u00a0 {\r\n\u00a0 \u00a0 \u00a0 \u00a0 for (int iColumn = 0; iColumn &lt; nCellColumnCount; ++iColumn)\r\n\u00a0 \u00a0 \u00a0 \u00a0 {\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 double CellX = GridMinX + (double)iColumn * Resolution \r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 + Resolution \/ 2.0;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 double CellY = GridMinY + (double)iRow * Resolution\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 + Resolution \/ 2.0;\r\n\r\n\u00a0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 double A = 0.0;\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 double B = 0.0;\r\n\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 for (int FID = 0; FID &lt; RowCount; ++FID)\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 {\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ShapeRow sRow = shpTbl.GetRow(FID);\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 AttributeRow aRow = attTbl.GetRow(FID);\r\n\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 if (sRow.Load() &amp;&amp; aRow.Load())\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 {\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Coordinate coord = sRow.GetVertex(0);\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 double value = aRow.GetValueAsFloat(FieldIndex);\r\n\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 double W = 1.0 \/ Math.Pow(Math.Sqrt((coord.X - CellX) \r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 * (coord.X - CellX) + (coord.Y - CellY) \r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 * (coord.Y - CellY)), power);\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 A += (W * value);\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 B += (W);\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }\r\n\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 gridLyr.Cells.SetValue(iRow, iColumn, A\/B);\r\n\u00a0 \u00a0 \u00a0 \u00a0 }\r\n\u00a0 \u00a0 }\r\n\r\n\u00a0 \u00a0 gridLyr.Cells.Normalize();\r\n\u00a0 \u00a0 gridLyr.EnableCacheBitmap = true;\r\n\u00a0 \u00a0 axXr1.Update();\r\n}<\/pre>\n<p>Shape \uc9c0\ub3c4 \ub808\uc774\uc5b4\uc758 \uacf5\uac04 \ub370\uc774\ud130(x,y \uc88c\ud45c)\uc640 \uc18d\uc131 \ub370\uc774\ud130\uc5d0 \uc811\uadfc\ud558\uae30 \uc704\ud574 ShapeTable\uacfc AttributeTable \uac1d\uccb4\ub97c \uc5bb\uc5b4\uc635\ub2c8\ub2e4. \uadf8\ub9ac\uace0 \uc774 \uac1d\uccb4\ub97c \ud1b5\ud574 IDW \uacc4\uc0b0\uc2dd\uc744 \uc218\ud589\ud569\ub2c8\ub2e4. IDW\uc5d0 \ub300\ud55c \uacc4\uc0b0\uc2dd\uc740 \uc774 \ube14\ub85c\uadf8\uc5d0\uc11c IDW\ub85c \uac80\uc0c9\ud574 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. \uc18c\uc2a4 \ucf54\ub4dc\ub294 \uae38\uc9c0\ub9cc.. IDW \uacc4\uc0b0\uc744 \uc704\ud55c \ucf54\ub4dc\uac00 \ub300\ubd80\ubd84\uc744 \ucc28\uc9c0 \ud558\ubbc0\ub85c \uc774 \ubd80\ubd84\uc5d0 \ub300\ud55c \uc790\uc138\ud55c \uc124\uba85\uc740 \uc0dd\ub7b5\ud558\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. IDW\ub97c \uacc4\uc0b0\ud558\uae30 \uc704\ud55c power \uac12\uc744 1.3\uc73c\ub85c \uc9c0\uc815\ud588\ub2e4\ub294 \uac83\ub9cc \uc5b8\uae09\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ub610\ud55c \uc704\uc758 \ucf54\ub4dc\ub294 IDW \ubcf4\uac04 \uc5f0\uc0b0\uc744 \ube60\ub974\uac8c \ud558\uae30 \uc704\ud55c \uc804\ucc98\ub9ac\ub97c \ud558\uc9c0 \uc54a\uace0 \ucd5c\ub300\ud55c \ucf54\ub4dc\ub97c \ub2e8\uc21c\ud558\uac8c \uc791\uc131\ud558\uc5ec \uc18d\ub3c4\uac00 \uc81c\ubc95 \ub290\ub9bd\ub2c8\ub2e4\ub9cc.. \uc57d\uac04\uc758 \uc804\ucc98\ub9ac \uc5f0\uc0b0\uc744 \uc120\ud589\ud558\uba74 \ud6e8\uc52c \ube60\ub978 \uc5f0\uc0b0 \uc18d\ub3c4\ub97c \uc5bb\uc744 \uc218 \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\/1238975542.png\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"510\" height=\"509\" \/><br \/>\n\ub124.. \uacb0\uacfc\ub97c \ubcf4\uc2dc\uba74 \uae30\uc9c0\uc810\uc744 \uc774\uc6a9\ud558\uc5ec \uadf8 \uc774\uc678\uc758 \ubbf8\uc9c0\uc810\uc5d0 \ub300\ud55c \uac12\uc744 \ubcf4\uac04\ud558\uc5ec \uac01 \uc140\uc5d0 \ubcf4\uac04\ub41c \uac12\uc744 \ub2f4\uace0 \uc788\uc2b5\ub2c8\ub2e4.\uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \uc704\uc758 \uacb0\uacfc\ucc98\ub7fc Greyscale\ub85c \uc140\uac12\uc744 \ud45c\ud604\ud558\uc9c0\ub9cc.. \uc0ac\uc6a9\uc790\uac00 \uc6d0\ud558\ub294 \uc0c9\uc0c1\uc73c\ub85c\ub3c4 \ud45c\ud604\uc774 \uac00\ub2a5\ud558\uba70 \uc774 \uae30\ub2a5\uc774 \ubc14\ub85c Color Setting \ubc84\ud2bc\uc785\ub2c8\ub2e4. \ucf54\ub4dc\ub97c \uc0b4\ud3b4\ubcf4\uba74&#8230;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\">\r\nGridMapLayer gridLyr = axXr1.Layers.GetLayerAsGridMap(\"grid\");\r\nif (gridLyr != null)\r\n{\r\n\u00a0 \u00a0 gridLyr.ColorTable.Clear();\r\n\r\n\u00a0 \u00a0 int cntColorStep = 64;\r\n\u00a0 \u00a0 float R1 = 0, G1 = 255, B1 = 0;\r\n\u00a0 \u00a0 float R2 = 255, G2 = 255, B2 = 0;\r\n\u00a0 \u00a0 float R3 = 255, G3 = 0, B3 = 0;\r\n\r\n\u00a0 \u00a0 float R, G, B;\r\n\u00a0 \u00a0 float StepR, StepG, StepB;\r\n\r\n\u00a0 \u00a0 R = R1; \r\n\u00a0 \u00a0 G = G1; \r\n\u00a0 \u00a0 B = B1;\r\n\r\n\u00a0 \u00a0 StepR = (R2 - R1) \/ cntColorStep; \r\n\u00a0 \u00a0 StepG = (G2 - G1) \/ cntColorStep;\r\n\u00a0 \u00a0 StepB = (B2- B1) \/ cntColorStep; \r\n\r\n\u00a0 \u00a0 for (int i = 0; i &lt; cntColorStep; i++)\r\n\u00a0 \u00a0 {\r\n\u00a0 \u00a0 \u00a0 \u00a0 R += StepR;\r\n\u00a0 \u00a0 \u00a0 \u00a0 G += StepG;\r\n\u00a0 \u00a0 \u00a0 \u00a0 B += StepB;\r\n\u00a0 \u00a0 \u00a0 \u00a0 gridLyr.ColorTable.AddColor(255, (byte)R, (byte)G, (byte)B);\r\n\u00a0 \u00a0 }\r\n\r\n\u00a0 \u00a0 R = R2;\r\n\u00a0 \u00a0 G = G2;\r\n\u00a0 \u00a0 B = B2;\r\n\r\n\u00a0 \u00a0 StepR = (R3 - R2) \/ cntColorStep;\r\n\u00a0 \u00a0 StepG = (G3 - G2) \/ cntColorStep;\r\n\u00a0 \u00a0 StepB = (B3 - B2) \/ cntColorStep;\r\n\r\n\u00a0 \u00a0 for (int i = 0; i &lt; cntColorStep; i++)\r\n\u00a0 \u00a0 {\r\n\u00a0 \u00a0 \u00a0 \u00a0 gridLyr.ColorTable.AddColor(255, (byte)R, (byte)G, (byte)B);\r\n\u00a0 \u00a0 \u00a0 \u00a0 R += StepR;\r\n\u00a0 \u00a0 \u00a0 \u00a0 G += StepG;\r\n\u00a0 \u00a0 \u00a0 \u00a0 B += StepB;\r\n\u00a0 \u00a0 }\r\n\r\n\u00a0 \u00a0 gridLyr.EnableCacheBitmap = false;\r\n\u00a0 \u00a0 gridLyr.EnableCacheBitmap = true;\r\n\u00a0 \u00a0 axXr1.Update();\r\n}<\/pre>\n<p>\uc0c9\uc0c1\uc744 \uad6c\uc131\ud558\ub294 \ud575\uc2ec \ud0a4 \ud3ec\uc778\ud2b8\ub294 \uba3c\uc800 \uae30\uc874\uc758 Greyscale \uc0c9\uc0c1\ub4e4\uc744 \uc81c\uac70\ud558\uae30 \uc704\ud574 4\ubc88 \ucf54\ub4dc\uc5d0\uc11c \ucc98\ub7fc \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\uc758 ColorTable\uc758 Clear \ub9e4\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uace0 \uc774 ColorTable\uc5d0 \uc0ac\uc6a9\uc790\uac00 \uc6d0\ud558\ub294 \uc0c9\uc0c1\uc744 ColorTable\uc758 AddColor \ub9e4\uc11c\ub4dc\ub97c \ud1b5\ud574 \ucd94\uac00\ud558\uae30\ub9cc \ud558\uba74\ub429\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\/1215181639.png\" alt=\"\uc0ac\uc6a9\uc790 \uc0bd\uc785 \uc774\ubbf8\uc9c0\" width=\"510\" height=\"509\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\uc5d0 \ub300\ud55c \uac04\ub2e8\ud55c \uc18c\uac1c\uc5d0 \uc774\uc5b4&#8230; \uadf8\ub7fc \uc5b4\ub5bb\uac8c \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4\ub97c \uc0ac\uc6a9\ud558\ub294\uc9c0\ub97c \ud558\ub098\uc758 \uc608\ub97c \ud1b5\ud574 \uc0b4\ud3b4\ubcf4\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. IDW \ubcf4\uac04 \uae30\ubc95\uc778\ub370\uc694. \uacf5\uac04\uc0c1\uc5d0 \ubd84\ud3ec\ub41c \uae30\uc9c0\uc810(\uc774\ubbf8 \uc54c\uace0 \uc788\ub294 \uacf5\uac04\uc0c1\uc758 \uc704\uce58\uc640 \uc18d\uc131\uac12)\uc744 \uc774\uc6a9\ud574\uc11c \ubbf8\uc9c0\uc810\uc5d0 \ub300\ud55c \uc18d\uc131\uac12\uc744 \ubcf4\uac04\ud574 \ubcf4\ub294 \uc54c\uace0\ub9ac\uc998\uc774 \ubc14\ub85c IDW \uc785\ub2c8\ub2e4. IDW\uc5d0 \ub300\ud55c \uc124\uba85\uacfc \uc218\ud559\uc801 \uacf5\uc2dd\uc740 \uc774 \ube14\ub85c\uadf8\uc5d0\uc11c IDW\ub85c \uac80\uc0c9\ud574 \uc0b4\ud3b4\ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. \uc774\ud6c4\ubd80\ud130\ub294 IDW\uc5d0 \ub300\ud55c \uc54c\uace0\ub9ac\uc998\uc744 \uc774\ud574\ud558\uace0 \uc788\ub2e4\ub294 \uc804\uc81c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=1228\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;[GIS] DuraMap-Xr, \uadf8\ub9ac\ub4dc \ub808\uc774\uc5b4 \uc751\uc6a9(IDW \ubcf4\uac04)&#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-1228","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\/1228","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=1228"}],"version-history":[{"count":3,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1228\/revisions"}],"predecessor-version":[{"id":11092,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/1228\/revisions\/11092"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1228"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}