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

GetUnqualifiedName

  • Résumé
  • Discussion
  • Syntaxe
  • Exemple de code

Résumé

Returns the unqualified name of the dataset sourced to the given input layer.

Licence :

This function requires an ArcGIS Aviation license.

Discussion

You can use this function to get the unqualified name of the dataset behind an ArcMap layer. When using an enterprise geodatabase, visual specifications and the aviation annotation functions require the use of unqualified feature class names. Since the name of a layer in an MXD may be different from its underlying feature class name, GetUnqualifiedName should be used to also ensure that the actual feature class name is used rather than the layer name. Similarly, different databases may fully qualify a feature class' name with additional information (such as database and user). GetUnqualifiedName ensures that if the layer is sourced to such a database, only the feature class name will be used.

Syntaxe

GetUnqualifiedName (layer)
ParamètreExplicationType de données
layer

The layer from whose dataset the unqualified name will be retrieved.

Layer

Valeur renvoyée

Type de donnéesExplication
String

The unqualified name of the input layer’s dataset.

Exemple de code

GetUnqualifiedName example

This script returns the unqualified name of the specified layer.

# Name: GetUnqualifiedNameExample.py
# Description: The GetUnqualifiedName function returns the unqualified 
#   name of the dataset sourced to the given input layer.
# Author: Esri
# Date: April 2015

# Import mapping and aviation charting modules
import arcpy
import arcpyproduction

# Check out Aviation license
arcpy.CheckOutExtension("Aeronautical")

# retrieve layers from mxd
mxd = arcpy.mapping.MapDocument("CURRENT")
layers = arcpy.mapping.ListLayers(mxd)

# print each layer's name and its dataset's unqualified name
if len(layers) > 0:
    for l in layers:
        unqualified_name = arcpyproduction.aviation.charting.GetUnqualifiedName(l)
        print l.name, unqualified_name

# Check in Aviation license
arcpy.CheckInExtension("Aeronautical")

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