SAGA-GIS Tool Library Documentation (v9.2.0)

Tool Add Coordinates to Points

The tool attaches the x- and y-coordinates of each point to the attribute table. For 3D shapefiles, also the z/m-coordinates are reported.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputPointsshapes, inputINPUT--
OutputOutput (*)shapes, output, optionalOUTPUT--
OptionsXbooleanX-Default: 1
YbooleanY-Default: 1
ZbooleanZ-Default: 1
MbooleanM-Default: 1
LongitudebooleanLON-Default: 0
LatitudebooleanLAT-Default: 0
(*) optional

Command-line

Usage: saga_cmd shapes_points 6 [-INPUT <str>] [-OUTPUT <str>] [-X <str>] [-Y <str>] [-Z <str>] [-M <str>] [-LON <str>] [-LAT <str>]
  -INPUT:<str> 	Points
	shapes, input
  -OUTPUT:<str>	Output
	shapes, output, optional
  -X:<str>     	X
	boolean
	Default: 1
  -Y:<str>     	Y
	boolean
	Default: 1
  -Z:<str>     	Z
	boolean
	Default: 1
  -M:<str>     	M
	boolean
	Default: 1
  -LON:<str>   	Longitude
	boolean
	Default: 0
  -LAT:<str>   	Latitude
	boolean
	Default: 0