Hi,
Yes, the tools are in the Raster menu.
It seems that this issue happens with Java 11 but not with Java 8 ( versions I
have are OpenJDK 11 and Corretto 8)
With Java 8
* Countours are OK (but user should know that contours must be created for
the raw, not colorized image)
* Histogram is OK
* Create Polygons From Raster – AdbToolbox gives NPE
java.lang.NullPointerException
at
org.openjump.core.rasterimage.algorithms.VectorizeAlgorithm.toPolygonsAdbToolBox(VectorizeAlgorithm.java:111)
at
org.openjump.core.ui.plugin.raster.VectorizeToPolygonsPlugIn.run(VectorizeToPolygonsPlugIn.java:170)
at
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151)
Start with Java 11 prints also something that Java 8 does not into console
window:
---Start OJ---
java.nio.file.NoSuchFileException:
C:\ohjelmat\OJ\OpenJUMP-20201222-r6656-PLUS\conf
at
java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at
java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:96)
at
java.base/sun.nio.fs.WindowsLinkSupport.getRealPath(WindowsLinkSupport.java:257)
at java.base/sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:891)
at java.base/sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:42)
at
com.vividsolutions.jump.workbench.plugin.PlugInClassLoader.toFileURL(PlugInClassLoader.java:140)
at
com.vividsolutions.jump.workbench.plugin.PlugInClassLoader.addClassPathToUCP(PlugInClassLoader.java:121)
at
com.vividsolutions.jump.workbench.plugin.PlugInClassLoader.<init>(PlugInClassLoader.java:27)
at
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at
java.base/java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1977)
at java.base/java.lang.System.initPhase3(System.java:2069)
And both Java 8 and Java 11 prints this warning about 30 times during the
startup. It must have something to do with the new style option “Interior
border (slow)”.
[WARN] 10:50:51.916 Expected 'interior' attribute but found none. Tag = line;
Attributes = [Attribute: enabled="true"], [Attribute: width="1"]
-Jukka-
Lähettäjä: Michaud Michael <[email protected]>
Lähetetty: tiistai 22. joulukuuta 2020 23.36
Vastaanottaja: OpenJump develop and use <[email protected]>
Aihe: Re: [JPP-Devel] Some Sextante tools don't like negative pixel values
Hi Jukka,
Did you mean tools of Raster menu working on Sextante raster ? Exception seems
to come from VectorizeToContoursPlugIn.
I tried to reproduce the error with your last image (values from -16 to 0), but
it produced contours without error.
Michaël
envoyé : 22 décembre 2020 à 16:22
de : "Rahkonen Jukka (MML)"
<[email protected]<mailto:[email protected]>>
à :
"[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
objet : [JPP-Devel] Some Sextante tools don't like negative pixel values
Hi,
I believe that the stack trace below means that the tool does not accept
negative values. Tools which generate these errors are in the Sextante menu:
* histogram
* create polygons with the Adbtoolbox algorithm
* create contours
java.lang.NumberFormatException: For input string: "?16.257333755493"
at
java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054)
at
java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at
java.base/java.lang.Double.parseDouble(Double.java:543)
at java.base/java.lang.Double.valueOf(Double.java:506)
at
com.vividsolutions.jump.util.StringUtil.toString(StringUtil.java:397)
at
com.vividsolutions.jump.workbench.ui.AbstractMultiInputDialog.addDoubleField(AbstractMultiInputDialog.java:723)
at
com.vividsolutions.jump.workbench.ui.AbstractMultiInputDialog.addDoubleField(AbstractMultiInputDialog.java:705)
at
org.openjump.core.ui.plugin.raster.VectorizeToContoursPlugIn.setDialogValues(VectorizeToContoursPlugIn.java:154)
at
org.openjump.core.ui.plugin.raster.VectorizeToContoursPlugIn.execute(VectorizeToContoursPlugIn.java:109)
at
com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:344)
at
java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at
java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
at
java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at
java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at
java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
at
java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1020)
at
java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1064)
at
java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
at
java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at
java.desktop/java.awt.Component.processEvent(Component.java:6397)
at
java.desktop/java.awt.Container.processEvent(Container.java:2263)
at
java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
at
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at
java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
at
java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at
java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at
java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at
java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at
java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
at
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at
java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at
java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at
java.base/java.security.AccessController.doPrivileged(Native Method)
at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at
java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at
java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at
java.base/java.security.AccessController.doPrivileged(Native Method)
at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at
java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at
java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at
java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
-Jukka Rahkonen-
_______________________________________________
Jump-pilot-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel