| | |
| | | if (null != imgLayer) { |
| | | imgLayer.ImageryPyramidFormat = 0; |
| | | |
| | | var poly = VBArray(project.Polygons.ImportPolygons(shp)).toArray()[0]; |
| | | poly.AttachToLayer(imgLayer); |
| | | poly.type = 2; |
| | | var poly1 = VBArray(project.Polygons.ImportPolygons(shp)).toArray()[0]; |
| | | poly1.AttachToLayer(imgLayer); |
| | | poly1.type = 2; |
| | | |
| | | var poly2 = VBArray(project.Polygons.ImportPolygons(shp)).toArray()[0]; |
| | | poly2.AttachToLayer(imgLayer); |
| | | poly2.type = 0; |
| | | } |
| | | |
| | | var eleLayer = project.Layers.InsertLayer("D:\\LF\\data\\DEM\\DEM.tif", "Elevation"); |
| | |
| | | project.CreateResolutionPyramids(); |
| | | |
| | | //project.Save(); |
| | | //project.CreateMPT(); |
| | | project.CreateMPT(); |
| | | |
| | | //TerraBuilder.ExitWhenFinished(); |
| | | TerraBuilder.ExitWhenFinished(); |
| | | } catch (ex) { |
| | | alert(ex.message); |
| | | } |