ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS for Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

Dataset properties

  • Resumen
  • Propiedades
  • Muestra de código

Resumen

The Describe function returns the following properties for Datasets.

Dataset properties are available in many types of Describe objects.

Propiedades

PropiedadExplicaciónTipo de datos
canVersion
(Sólo lectura)

Indicates whether the dataset can be versioned.

Boolean
changeTracked
(Sólo lectura)

Indicates if this dataset is change tracked.

Boolean
datasetType
(Sólo lectura)

Returns the type of dataset being described

  • Any
  • CadastralFabric
  • CadDrawing
  • Container
  • DiagramDataset
  • FeatureClass
  • FeatureDataset
  • Geo
  • GeometricNetwork
  • LasDataset
  • Locator
  • MosaicDataset
  • NetworkDataset
  • ParcelDataset
  • PlanarGraph
  • RasterBand
  • RasterCatalog
  • RasterDataset
  • RelationshipClass
  • RepresentationClass
  • SchematicDataset
  • Table
  • Text
  • TIN
  • Tool
  • Toolbox
  • Topology
  • Terrain
String
DSID
(Sólo lectura)

The ID of the dataset.

Integer
extent
(Sólo lectura)

The Extent object.

Nota:

extent is available for spatial datasets only.

Extent
isArchived
(Sólo lectura)

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

Boolean
isVersioned
(Sólo lectura)

Indicates whether the dataset is versioned.

Boolean
MExtent
(Sólo lectura)

A space-delimited string (MMin, MMax).

Nota:

MExtent is available for spatial datasets only.

String
spatialReference
(Sólo lectura)

Returns the SpatialReference object for the dataset.

Nota:

spatialReference is available for spatial datasets only.

SpatialReference
ZExtent
(Sólo lectura)

A space-delimited string (ZMin, ZMax).

Nota:

ZExtent is available for spatial datasets only.

String

Muestra de código

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

  • Inicio
  • Documentación
  • Soporte

Plataforma ArcGIS

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

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2019 Esri. | Privacidad | Legal