SAGA-GIS Module Library Documentation (v2.2.3)

Module Add Grid Values to Shapes

Spatial Join: Retrieves information from the selected grids at the positions of the shapes of the selected shapes layer and adds it to the resulting shapes layer. For points this is similar to 'Add Grid Values to Points' module. For lines and polygons average values will be calculated from interfering grid cells. For polygons the 'Grid Statistics for Polygons' module offers more advanced options.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputShapesShapes (input)SHAPES--
GridsGrid list (input)GRIDS--
OutputResult (*)Shapes (optional output)RESULT--
OptionsInterpolationChoiceINTERPOL-Available Choices:
[0] Nearest Neighbor
[1] Bilinear Interpolation
[2] Inverse Distance Interpolation
[3] Bicubic Spline Interpolation
[4] B-Spline Interpolation
Default: 4
(*) optional

Command-line

Usage: saga_cmd shapes_grid 1 [-SHAPES <str>] [-GRIDS <str>] [-RESULT <str>] [-INTERPOL <str>]
  -SHAPES:<str>  	Shapes
	Shapes (input)
  -GRIDS:<str>   	Grids
	Grid list (input)
  -RESULT:<str>  	Result
	Shapes (optional output)
  -INTERPOL:<str>	Interpolation
	Choice
	Available Choices:
	[0] Nearest Neighbor
	[1] Bilinear Interpolation
	[2] Inverse Distance Interpolation
	[3] Bicubic Spline Interpolation
	[4] B-Spline Interpolation
	Default: 4