Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGIS does not display raster maps from a GRASS mapset #28797

Closed
qgib opened this issue Jan 11, 2019 · 7 comments
Closed

QGIS does not display raster maps from a GRASS mapset #28797

qgib opened this issue Jan 11, 2019 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers GRASS Rasters Related to general raster layer handling (not specific data formats) Regression Something which used to work, but doesn't anymore stale Uh oh! Seems this work is abandoned, and the PR is about to close.

Comments

@qgib
Copy link
Contributor

qgib commented Jan 11, 2019

Author Name: Pedro Venâncio (Pedro Venâncio)
Original Redmine Issue: 20978
Affected QGIS version: 3.7(master)
Redmine category:grass


Raster layers in GRASS mapsets are not rendered by QGIS 3.4.3 and master.

But, at least for some raster data types, just opening the layer properties and doing 'Ok', QGIS assumes a default color ramp and the raster shows up (see the attached gif).

So, it seems that QGIS 3.x is not interpreting GRASS color tables by default.

Using QGIS Value Tool plugin, the raster values are displayed correctly, even without the raster being rendered in canvas.

Veronica Andreo had tested in Linux. Her report is here: http://osgeo-org.1560.x6.nabble.com/QGIS-does-not-display-raster-maps-from-a-GRASS-mapset-td5390774.html

In QGIS 2.18.27, raster layers from GRASS Mapsets work without problems.

I don't know if this behaviour is somehow related, but using GRASS algorithms from QGIS Processing, when the outputs are rasters, the error message 6 from gdal is showed:

ERROR 6: SetColorTable() only supported for Byte or UInt16 bands in TIFF format.


@qgib
Copy link
Contributor Author

qgib commented Jan 11, 2019

Author Name: Giovanni Manghi (@gioman)


  • regression was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Jan 30, 2019

Author Name: Alexander Bruy (@alexbruy)


As I understand, ERROR 6 comes from GDAL and caused by limitations of the TIFF format. If GRASS produces rasters with Float data type, then GDAL can't apply color map to them during confersion. Confirmed by Markus Neteler here https://gis.stackexchange.com/a/102605.

@qgib
Copy link
Contributor Author

qgib commented Jan 30, 2019

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 24, 2019

Author Name: Giovanni Manghi (@gioman)


Still true on master. On 3.* it fails to render the rasters even when gdal is used is the same as in 2.18 (where there is no issue).


  • version was changed from 3.4.3 to 3.7(master)
  • status_id was changed from Feedback to Open

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority GRASS Regression Something which used to work, but doesn't anymore labels May 25, 2019
@gioman gioman added Feedback Waiting on the submitter for answers and removed Feedback Waiting on the submitter for answers High Priority labels Aug 4, 2020
@gioman gioman added the Rasters Related to general raster layer handling (not specific data formats) label Jan 17, 2021
@nyalldawson
Copy link
Collaborator

I can't reproduce this, using a range of grass floating point rasters with color maps set. Is it still reproducible in recent QGIS?

Can someone provide step-by-step process to reproduce?

@nyalldawson nyalldawson added the Feedback Waiting on the submitter for answers label May 31, 2023
@github-actions
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Jun 14, 2023
@github-actions
Copy link

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers GRASS Rasters Related to general raster layer handling (not specific data formats) Regression Something which used to work, but doesn't anymore stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

No branches or pull requests

3 participants