laptop and a wrench

Bogue

IMapGeographicTransformations.GeographicTransformations is not able to retrieve geo transformations for a map in all cases.

Dernière publication: August 31, 2014 ArcGIS for Desktop
Numéro d’ID de bogue NIM067962
EnvoiMay 10, 2011
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée10.0
Langue du programmeC#
Système d’exploitationWindows OS
Version du système d’exploitation7 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Solution de contournement

This code will return correct transformation information:Sub Test() Dim pMxD As IMxDocument Set pMxD = ThisDocument Dim pMap As IMap Set pMap = pMxD.FocusMap Dim pMGT As IMapGeographicTransformations Set pMGT = pMap Dim pGTOS As IGeoTransformationOperationSet Set pGTOS = pMGT.GeographicTransformations Dim pGT As IGeoTransformation Dim direction As esriTransformDirection pGTOS.Reset Dim i As Integer Debug.Print "Projection Count - " & pGTOS.Count For i = 0 To pGTOS.Count - 1 pGTOS.Next direction, pGT Debug.Print <a href="http://pGT.Name" target="_blank">pGT.Name</a> NextEnd SubBut the code will fail to return transformation information if the "pGTOS.Reset" is not called first.If this is expected then please mention this in documentation that calling the 'Reset' method is required, otherwise no transformation information from the map document would be returned.

Étapes pour reproduire

ID de bogue: NIM067962

Logiciel:

  • ArcGIS for Desktop

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement