qgis_pointslayerfromtable: Point Layer from Table

Description Usage Arguments Value Examples

Description

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. 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.

Usage

1
qgis_pointslayerfromtable(input, output, xfield, yfield, crs = "EPSG:4326")

Arguments

input

<chr> csv file location. string

output

<chr> string file destination. .geojson or .shp

xfield

<chr> csv column containing X coordinate. String

yfield

<chr> csv column containing Y coordinate. String

crs

<chr> Coordinate reference system. Defualt is 'EPSG:4326'.

Value

simple feature, geojson, or shapefile(.shp)

Examples

1
2
3
4
5
qgis_pointslayerfromtable(input = 'C://Documents/Spatial/cities.csv',
                          output = 'C://Documents/Spatial/cities.shp',
                          xfield = 'mE',
                          yfield = 'mN',
                          crs = 'EPSG:102285')

smitty1788/mercatoR documentation built on May 14, 2019, 3:03 p.m.