ArcObjects Library Reference (SpatialAnalyst)  

IExtractionOp2.ExtractValuesToPoints Method

Extracts cell values from point features overlayed on a raster.

[Visual Basic .NET]
Public Function ExtractValuesToPoints ( _
    ByVal pointDataset As IGeoDataset, _
    ByVal valueRaster As IGeoDataset, _
    [ByVal interpolateValues As Boolean], _
    [ByVal allAttributes As Boolean] _
) As IGeoDataset
[C#]
public IGeoDataset ExtractValuesToPoints (
    IGeoDataset pointDataset,
    IGeoDataset valueRaster,
    bool interpolateValues,
    bool allAttributes
);
[C#]

Optional Values

interpolateValues   Supply false as a default value.
allAttributes   Supply false as a default value.
[C++]
HRESULT ExtractValuesToPoints(
  IGeoDataset* pointDataset,
  IGeoDataset* valueRaster,
  VARIANT_BOOL interpolateValues,
  VARIANT_BOOL allAttributes,
  IGeoDataset** outGeodataset
);
[C++]

Parameters

pointDataset [in]

  pointDataset is a parameter of type IGeoDataset

valueRaster [in]

  valueRaster is a parameter of type IGeoDataset

interpolateValues [in, optional, defaultvalue(VARIANT_FALSE)]   interpolateValues is a parameter of type VARIANT_BOOL allAttributes [in, optional, defaultvalue(VARIANT_FALSE)]   allAttributes is a parameter of type VARIANT_BOOL outGeodataset [out, retval]

  outGeodataset is a parameter of type IGeoDataset

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

Remarks

pointDataset

an input point featureclass or feature class descriptor containing the points of interests to identify cell values from the input raster.

valueRaster

an input Raster, RasterDataset, RasterBand, or RasterDescriptor.

The geoDataset contains the cell values which determine the output RASTERVALU attribute of the output point geoDataset.

[interpolateValues]

a boolean specifying if the value of the RASTERVALU attribute will be interpolated between neighboring cells or given the value of the cell in which it is found to occur.

If TRUE, then the attribute value will be determined by the bilinear interpolation method.

If FALSE, then the attribute value will be determined by the cell value from the input raster. This is the default option.

[allAttributes]

a boolean specifying if the all attributes from the input value raster are to be included in the output geoDatatset.

If TRUE, all attributes of the input raster are included in the output.

If FALSE, attributes from the input raster are not included. This is the default option.

 

See Also

IExtractionOp2 Interface