データ フレームの地理座標系変換を取得

 2016/9/1 (木)    

Public Sub GetGeoTransformationFromMap()
    Dim pMxDocument As IMxDocument
    Set pMxDocument = ThisDocument
     
    Dim pMapGeographicTransformations As IMapGeographicTransformations
    Set pMapGeographicTransformations = pMxDocument.FocusMap
     
    Dim pGeoTransformationOperationSet As IGeoTransformationOperationSet
    Set pGeoTransformationOperationSet = pMapGeographicTransformations.GeographicTransformations
     
    Dim pGeoTransformation  As IGeoTransformation
     
    pGeoTransformationOperationSet.Reset
     
    pGeoTransformationOperationSet.Next esriTransformForward, pGeoTransformation
     
    Do Until pGeoTransformation Is Nothing
        Debug.Print pGeoTransformation.Name
         
        pGeoTransformationOperationSet.Next esriTransformForward, pGeoTransformation
    Loop
     
    'pGeoTransformationOperationSet.RemoveAll
     
End Sub

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.