ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Describe 对象属性

  • 描述
  • 属性
  • 代码示例

描述

Describe 函数将返回所有 Describe 对象的以下属性。

属性

属性说明数据类型
baseName
(只读)

文件基本名称

String
catalogPath
(只读)

数据路径

String
children
(只读)

子元素列表

Describe
childrenExpanded
(只读)

指示子元素是否已扩展

Boolean
dataElementType
(只读)

元素的元素类型

String
dataType
(只读)

元素类型

String
extension
(只读)

文件扩展名

String
file
(只读)

文件名称

String
fullPropsRetrieved
(只读)

指示是否已检索完整属性

Boolean
metadataRetrieved
(只读)

指示是否已检索元数据

Boolean
name
(只读)

元素的用户分配名称

String
path
(只读)

文件路径

String

代码示例

Describe 对象属性示例(独立脚本)

显示文件地理数据库的某些 Describe 对象属性。

import arcpy

# Create a Describe object
#
desc = arcpy.Describe("C:/Data/chesapeake.gdb")

# Print some Describe Object properties
#
if hasattr(desc, "name"):
    print "Name:        " + desc.name
if hasattr(desc, "dataType"):
    print "DataType:    " + desc.dataType
if hasattr(desc, "catalogPath"):
    print "CatalogPath: " + desc.catalogPath

# Examine children and print their name and dataType
#
print "Children:"
for child in desc.children:
    print "\t%s = %s" % (child.name, child.dataType)

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2021 Esri. | 隐私政策 | 法律声明