Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rgrass7]

The tag has no usage guidance.

0
votes
0answers
25 views

Getting an error while using GRASS GIS from R

I have installed GRASS in my Ubuntu system. Library "rgrass7" is successfully installed and imported. but, while running the code I am getting an error : Error in parseGRASS(cmd, legacyExec = ...
2
votes
0answers
36 views

Generating flow path using r.drain from rgrass

I need to generate the flow path using r.drain from the rgrass7 package in RStudio. I am new to GRASS GIS and prefer to use the R package instead. I want to generate a flow path from a grid cell. ...
1
vote
1answer
167 views

Extract raster values for polygons in GRASS

I have recently moved to using GRASS for GIS within R and I would like to extract values of a raster dataset that overlap with polygons (i.e. something like 'extract' in the raster package of R). I ...
1
vote
1answer
41 views

can't initialize projection information in GRASS from R

I want to perform a small calculation in GRASS using the r.watershed-function. I convert my raster DEM to a SpatialGridDataFrame to import it into GRASS. However when initializing GRASS the projection ...
0
votes
1answer
143 views

rgrass7 init error

I am using rgrass7 with R and by typing the following initGRASS(gisBase = "C:/GRASS/GRASS_GIS_7_3_svn", home=tempdir(), gisDbase = "C:/Users/main/Desktop/data", location = "Thesis",mapset = "user", ...
3
votes
1answer
86 views

How to set up a new gdbase and location in rgrass7 in R, through link2GI, different from the temporary one

I am using GRASS on Win 10 through the R environment (RStudio, version 1.0.143) with the link2GI package. I would like to assign a new gisdbase and a new location to my project. I defined my raster(...
0
votes
1answer
147 views

write a raster layer in grass from R with writeRAST

I have a raster in R like > str(my.raster) Formal class 'RasterLayer' [package "raster"] with 12 slots ..@ file :Formal class '.RasterFile' [package "raster"] with 13 slots .. .. ..@ name ...
0
votes
0answers
54 views

May I change rgrass7 location in R script

I'm using Grass-GIS 7.2 in R with rgrass7. I would like to use rasters from 2 different location. Is there a way to do that without brutality ? At this time it works with : library(rgrass7) # ...