LAS から TIN を作成

投稿日:2016/9/1 (木) 更新日:

Sub GetInterpolateShapeFromLAS()
    Dim pMxDocument As IMxDocument
    Set pMxDocument = ThisDocument
    Dim pLasDatasetLayer As ILasDatasetLayer
    Set pLasDatasetLayer = pMxDocument.FocusMap.Layer(0)
    Dim pSurface As ISurface
    Set pSurface = pLasDatasetLayer.GetCurrentSurface
    Dim pLasDataset As ILasDataset
    Set pLasDataset = pLasDatasetLayer.Dataset
    Dim pLasSurface As ILasSurface
    Set pLasSurface = pLasDataset.CreateDynamicSurface
    Dim pLasFilter As ILasFilter
    Set pLasFilter = New LasFilter
    Set pLasFilter.AreaOfInterest = pMxDocument.ActiveView.Extent   '現在のマップ範囲
    Dim pTin As ITin
    Set pTin = pLasSurface.AsTin(Nothing, pLasFilter, 1, esriTinPointSelectionRandom, 1)
    'NIM097087 In the ILasSurface.AsTin method and the ILasSurface.AsRaster method, ZFactor is not applied to constraints.
End Sub


-プログラミング, ArcGIS
-, ,

Copyright© WINGFIELD since1981 , 2019 All Rights Reserved.