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

Add an option to automatically classify discrete rasters when styling them #22798

Closed
qgib opened this issue May 19, 2016 · 10 comments
Closed

Add an option to automatically classify discrete rasters when styling them #22798

qgib opened this issue May 19, 2016 · 10 comments
Labels
Feature Request Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented May 19, 2016

Author Name: shenriod - (shenriod -)
Original Redmine Issue: 14845

Redmine category:symbology


Hi

I am currently working with discrete rasters (landuse categories, boolean rasters...) and there seems to be no straight-forward way to style them.

If I have 30 landuse classes (1, 2, 3,... , 30), I need to use "Single-band pseudo-colour" and to add my 30 values manually. Moreover, if I don't want to display values 18,19,20 and remove them from the list, the pixels with those values will still be displayed (with colours interpolated between 17 and 21).

!Selection_076!

Would be great to have an additional "Render type" for discrete rasters. It should offer the option to automatically "retrieve all unique values" (like "ArcGIS does":http://resources.arcgis.com/en/help/main/10.1/index.html#/representing_unique_categories_such_as_land_use/009t00000074000000/). The renderer should then only display the pixels matching this list of values. Pixels with other values will just be ignored, not interpolated.

See for reference "here":http://gis.stackexchange.com/questions/194116/qgis-style-a-discrete-raster

Thanks!


@qgib
Copy link
Contributor Author

qgib commented May 21, 2016

Author Name: shenriod - (shenriod -)


Related to this (old) request #14258

And to this one: #22427

@qgib
Copy link
Contributor Author

qgib commented May 22, 2016

Author Name: Giovanni Manghi (@gioman)


  • category_id was configured as Symbology

@qgib
Copy link
Contributor Author

qgib commented Jan 6, 2017

Author Name: shenriod - (shenriod -)


I am not familiar with the etiquette of the ticketing system so sorry if I'm not posting at the right place!

I have the feeling that this requested feature (styling boolean or discrete rasters) is quite "basic" for a professional GIS software like QGIS. Any chance this request can get some attention? :-)

Thanks!

@qgib
Copy link
Contributor Author

qgib commented Jan 6, 2017

Author Name: Giovanni Manghi (@gioman)


shenriod - wrote:

I am not familiar with the etiquette of the ticketing system so sorry if I'm not posting at the right place!

I have the feeling that this requested feature (styling boolean or discrete rasters) is quite "basic" for a professional GIS software like QGIS. Any chance this request can get some attention? :-)

Thanks!

I agree, there is a lot of room for improvements about discrete rasters.

Anyway while QGIS is fundamentally users necessity driven, do not expect someone wake up in the morning and add/fix (for free or just because) what is for you/me an important feature. Raise your concerns in the users/developers mailing lists and see if the request gains momentum and if is possible to put together a group of people willingly to support the request.

@qgib
Copy link
Contributor Author

qgib commented Jan 8, 2017

@qgib
Copy link
Contributor Author

qgib commented Jan 9, 2017

Author Name: Rick Rupp (Rick Rupp)


I agree this is a feature that I very much would like to see/support.

@qgib
Copy link
Contributor Author

qgib commented Jan 10, 2017

Author Name: shenriod - (shenriod -)


Adding a typical (fake) discrete raster if anyone wants to make tests


  • 10660 was configured as landcover.zip

@qgib
Copy link
Contributor Author

qgib commented Jan 11, 2017

Author Name: Martin Dobias (@wonder-sk)


Just a note - if you do not want colors to be interpolated, just set the interpolation type to "Exact". This will solve the issue that raster value 5 still gets rendered (as mentioned in the screenshot).

Also you do not need to add all the values manually, you can set min value to 1, max value to 30, number of classes to 30 and the list of colors will be populated by entries as wanted. Of course having a button to fetch all distinct values from raster would be useful...

Multi-selection of classes to edit or remove them would be handy.

In the mail to qgis-dev list you mentioned loading/saving of color maps - that's already possible, look for load/save buttons.

@qgib
Copy link
Contributor Author

qgib commented Jan 18, 2017

Author Name: Andy Harfoot (Andy Harfoot)


I have posted a workaround in the form of a Processing script as an answer to the GIS SE question on the same topic http://gis.stackexchange.com/questions/194116/qgis-style-a-discrete-raster

It's rough and ready, but does the trick.

@qgib
Copy link
Contributor Author

qgib commented Apr 2, 2017

Author Name: Nyall Dawson (@nyalldawson)


Fixed in changeset "d03844d24e96adfa57b608e2f40aebea5a8d317f".


  • status_id was changed from Open to Closed

@qgib qgib added Feature Request Symbology Related to vector layer symbology or renderers labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant