Extract Values To Table (Geostatisical Analyst)
サマリ
Extracts cell values from a set of rasters to a table, based on a point or polygon feature class.
使用法
This tool is primarily designed to analyze the output from Gaussian Geostatistical Simulations.
-
All the rasters must have the same spatial reference and cell size.
If a point feature class is used, the output table has a record for each point and each raster that has data. Polygonal data will be treated as point data, the cell center of the input rasters will determine the number of points and will also be used to decide whether the "cell" is contained within the polygon or not.
-
Values outside the raster's extent will be ignored.
-
Multipart feature classes are not supported.
-
In the case of coincident points, the last one encountered will be used and the rest will be ignored. In the same vane, if overlapping polygons are encountered only one of the intersected features will be processed.
The Sample tool can also be used, however, the output table needs to be transposed if the values are to be graphed.
構文
パラメータ | 説明 | データ タイプ |
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 (オプション) |
Saves the names of the Input rasters to disc. | Table |
add_warning_field (オプション) |
Records if input features are partially or completely covered by the Input rasters.
| Boolean |
コードのサンプル
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", "", "")
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, "", "")