Extract Values To Table (Geostatisical Analyst)

Lizenzstufe:BasicStandardAdvanced

Zusammenfassung

Extracts cell values from a set of rasters to a table, based on a point or polygon feature class.

Verwendung

Syntax

ExtractValuesToTable_ga (in_features, in_rasters, out_table, {out_raster_names_table}, {add_warning_field})
ParameterErläuterungDatentyp
in_features

The points or polygon features to be created.

Feature Layer
in_rasters
[in_raster,...]

The rasters must all have the same extent, coordinate system, and cell size.

Raster Layer; Mosaic Layer
out_table

The output table contains a record for each point and each raster that has data. If polygon features are input, they are converted to points which coincide with the raster cell centers.

Table
out_raster_names_table
(optional)

Saves the names of the Input rasters to disc.

Table
add_warning_field
(optional)

Records if input features are partially or completely covered by the Input rasters.

  • TRUE Warning field is added to the output table and populated with a P when a feature is partially covered by raster values.
  • FALSE Warning field is not added to the output table.
Boolean

Codebeispiel

ExtractValuesToTable interactive window example

Extract the cell values from a raster, based on a point feature class, to a table.

import arcpy
from arcpy import env
env.workspace = "C:/gapyexamples/data"
arcpy.ExtractValuesToTable_ga("C:/gapyexamples/data/ca_ozone_pts.shp",
                              "C:/gapyexamples/data/inraster", 
                              "C:/gapyexamples/output/outEVFR.dbf", "", "")
ExtractValuesToTable script example

Extract the cell values from a raster, based on a point feature class, to a table.

# Name: ExtractValuesToTable_Example_02.py
# Description: Extract the cell values from a raster, based on 
#              a point feature class, to a table.
# Requirements: Geostatistical Analyst Extension

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/gapyexamples/data"

# Set local variables
inPoints = "C:/gapyexamples/data/ca_ozone_pts.shp"
raster = "C:/gapyexamples/data/inraster"
outTable = "C:/gapyexamples/output/outEVFR.dbf"

# Check out the ArcGIS Geostatistical Analyst extension license
arcpy.CheckOutExtension("GeoStats")

# Execute ExtractValuesToTable
arcpy.ExtractValuesToTable_ga(inPoints, raster, outTable, "", "")

Umgebung

Verwandte Themen

Lizenzierungsinformationen

ArcGIS for Desktop Basic: Erfordert Geostatistical Analyst
ArcGIS for Desktop Standard: Erfordert Geostatistical Analyst
ArcGIS for Desktop Advanced: Erfordert Geostatistical Analyst
9/22/2013