Peppe, is thi salready fixed in 1.15?
---
** [bugs:#483] RasterStyleDialog freezes if the selected raster has only one
value (raster used as mask)**
**Status:** pending
**Milestone:**
**Created:** Thu Dec 20, 2018 11:25 AM UTC by Giuseppe Aruta
**Last Updated:** Thu Dec 20, 2018 05:25 PM UTC
**Owner:** Giuseppe Aruta
RasterStyleDialog freezes if the selected raster has only one value. Raster
layers where cells can have only one value are typically used as mask on other
raster layer. Tecnically these raster have only cells with a defined unique
value (generally 1) and other cells that have a nodata value.
The problem seems connected to the metter that OpenJUMP sextante raster defines
by defaut a stretched classification as style on a raster (
RasterSymbology.TYPE_RAMP). It is required at least 2 values (ex. 1 and 0) dor
a stretched classification while mask raster layer could have only one.
The solution which I am going to apply on SVN
a) RasterLayer.class. Make a default classification (only for such mask raster)
as single interval (RasterSymbology.TYPE_SINGLE) so that the layer tree legend
is obliged to show only one value
b) RasterSymbologyDialog.class. Create a dummy panel that substitutes stretched
classification panel (only for such mask raster) and shown a message that
selected raster has only one value
---
Sent from sourceforge.net because jump-pilot-devel@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/jump-pilot/bugs/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/jump-pilot/admin/bugs/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel