Resumen
The Describe function returns the following properties for geostatistical layers. The Layer property group is also supported.
For a geostatistical layer, the Describe dataType property returns a value of "GALayer".
Propiedades
Propiedad | Explicación | Tipo de datos |
areaOfInterest (Sólo lectura) | The extent of the geostatistical layer. | Extent |
dataCollection (Sólo lectura) | A value table of the datasets used to create the geostatistical layer. It is recommended that you instead use the GeostatisticalDatasets class to determine the source dataset. | ValueTable |
Muestra de código
The following stand-alone script displays some layer properties from a geostatistical layer:
# Name: Describe_GA_Layer_Example_01.py
# Description: Print the Describe properties of a geostatistical layer.
# Requirements: Geostatistical Analyst Extension
# Import system modules
import arcpy
# Check out Geostatistical Analyst extension
arcpy.CheckOutExtension("GeoStats")
# Set environment settings
arcpy.env.workspace = "C:/gapyexamples/data"
# Set local variables
inPointFeatures = "ca_ozone_pts.shp"
zField = "OZONE"
GALayer = "IDW_galayer"
# Execute IDW
arcpy.ga.IDW(inPointFeatures, zField, GALayer)
# Describe the geostatistical layer
desc = arcpy.Describe(GALayer)
# Save extent of geostatistical layer
aoi = desc.areaOfInterest
# Save name of geostatistical layer
name = desc.nameString
# Save data type of geostatistical layer
dt = desc.dataType
# Save data sources and primary input dataset
dc = desc.dataCollection
ds = dc.getValue(0,0)
# Print describe properties
print("Layer name: " + name)
print("Data type: " + dt)
print("Input data: " + ds)
print("Minimum X Extent: " + str(aoi.XMin))
print("Maximum X Extent: " + str(aoi.XMax))
print("Minimum Y Extent: " + str(aoi.YMin))
print("Maximum Y Extent: " + str(aoi.YMax))