QGIS Algorithm provided by QGIS (native c++) Create points layer from table (native:createpointslayerfromtable). This algorithm generates a points layer based on the values from an input table. The table must contain a field with the X coordinate of each point and another one with the Y coordinate, as well as optional fields with Z and M values. A CRS for the output layer has to be specified, and the coordinates in the table are assumed to be expressed in the units used by that CRS. The attributes table of the resulting layer will be the input table. —————- Notes —————- - This algorithm drops existing primary keys or FID values and regenerates them in output layers.

qgis_createpointslayerfromtable(
  INPUT = qgisprocess:::qgis_default_value(),
  XFIELD = qgisprocess:::qgis_default_value(),
  YFIELD = qgisprocess:::qgis_default_value(),
  ZFIELD = qgisprocess:::qgis_default_value(),
  MFIELD = qgisprocess:::qgis_default_value(),
  TARGET_CRS = qgisprocess:::qgis_default_value(),
  OUTPUT = qgisprocess:::qgis_default_value(),
  ...,
  .complete_output = .complete_output_option(),
  .quiet = .quiet_option(),
  .messages = .message_option()
)

Arguments

INPUT

source - Input layer. Path to a vector layer.

XFIELD

field - X field. The name of an existing field. ; delimited list of existing field names.

YFIELD

field - Y field. The name of an existing field. ; delimited list of existing field names.

ZFIELD

field - Z field. The name of an existing field. ; delimited list of existing field names.

MFIELD

field - M field. The name of an existing field. ; delimited list of existing field names.

TARGET_CRS

crs - Target CRS. CRS as an auth ID (e.g. 'EPSG:3111'). CRS as a PROJ4 string (e.g. 'PROJ4:…'). CRS as a WKT string (e.g. 'WKT:…'). Path to a layer. The CRS of the layer is used..

OUTPUT

sink - Points from table. Path for new vector layer.

...

further parameters passed to qgisprocess::qgis_run_algorithm()

.complete_output

logical specifying if complete out of qgisprocess::qgis_run_algorithm() should be used (TRUE) or first output (most likely the main) should read (FALSE). Default value is TRUE.

.quiet

logical specifying if parameter .quiet for qgisprocess::qgis_run_algorithm() Default value is TRUE.

.messages

logical specifying if messages from qgisprocess::qgis_run_algorithm() should be printed (TRUE) or not (FALSE). Default value is FALSE.

Details

Outputs description

  • OUTPUT - outputVector - Points from table