Hi,
The intervals in the Classified window are what it shows initially when I open the panel. The actual statistics of the image (depth data) are:
Band 1 Block=437x4 Type=Float32, ColorInterp=Gray
Min=-7.590 Max=0.000
Minimum=-7.590, Maximum=0.000, Mean=-1.422, StdDev=1.822
NoData Value=nan
Metadata:
STATISTICS_MAXIMUM=0
STATISTICS_MEAN=-1.421676951874
STATISTICS_MINIMUM=-7.5902676582336
STATISTICS_STDDEV=1.8221358846984
STATISTICS_VALID_PERCENT=100
But could this have something to do with the corrupted tab in the user interface?
I get loads of these log sections into the console:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.awt.MultipleGradientPaint.<init>(MultipleGradientPaint.java:237)
at java.awt.LinearGradientPaint.<init>(LinearGradientPaint.java:286)
at java.awt.LinearGradientPaint.<init>(LinearGradientPaint.java:244)
at java.awt.LinearGradientPaint.<init>(LinearGradientPaint.java:139)
at org.openjump.core.rasterimage.styler.ui.GradientCanvas.paint(GradientCanvas.java:82)
at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:151)
at com.sun.java.swing.plaf.windows.WindowsComboBoxUI.paintCurrentValue(WindowsComboBoxUI.java:311)
at javax.swing.plaf.basic.BasicComboBoxUI.paint(BasicComboBoxUI.java:904)
at com.sun.java.swing.plaf.windows.WindowsComboBoxUI.paint(WindowsComboBoxUI.java:218)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at javax.swing.JComponent.paintComponent(JComponent.java:780)
at javax.swing.JComponent.paint(JComponent.java:1056)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502)
at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
at java.awt.Dialog.show(Dialog.java:1084)
at java.awt.Component.show(Component.java:1671)
at java.awt.Component.setVisible(Component.java:1623)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at org.openjump.core.rasterimage.styler.RasterStylesPlugIn.execute(RasterStylesPlugIn.java:84)
at org.openjump.core.ui.plugin.raster.color.RasterColorEditorPlugIn.execute(RasterColorEditorPlugIn.java:57)
at com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:344)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886)
at java.awt.Component.processMouseEvent(Component.java:6539)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
The log file that is saved to the disk has quite a many other warnings but they must mean something else:
[WARN] 2020-12-21_18:51:57.303 Expected 'interior' attribute but found none. Tag = line; Attributes = [Attribute: enabled="true"], [Attribute: width="1"]
But now, after a long, long wait a couple of new lines appeared into the console
Reload image
Reload image
and now OJ shows the tab and it is pretty fast with applying new color ramps and result looks good.
![]()
Next I removed the image and opened it again and the issue was still there. The UI did not show the buttons and everything was as slow as it was in the beginning. But now I found a workaround:
- open the raster color editor
- hover around so that button Restore comes visible
- press the Restore button
- now it is possible to use the tab: buttons appear, color ramp selection is there, colors change immediately – only the lower part of the tab is somehow partial, like painted over with white color near the borders.
![]()
-Jukka-
Lähettäjä: Giuseppe Aruta <giuseppe.ar...@gmail.com>
Lähetetty: maanantai 21. joulukuuta 2020 18.25
Vastaanottaja: OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net>
Aihe: Re: [JPP-Devel] Some tabs in UI unusable
I can see at 0:41 sec of your videa that the statistics of your layer has a very low and negative lower value (something like -7 with 13 or 14 decimal) comparing to other intervals.
Raster styling sometimes fails when it finds that the lower or upper value has a number quite out of the order it expects.
In most cases this lower/upper number is the effect of a wrong statistics of the raster value, in many cases the number corresponding to no-data was "hired" into the range of effective values (think about opening a raster with Gimp/Photoshop and saving it back).
Some years ago I added to OpenJUMP a tool to solve this problem:
Check on "Raster>Manage Raster>Stretch Raster". And choose "Stretch raster to minimum value".
This algorithm reset one value, the lowermost one, as no data.
This possibly will correct your file and Raster Styling will work fine.
Let me know. Maybe this is not the solution and we must find another one
Hi,
I made a video openjump_ui.zip (latuviitta.org) that shows the trouble I have with using raster styling. The controls on the first tab are first all hidden. Some of them appear if I hover around with the mouse but not all. The two other tabs show OK. Finally I try to change back to the first tab but nothing happens.
I have faced similar problem with some other panels and tabs before but usually only after OpenJUMP has been on for a long time. I am using Window 10 and Corretto 8, 64 bit java and OpenJUMP Plus snapshot from today.
-Jukka Rahkonen-
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel