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: Monday Jan 30 19:52:26 2023 in commit: cac8d9d848299297977d1315b7e90cc3f7698730
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
© 2003-2024 GRASS Development Team, GRASS GIS 8.5.0dev Reference Manual