9
votes
Accepted
QGIS 2.14 standalone GRASS provider missing Msys folder, can't execute tools
I got the same problem using the Osgeo installer, but I just managed to solve it.
First download this https://sourceforge.net/projects/mingw/?source=typ_redirect
Install it, look for msys-base ...
7
votes
How to sum a hundred of raster maps in GRASS GIS raster calculator
You should consider using r.series. Perhaps something as follows will work in your case:
r.series input="`g.list pattern='arc_*' sep=,`" output=arc_sum method=sum
6
votes
Accepted
Unable to run v.clean in QGIS 3.0.1 in Python console
It appears that it was due to some bug I updated to latest version 3.0.2 of QGIS and modified processing.py to import QgsProcessingFeedback as follows
from qgis.core import (QgsMessageLog,
...
5
votes
QGIS 2.14 standalone GRASS provider missing Msys folder, can't execute tools
So here's the deal:
QGIS 2.14 standalone doesn't come with msys installation, but comes with grass 7 folders.
QGIS 2.12 standalone comes with msys and grass 6.4 folders, yet no grass 7.
The solution ...
5
votes
Accepted
GRASS r.in.lidar tool generates incomplete rasters
The inconsistency is caused by invalid points in the dataset. When I run (libLAS) lasinfo on the provided sample, I get:
1170966 Unclassified (1)
1565144 Ground (2)
But when I execute:
las2las -i ...
5
votes
Accepted
How to restore a scarp surface grid to calculate material loss
I will try to address your question with GRASS.
Your problem has a first task that is a bit challenging already, which is to get the situation before the event you want to quantify. I think the best ...
5
votes
Accepted
Correctly import .tif files in GRASS GIS
After importing the dataset into GRASS, you will need to complete two more steps. First, you should set the value of 0 to null. This can be done from the command-line as follows:
r.null map=...
4
votes
GRASS via Processing Toolbox doesn't work in QGIS 2.8.3 on Mac?
Why not upgrading your QGIS version?
To know the GRASS path, you need to know how Processing really works.
First, it is a Python module (processing) that uses subprocess to execute the original ...
4
votes
Accepted
How to list the available GRASS modules in command line
There is a relatively new module g.search.module which lists modules based on keywords. Perhaps could be helpful for what you are trying to do. This module is so far in GRASS 7.1 only.
4
votes
Pygrass reading raster issue
The raster
If your raster is not in a the current region, all the values are nan
Therefore by security
from grass.pygrass.gis.region import Region
current = Region()
current.align('aspect')
Then
...
4
votes
GRASS 7 environment setup for Python
I use this
export GISBASE="path_to_your GISBASE"
export PYTHONPATH="${PYTHONPATH}:$GISBASE/etc/python/"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$GISBASE/lib"
export GIS_LOCK=$$
export GISRC="/...
4
votes
Accepted
Connecting Python script external to Grass GIS 7 program in Windows 10?
The linked says you need to set environmental variables. This is done in Python using e.g.:
import os
os.environ['GISBASE'] = "/some/path"
The syntax
PYTHONPATH = 'C:\OSGeo4W\apps\grass\grass-7.0.4\...
4
votes
How do I download and install r.denoise for GRASS GIS?
From the GRASS shell
GRASS 7.1.svn (Geol):~ > g.extension r.denoise
Fetching <r.denoise> from GRASS GIS Addons repository (be patient)...
Compiling...
Installing...
Updating addons metadata ...
4
votes
GRASS 7 tools in QGIS results in EPSG:3397 (PD/83 GK4) instead of 31468 (DHDN GK4) causing dislocation
EPSG:31468 and EPSG:3397 share the same projection parameters, but differ in the datum. The first has towgs84 parameters, while the second does not.
Your output is a shapefile, and the shapefile ...
4
votes
Accepted
Getting the 'memory:' layers after grass7:v.clean processing using PyQGIS?
Try replacing memory: with TEMPORARY_OUTPUT. The following code works for me which was executed on a polygon .gpkg file:
hn_pg = iface.activeLayer()
output = processing.runAndLoadResults(
...
4
votes
Accepted
Field name for stats to be calculated not appearing using v.vect.stats
Area (ha) field is string because it is left aligned in the attribute table. You should convert into a numeric one.
Open "Field Calculator" to create a new Area field. Select Decimal number (...
3
votes
r.patch results in a blank map in GRASS
One suggestion would be to ensure that the computational region is correctly set, i.e.:
g.region rast=tile1,tile2,tile3,...,tilen -p
Then you should run the r.patch command:
r.patch input=tile1,...
3
votes
Accepted
Is it possible to start the GRASS GUI from R?
Yes, it is possible to launch the GRASS GUI from R within a running GRASS session.
It did not work because the environment variables where not correctly set. Modifiying the environment variables as ...
3
votes
Accepted
command r.stream.order not found in grass 7.0.3 how to install r.stream module?
Various r.stream.* modules must be installed as addons with g.extension. This must be done in GRASS explicitly, because g.extension seems not available via QGIS.
see for details: https://grasswiki....
3
votes
How to activate GRASS GIS 7 plugin in QGIS 2.8?
A late answer:
QGIS 2.14 is compatible with GRASS 7 now. On Windows, the standalone installer provides separate icons for GRASS 7.0.3 integration. For GRASS 6.4.3 support, you have to stick to QGIS 2....
3
votes
Accepted
GRASS 7 environment setup for Python
Once a python script is running, changes to environment variables are no longer effective. They are set up right before runtime and the interpretor will not update them afterwards. PYTHONPATH can be ...
3
votes
Accepted
GRASS - Aligning grids of different rasters
I'll try to answer even though this was a few years ago.
I suspect that the two rasters are misaligned because the GRASS region was slightly different when you imported the NDVI and LANDSCAPE rasters. ...
3
votes
Accepted
Missing the results from grass tools when used in python console
If you're using GRASS 7, you will need to use grass7:v.buffer.distance instead of grass:v.buffer.distance.
So try using the following:
result = processing.runalg('grass7:v.buffer.distance', part1,'...
3
votes
QGIS 2.18 Windows 10, 32 bit system - where is the GRASS plugin?
The GRASS plugin is available when you open QGIS Desktop with GRASS instead of QGIS Desktop.From the plugin then you can access GRASS.
3
votes
Accepted
Grass projection issue
So researching for my issue I came across an old github repository filled with lectures on how to do a Supervised Classification
https://github.com/FOSS4GAcademy/GST105FOSS4GLabs/blob/master/Module%...
3
votes
Qgis 2.18.1 text under a degree angle (Grass 7.0.5)
You can find the option in the layer's properties label tab, you need to check 'Label this layer' at the top and choose your name field, then:
Layer properties -> 'label' tab -> 'placement' tab
...
3
votes
Accepted
Issue with GRASS i.tasscap
It looks like you have not set the GRASS region correctly. After importing your data, you need to set the region to the extent and resolution of one of your bands, e.g.:
g.region rast=B2
and then ...
3
votes
Accepted
Copying Grass data from one location to another in Grass GIS
Here an overview as it depends on the projection(s):
When the projection is the same across the different locations, then
you either can simply copy/move the respective mapset in location A to ...
2
votes
Accepted
Problems to use v.what.vect in GRASS7
The problem is that the two features are not matching in the 3rd dimension!
A quick look at the manual give the explanation:
In case that one or both input vector maps are 3D, features need to ...
2
votes
Accepted
Get ID for each single v.to.points point in GRASS?
v.to.points creates a vector with 2 layers. With the second layer you should have unique ID.
You should thus simply specify the second layer with v.db.select or write into a new feature with v....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
grass-7.0 × 142grass-gis × 70
qgis × 40
grass.script × 13
raster × 11
qgis-2 × 11
python × 10
qgis-grass-plugin × 10
qgis-processing × 9
r × 7
ubuntu × 7
qgis-plugins × 6
pyqgis × 5
installation × 5
mac × 5
coordinate-system × 4
python-2.7 × 4
add-ons × 4
grass-7.2 × 4
grass-6.4 × 4
arcgis-desktop × 3
lidar × 3
classification × 3
splitting × 3
dem × 2