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

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