ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Справка
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Картографическая платформа вашей организации

ArcGIS Desktop

Полноценная профессиональная ГИС

ArcGIS Enterprise

ГИС предприятия

ArcGIS for Developers

Инструменты для встраивания приложений с местоположениями

ArcGIS Solutions

Бесплатные шаблоны карт и приложений для отрасли

ArcGIS Marketplace

Получение приложения и данных для вашей организации.

  • Документация
  • Поддержка
Esri
  • Войти
user
  • Мой профиль
  • Выход

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

GetUnqualifiedName

  • Краткая информация
  • Описание
  • Синтаксис
  • Пример кода

Краткая информация

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

Описание

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.

Синтаксис

GetUnqualifiedName (layer)
ПараметрОбъяснениеТип данных
layer

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

Layer

Возвращаемое значение

Тип данныхОбъяснение
String

The unqualified name of the input layer’s dataset.

Пример кода

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

  • На главную
  • Документация
  • Поддержка

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

Об Esri

  • О нас
  • Карьера
  • Блог Esri
  • Конференция пользователей
  • Саммит разработчиков
Esri
Расскажите нам, что вы думаете.
Copyright © 2020 Esri. | Конфиденциальность | Правовая информация