@@ -14,43 +14,49 @@ intermediate geoTIF file (using
1414[ gdal.rasterize] ( https://gdal.org/api/python/utilities.html#osgeo.gdal.Rasterize ) )
1515and imports it into GRASS GIS.
1616
17- The objects in the vector map will be assigned an user-defined value
18- using the ** value** parameter. Alternatively, the user can use the
19- ** attribute \_ column ** to specify the name of an existing column from the
20- vector map's attribute table. The values in that column will be used as
21- raster values in the output raster map.
17+ The objects in the vector map will be assigned an user-defined value using the
18+ ** value** parameter. Alternatively, the user can use the ** attribute_column ** to
19+ specify the name of an existing column from the vector map's attribute table.
20+ The values in that column will be used as raster values in the output raster
21+ map.
2222
23- Optionally, the only features selected with the ** where** option can be
23+ Setting the ** -c** flag counts the number of overlapping features per pixel and
24+ assigns that count as the raster value, effectively creating a heatmap.
25+
26+ Optionally, only features selected with the ** where** or ** sql** option can be
2427imported.
2528
2629## Notes
2730
2831By default, * r.in.vect* will only affect data in areas lying inside the
29- boundaries of the current computational region. Before running the
30- function, users should therefore ensure that the computational region is
31- correctly set, and that the region's resolution is at the desired level.
32- Alternatively, users can use the ** -v** flag to set the exent of the
33- raster layer to that of the vector layer. To ensure that the resulting
34- raster map cleanly aligns with the computational region, the extent may
35- be slightly larger than that of the vector layer.
36-
37- If the coordinate reference system (CRS) of the vector file differs from
38- that of the mapset in which users want to import the raster, the vector
39- file will be first reprojected using * ogr2ogr* .
40-
41- The ** label\_ column** parameter can be used to assign raster category
42- labels. Users should check if each unique value from the category column
43- has one corresponding label in the label column. If there are categories
44- with more than one label, the first from the label column will be used
45- (and a warning will be printed).
46-
47- With the ** -d** flag, all pixels touched by lines or polygons will be
48- updated, not just those on the line render path, or which center point
49- is within the polygon. For lines, this is similar to setting the ** -d**
50- flag in * v.to.rast* .
51-
52- For simple and small vector layers, it is probably faster to
53- import the vector layer first and converting it to a raster in GRASS.
32+ boundaries of the current computational region. Before running the function,
33+ users should therefore ensure that the computational region is correctly set,
34+ and that the region's resolution is at the desired level.
35+
36+ Alternatively, use the ** -v** flag to import the entire vector extent, ignoring
37+ the current region boundaries. By default, this produces a full-map raster
38+ without modifying the current computational region. To update the region to
39+ match the imported raster, include the ** -r** flag. This extends the region
40+ bounds to encompass the new layer while ensuring the grid remains aligned with
41+ the existing resolution.
42+
43+ If the coordinate reference system (CRS) of the vector file differs from that of
44+ the mapset in which users want to import the raster, the vector file will be
45+ first reprojected using * ogr2ogr* .
46+
47+ The ** label_column** parameter can be used to assign raster category labels.
48+ Users should check if each unique value from the category column has one
49+ corresponding label in the label column. If there are categories with more than
50+ one label, the first from the label column will be used (and a warning will be
51+ printed).
52+
53+ With the ** -d** flag, all pixels touched by lines or polygons will be updated,
54+ not just those on the line render path, or which center point is within the
55+ polygon. For lines, this is similar to setting the ** -d** flag in * v.to.rast* .
56+
57+ For simple and small vector layers, it is probably faster to import the vector
58+ layer first and converting it to a raster in GRASS.
59+
5460
5561## EXAMPLE
5662
@@ -101,7 +107,7 @@ values.
101107r.in.vect input=geology.gpkg \
102108output=geology_rast2 \
103109attribute_column=GEOL250_ \
104- rat_column =GEO_NAME
110+ label_column =GEO_NAME
105111memory=2000
106112
107113# Assign random colors
@@ -166,7 +172,10 @@ gaps or lines that consist of cells that are only diagonally connected.*
166172
167173## AUTHORS
168174
169- Paulo van Breugel ([ ecodiv.earth] ( https://ecodiv.earth ) )
170- Applied Geo-information Sciences
171- [ HAS green academy, University of Applied
172- Sciences] ( https://www.has.nl/ )
175+ Paulo van Breugel | [ HAS green academy] ( https://has.nl ) , University of
176+ Applied Sciences | [ Climate-robust Landscapes research
177+ group] ( https://www.has.nl/en/research/professorships/climate-robust-landscapes-professorship/ )
178+ | [ Innovative Bio-Monitoring research
179+ group] ( https://www.has.nl/en/research/professorships/innovative-bio-monitoring-professorship/ )
180+ | Contact: [ Ecodiv.earth] ( https://ecodiv.earth )
181+
0 commit comments