Note: This document is for an older version of GRASS GIS that is outdated. You should upgrade, and read the current addon manual page.
Optionally, the user can define raster layers without labels. In that case only the raster values are uploaded to a column with the name of that raster.
Another option is to add columns with point coordinates to the attribute table of the output vector layer.
The user can opt to include the attribute columns of the input vector layer in the output. In that case, the columns with the raster values and labels will appear after the columns from the input vector layer.
If you only want to upload raster values at positions of vector points to the attribute table of that vector layer, use v.what.rast instead.
g.region raster=landuse v.in.region output=regionbounds v.select ainput=points_of_interest binput=regionbounds output=POI_select operator=within
Extract raster values and labels from landuse map. Columns from the input map (POI_select) are not included.
v.what.rast.label vector=POI_select raster=landuse raster2=elevation output=POI_landuse1
Extract raster values and labels from landuse map. Use the -0 flag to include the columns from the input map (POI_select)
v.what.rast.label -o vector=POI_select raster=landuse raster2=elevation output=POI_landuse2
Extract raster values and labels from landuse map and values from elevation map. Use the -0 flag to include the columns from the input map (POI_select)
v.what.rast.label -o vector=POI_select@user1 raster=landuse raster2=elevation output=POI_landuse3
Extract raster values and labels from landuse map and values from elevation map. Use the -0 flag to include the columns from the input map (POI_select). Use the -c flag to include the point coordinates
v.what.rast.label -o -c vector=POI_select@user1 raster=landuse@PERMANENT raster2=elevation@PERMANENT output=POI_landuse4
Available at: v.what.rast.label source code (history)
Latest change: Mon Feb 21 09:38:35 2022 in commit: d050707bff9a2276ba328f1db584247a871037da
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
© 2003-2022 GRASS Development Team, GRASS GIS 8.0.3dev Reference Manual