Extract Multi Values to Points (Spatial Analyst)

License Level:BasicStandardAdvanced

Summary

Extracts cell values at locations specified in a point feature class from one or more rasters, and records the values to the attribute table of the point feature class.

Usage

Syntax

ExtractMultiValuesToPoints (in_point_features, in_rasters, {bilinear_interpolate_values})
ParameterExplanationData Type
in_point_features

The input point features to which you want to add raster values.

Feature Layer
in_rasters
[[Raster, {Output Field Name}],...]

The input raster (or rasters) values you want to extract based on the input point feature location.

Optionally, you can supply the name for the field to store the raster value. By default, a unique field name will be created based on the input raster dataset name.

Value Table
bilinear_interpolate_values
(Optional)

Specifies whether or not interpolation will be used.

  • NONE No interpolation will be applied; the value of the cell center will be used.
  • BILINEAR The value of the cell will be calculated from the adjacent cells with valid values using bilinear interpolation. NoData values will be ignored in the interpolation unless all adjacent cells are NoData.
Boolean

Code Sample

ExtractMultiValuesToPoints example 1 (Python window)

Extract the cell values from multiple rasters to attributes in a point shapefile feature class.

import arcpy
from arcpy.sa import *
from arcpy import env 
env.workspace = "c:/sapyexamples/data"
ExtractMultiValuesToPoints("observers.shp", [["elevation", "ELEV"], 
                           ["costraster", "COST"], ["flowdir", "DIR"]], "NONE")
ExtractMultiValuesToPoints example 2 (stand-alone script)

Extract the cell values from multiple rasters to attributes in a point shapefile feature class using interpolation.

# Name: ExtractMultiValuesToPoints_Ex_02.py
# Description: Extracts the cells of multiple rasters as attributes in
#    an output point feature class.  This example takes a multiband IMG
#    and two GRID files as input.
# Requirements: Spatial Analyst Extension

# Import system modules
import arcpy
from arcpy import env
from arcpy.sa import *

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

# Set local variables
inPointFeatures = "poi.shp"
inRasterList = [["doqq.img", "doqqval"], ["redstd", "focalstd"], 
                ["redmin", "focalmin"]]

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

# Execute ExtractValuesToPoints
ExtractMultiValuesToPoints(inPointFeatures, inRasterList, "BILINEAR")

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Requires Spatial Analyst
ArcGIS for Desktop Standard: Requires Spatial Analyst
ArcGIS for Desktop Advanced: Requires Spatial Analyst
11/8/2012