A better method to simplify is using the GRASS tool v.generalize from Menu Processing / Toolbox. It keeps topology intact, thus no need to fill sliver polygons.
I' m not sure if you only have gaps - if the polygons also overlap, you must run at least two tools. So probably starting to create simplified and topologically correct geometries (no gaps, no ...
All GRASS modules work with maps that have been either imported into the GRASS database, or referred to by the r.external command (saves disk space).
For the first option you would do:
r.import input=cut_n30e000.tif output=cut_n30e000
For the second option:
r.external input=cut_n30e000.tif output=cut_n30e000
You might want to have a look at the following ...
Code below is working when I try it (with tif files as inputs). I ran the tool manually in QGIS then used the command from History (Ctrl+Alt+H) and changed your code from input_layer = (path+file) to input_layer = os.path.join(path, file)
import glob, os
for file in glob.glob("*.nc"):
welcome to GRASS community.
Have you checked if you are setting the environmental variable correctly for GRASS modules before running the modules? If the environmental variables are set correctly (in any of the suggested way in the wiki), you should not have any issues running any of the modules externally.
There is a post with examples and relevant links on ...
I've found another way to do it, but I don't find it very elegant. d.text accepts a string or a file. In this second case it works as expected.
cptxt = "- first line \n"
cptxt += "- second line \n"
myfile = 'input_text.txt'
with open(myfile, "w") as ftxt:
GIS vector data such as shapefiles does not support curved lines. It only supports lines connected by vertices. So you lose the curves, they are transformed to vertices, thus with "edges". That is what the message means.
To convert DXF files to Shapefiles, have a look at the
https://grasswiki.osgeo.org/wiki/GRASS_FAQ#Errors -- Grass is using a lat/lon coordinate system, so you first need to set up a non-lat/lon location for Grass to work in. Try Plugins/Grass/New Mapset/.../Create new Location/Projection/... to make a new location for GRASS to work in.
These are actually multiple question.
does anyone success installed Mask R-CNN in GRASS GIS?
How can I update?
As @markusN noted in his comment, you can open a pull request at GRASS GIS GitHub repository.
However, the GRASS GIS code snippet you have reported was removed/changed in 2018, in this commit. Upgrading your GRASS GIS to version >= 7.8 ...
I eventually solved my problem in a kludgy way. I'll briefly explain the procedure below for those interested, but I'm sure that there is a simpler way.
First I added a column to count duplicates using the expression:
Then I extracted only the names that had repetitions and split the file by name attribute.
Next step has been to ...