laptop and a wrench

Bug

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

Zuletzt veröffentlicht: August 31, 2014 ArcGIS for Desktop
Bug-ID-Nummer NIM067962
EingereichtMay 10, 2011
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS for Desktop
Gefunden in Version10.0
ProgrammspracheC#
BetriebssystemWindows OS
Betriebssystemversion7 64 Bit
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

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.

Schritte zur Reproduzierung

Bug-ID: NIM067962

Software:

  • ArcGIS for Desktop

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln