ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Dataset properties

  • Summary
  • Properties
  • Code sample

Summary

The Describe function returns the following properties for Datasets.

Dataset properties are available in many types of Describe objects.

Properties

PropertyExplanationData Type
canVersion
(Read Only)

Indicates whether the dataset can be versioned.

Boolean
changeTracked
(Read Only)

Indicates if this dataset is change tracked.

Boolean
datasetType
(Read Only)

Returns the type of dataset being described

  • Any
  • Container
  • Geo
  • FeatureDataset
  • FeatureClass
  • PlanarGraph
  • GeometricNetwork
  • Topology
  • Text
  • Table
  • RelationshipClass
  • RasterDataset
  • RasterBand
  • TIN
  • CadDrawing
  • RasterCatalog
  • Toolbox
  • Tool
  • NetworkDataset
  • Terrain
  • RepresentationClass
  • CadastralFabric
  • SchematicDataset
  • Locator
String
DSID
(Read Only)

The ID of the dataset.

Integer
extent
(Read Only)

The Extent object.

Note:

extent is available for spatial datasets only.

Extent
isArchived
(Read Only)

Indicates whether the dataset has been archived. isArchived is only supported for an enterprise geodatabase.

Boolean
isVersioned
(Read Only)

Indicates whether the dataset is versioned.

Boolean
MExtent
(Read Only)

A space-delimited string (MMin, MMax).

Note:

MExtent is available for spatial datasets only.

String
spatialReference
(Read Only)

Returns the SpatialReference object for the dataset.

Note:

spatialReference is available for spatial datasets only.

SpatialReference
ZExtent
(Read Only)

A space-delimited string (ZMin, ZMax).

Note:

ZExtent is available for spatial datasets only.

String

Code sample

Dataset properties example (stand-alone script)

The following stand-alone script displays dataset properties for a shapefile.

import arcpy

# Create a Describe object from the shapefile
#
desc = arcpy.Describe("C:/temp/xy.shp")

# Print dataset properties
#
print("Dataset Type: {0}".format(desc.datasetType))
print("Extent:\n  XMin: {0}, XMax: {1}, YMin: {2}, YMax: {3}".format(
    desc.extent.XMin, desc.extent.XMax, desc.extent.YMin, desc.extent.YMax))
print("MExtent: {0}".format(desc.MExtent))
print("ZExtent: {0}".format(desc.ZExtent))

print("Spatial reference name: {0}:".format(desc.spatialReference.name))

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

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

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal