ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • ヘルプ
  • Sign Out
ArcGIS Desktop

ArcGIS Online

組織のマッピング プラットフォーム

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS for Developers

位置情報利用アプリの開発ツール

ArcGIS Solutions

各種業界向けの無料のテンプレート マップおよびテンプレート アプリケーション

ArcGIS Marketplace

組織で使えるアプリとデータを取得

  • ドキュメント
  • サポート
Esri
  • サイン イン
user
  • マイ プロフィール
  • サイン アウト

Help

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • その他...

Layer properties

  • サマリー
  • プロパティ
  • コードのサンプル

サマリー

The Describe function returns the following properties for Layers. Dataset Properties are also supported, as well as the properties of the data type, the layer references. For example, a layer that references a feature class will have access to FeatureClass Properties, while a layer that references a raster dataset will have access to Raster Dataset Properties.

  • If the data element being described is a layer in ArcMap or an in-memory layer, then the dataType returned gives information about the data source of layer being described. Some examples of this are "MosaicLayer", "FeatureLayer", and "GroupLayer".
  • If the data element being described is a .lyr file, a dataType of "Layer" is returned.
  • You can get information about the layer contained by a .lyr file by inspecting the Describe Object returned by the layer property.

プロパティ

プロパティ説明データ タイプ
dataElement
(読み取り専用)

The Describe object of the data source to which the layer refers.

Describe
featureClass
(読み取り専用)

The Describe object of the feature class associated with the feature layer.

Describe
FIDSet
(読み取り専用)

A semicolon-delimited string of selected feature IDs (record numbers).

String
fieldInfo
(読み取り専用)

The FieldInfo object (property set) of the layer.

FieldInfo
layer
(読み取り専用)

The Describe object of the Layer within a .lyr file.

Describe
nameString
(読み取り専用)

The name of the layer.

String
table
(読み取り専用)

The Describe object of the Table within a FeatureLayer.

Describe
whereClause
(読み取り専用)

The layer's definition query WHERE clause.

String

コードのサンプル

Layer properties example (stand-alone script)

The following stand-alone script displays some layer properties from an in-memory feature layer.

import arcpy

# Create an in memory feature layer from a feature class.
#
arcpy.MakeFeatureLayer_management(
        "C:/data/chesapeake.gdb/bayshed",
        "mainlines_layer")

# Create a Describe object from the feature layer.
#
desc = arcpy.Describe("mainlines_layer")

# Print some properties of the feature layer, and its featureclass.
#
print "Name String:        " + desc.nameString
print "Where Clause:       " + desc.whereClause
print "Feature class type: " + desc.featureClass.featureType
Layer properties example 2(stand-alone script)

The following stand-alone script displays some layer properties from a .lyr file.

import arcpy


# Create a Describe object from a .lyr file.
#
desc = arcpy.Describe("c:/data/water_pipes.lyr")

# Print some properties of the feature layer
#
print "Name String:        " + desc.nameString
print "Where Clause:       " + desc.whereClause

# Find out if the layer represents a feature class
if desc.dataElement.dataType == "FeatureClass":
    print "Feature class:      " + desc.dataElement.catalogPath
    print "Feature class Type: " + desc.featureClass.featureType
else:
    print "Not a regular feature class"

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS プラットフォーム

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

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2019 Esri. | プライバシー | リーガル