-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Comments
Author Name: Giovanni Manghi (@gioman)
|
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! |
Author Name: Giovanni Manghi (@gioman) shenriod - wrote:
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. |
Author Name: shenriod - (shenriod -) Thanks for the hint, I will do so! Edit: follow the discussion here: |
Author Name: Rick Rupp (Rick Rupp) I agree this is a feature that I very much would like to see/support. |
Author Name: shenriod - (shenriod -) Adding a typical (fake) discrete raster if anyone wants to make tests
|
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. |
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. |
Author Name: Nyall Dawson (@nyalldawson) Fixed in changeset "d03844d24e96adfa57b608e2f40aebea5a8d317f".
|
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!
The text was updated successfully, but these errors were encountered: