QGIS-GRASS integration #2229
-
I have built grass from source and would like to be able open grass data in qgis for quick visual inspection of results + cartography. I am on Fedora. The qgis-grass package will install grass78 + old wx so this is not an option. Any idea how this can be done? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 7 replies
-
Your QGIS installation needs to be sufficiently fresh. GRASS GIS 8 support has been added in qgis/QGIS#47095 I guess you could patch your local QGIS installation with this pull request. In Fedora,
HTH, Markus |
Beta Was this translation helpful? Give feedback.
-
An option is to enable GRASS GIS data directly in GDAL/OGR using the respective drivers:
Here the related Fedora RPM package: gdal-grass-plugin for GDAL. BTW: we also these drivers also here: https://mundialis.github.io/geoserver-grass-raster-datastore/ |
Beta Was this translation helpful? Give feedback.
-
This is what I used (of course putting the path into the "Data Source Manager" is fine, too:
Note that I had to change to "Singleband pseudocolor" to actually see the map as it was initially white: |
Beta Was this translation helpful? Give feedback.
-
This is how I see it in the browser pane, in case it's useful: |
Beta Was this translation helpful? Give feedback.
-
Thank you both! Now this was interesting. Running $ qgis /home/oskeng/Dropbox/Jobb/GIS/grassdata/Sweref99/Norrbotten/cellhd/NMD_buffer_final (cf. neteler) indeed works. GRASS raster layers can also be added in the GUI using Layer>>Add layer>>Add raster layer. However, trying to open vector data the same way results in "Invalid data source: [...] is not a valid or recognized data source". Also, GRASS data is not recognized in the browser (cf. veroandreo). The same category as used above is shown as empty. |
Beta Was this translation helpful? Give feedback.
-
You need to rebuild grass then qgis if you want in browser, Edit : Use gdal-ecw available in repo, it have others options like full kml/kmz support unavailable in others packages even in AUR |
Beta Was this translation helpful? Give feedback.
-
gdal-ecw provides gdal so that's why it's in conflict. You should accept the removal of gdal in favor of gdal-ecw
|
Beta Was this translation helpful? Give feedback.
-
As you could see in original PKGBUILD (line 99) => https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=gdal-ecw#n99 So you need to install |
Beta Was this translation helpful? Give feedback.
You need to rebuild grass then qgis if you want in browser,
gdal-grass
package will not helpYou could use my Manjaro repo if you want : https://giscan.com/sig/pkg/
Edit : Use gdal-ecw available in repo, it have others options like full kml/kmz support unavailable in others packages even in AUR