ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

ListTransformations

  • Résumé
  • Syntaxe
  • Exemple de code

Résumé

Returns a list of valid transformation methods. An extent can be used to narrow the list of valid transformation methods for a specific geographic area.

The most appropriate transformation is usually the first one in the returned list. The list is sorted by amount of overlap of the data versus the areas of use of the transformations. If two or more transformations have the same amount of overlap with the data, the transformation accuracy values are used as a secondary sort parameter.

For a list of transformations and their area of use, see the following knowledge base article: How To: Select the correct geographic (datum) transformation when projecting between datums.

Syntaxe

ListTransformations (from_sr, to_sr, {extent})
ParamètreExplicationType de données
from_sr

The starting geographic coordinate system. This can be specified with a SpatialReference object, the name of the spatial reference, or a path to a projection file (.prj).

SpatialReference
to_sr

The final geographic coordinate system. This can be specified with a SpatialReference object, the name of the spatial reference, or a path to a projection file (.prj).

SpatialReference
extent

Only transformations that span the entire extent will be returned. The extent needs to be specified in coordinates from the from_sr. When working with data, the extent on a Describe object can be used.

Extent

Valeur renvoyée

Type de donnéesExplication
String

A list of valid transformation methods.

Exemple de code

ListTransformations example

Use ListTransformations to identify valid transformations for projecting from one coordinate system to another.

import arcpy

from_sr = arcpy.SpatialReference('WGS 1984')
to_sr = arcpy.SpatialReference('NAD 1927 StatePlane California VI FIPS 0406')

extent = arcpy.Extent(-178.217598182, 18.9217863640001,
                      -66.969270909, 71.4062354550001)
transformations = arcpy.ListTransformations(from_sr, to_sr, extent)

Rubriques connexes

  • Sélection d'une transformation appropriée
  • ListSpatialReferences

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2021 Esri. | Confidentialité | Légal