Description Usage Arguments Value Examples
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.
1 | qgis_pointslayerfromtable(input, output, xfield, yfield, crs = "EPSG:4326")
|
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'. |
simple feature, geojson, or shapefile(.shp)
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.