[JPP-Devel] [jump-pilot:bugs] #502 ColorTheming style throws exception and makes UI unusable
- **status**: open --> pending - **Comment**: solved in r6416 --- ** [bugs:#502] ColorTheming style throws exception and makes UI unusable** **Status:** pending **Milestone:** OJ_1.16 **Created:** Wed Sep 02, 2020 06:04 PM UTC by michael michaud **Last Updated:** Wed Sep 02, 2020 06:04 PM UTC **Owner:** michael michaud Import a shapefile with a double attribute Choose color theming style, choose the double attribute and apply one of the classification method dedicated to numeric attributes (e.g. equals intevals). Apply. Exception in thread "AWT-EventQueue-0" com.vividsolutions.jts.util.AssertionFailedException at com.vividsolutions.jts.util.Assert.isTrue(Assert.java:68) at com.vividsolutions.jts.util.Assert.isTrue(Assert.java:54) at com.vividsolutions.jump.workbench.model.LayerTreeModel$ColorThemingValue.(LayerTreeModel.java:73) at com.vividsolutions.jump.workbench.model.LayerTreeModel.getChildren(LayerTreeModel.java:267) at com.vividsolutions.jump.util.SimpleTreeModel.children(SimpleTreeModel.java:142) at com.vividsolutions.jump.util.SimpleTreeModel.getChildCount(SimpleTreeModel.java:146) at com.vividsolutions.jump.util.SimpleTreeModel.isLeaf(SimpleTreeModel.java:95) at com.vividsolutions.jump.workbench.ui.FirableTreeModelWrapper.isLeaf(FirableTreeModelWrapper.java:63) at java.desktop/javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:3156) at java.desktop/javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:493) at java.desktop/javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1344) at java.desktop/javax.swing.tree.VariableHeightLayoutCache.createNodeAt(VariableHeightLayoutCache.java:767) at java.desktop/javax.swing.tree.VariableHeightLayoutCache.treeStructureChanged(VariableHeightLayoutCache.java:648) at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.treeStructureChanged(BasicTreeUI.java:4324) at com.vividsolutions.jump.workbench.ui.FirableTreeModelWrapper.fireTreeStructureChanged(FirableTreeModelWrapper.java:129) at com.vividsolutions.jump.workbench.ui.TreeLayerNamePanel$13.run(TreeLayerNamePanel.java:833) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) 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.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) 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) --- 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
[JPP-Devel] SVN: [6416] core/trunk
Revision: 6416 http://sourceforge.net/p/jump-pilot/code/6416 Author: michaudm Date: 2020-09-02 20:55:26 + (Wed, 02 Sep 2020) Log Message: --- fix #502 : fatal bug in ColorThemingStyle Modified Paths: -- core/trunk/ChangeLog core/trunk/src/com/vividsolutions/jump/util/Range.java Modified: core/trunk/ChangeLog === --- core/trunk/ChangeLog2020-09-02 12:03:05 UTC (rev 6415) +++ core/trunk/ChangeLog2020-09-02 20:55:26 UTC (rev 6416) @@ -6,6 +6,7 @@ 2020-09-02 mmichaud * small fix in csv driver -> v1.1.1 + * fix #502 : fatal bug in ColorThemingStyle 2020-08-31 mmichaud * bugfix #385 RasterImageLayer was not cloneable Modified: core/trunk/src/com/vividsolutions/jump/util/Range.java === --- core/trunk/src/com/vividsolutions/jump/util/Range.java 2020-09-02 12:03:05 UTC (rev 6415) +++ core/trunk/src/com/vividsolutions/jump/util/Range.java 2020-09-02 20:55:26 UTC (rev 6416) @@ -79,6 +79,10 @@ public boolean equals(Object obj) { return Range.RANGE_COMPARATOR.compare(this, obj) == 0; } +@Override +public int hashCode() { +return toString().hashCode(); +} public boolean isIncludingMax() { return includingMax; } ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] [jump-pilot:bugs] #502 ColorTheming style throws exception and makes UI unusable
--- ** [bugs:#502] ColorTheming style throws exception and makes UI unusable** **Status:** open **Milestone:** OJ_1.16 **Created:** Wed Sep 02, 2020 06:04 PM UTC by michael michaud **Last Updated:** Wed Sep 02, 2020 06:04 PM UTC **Owner:** michael michaud Import a shapefile with a double attribute Choose color theming style, choose the double attribute and apply one of the classification method dedicated to numeric attributes (e.g. equals intevals). Apply. Exception in thread "AWT-EventQueue-0" com.vividsolutions.jts.util.AssertionFailedException at com.vividsolutions.jts.util.Assert.isTrue(Assert.java:68) at com.vividsolutions.jts.util.Assert.isTrue(Assert.java:54) at com.vividsolutions.jump.workbench.model.LayerTreeModel$ColorThemingValue.(LayerTreeModel.java:73) at com.vividsolutions.jump.workbench.model.LayerTreeModel.getChildren(LayerTreeModel.java:267) at com.vividsolutions.jump.util.SimpleTreeModel.children(SimpleTreeModel.java:142) at com.vividsolutions.jump.util.SimpleTreeModel.getChildCount(SimpleTreeModel.java:146) at com.vividsolutions.jump.util.SimpleTreeModel.isLeaf(SimpleTreeModel.java:95) at com.vividsolutions.jump.workbench.ui.FirableTreeModelWrapper.isLeaf(FirableTreeModelWrapper.java:63) at java.desktop/javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:3156) at java.desktop/javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:493) at java.desktop/javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1344) at java.desktop/javax.swing.tree.VariableHeightLayoutCache.createNodeAt(VariableHeightLayoutCache.java:767) at java.desktop/javax.swing.tree.VariableHeightLayoutCache.treeStructureChanged(VariableHeightLayoutCache.java:648) at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.treeStructureChanged(BasicTreeUI.java:4324) at com.vividsolutions.jump.workbench.ui.FirableTreeModelWrapper.fireTreeStructureChanged(FirableTreeModelWrapper.java:129) at com.vividsolutions.jump.workbench.ui.TreeLayerNamePanel$13.run(TreeLayerNamePanel.java:833) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) 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.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) 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) --- 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
Re: [JPP-Devel] wms layer title
Did you change null title of layer elements ?Seems that the getTitle you changed is a global title of the main document.Anyway, I could have a try this morning with the co-worker who reported the bug, and the bug was still there.Michaëlenvoyé : 2 septembre 2020 à 14:07de : edgar.sol...@web.deà : "jump-pilot-devel@lists.sourceforge.net >> jump devel" objet : Re: [JPP-Devel] wms layer titleOn 9/2/2020 14:02, Michaud Michael wrote:Hi Ede,One problem with wms title was with "Layer" title = null. Ticket is ambiguousbecause the exception is thrown during getCapabilities which also have a title.Just tried a new fix. Will let you know soon.why? title was set to an empty String ("") per default by my fix.. ede___Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] [jump-pilot:bugs] #498 Most GeoTIFF drivers fail with a simple GeoTIFF image
Hi Mihael, please, wait to test: I found that I need to make an extra modification on the library (in was on my local OJ but not on the SVN upgrade) I will do other tests and upgrade the new version tomorrow Peppe > Thanks for your effort Peppe, I'll try it soon and I'll come back to you. > Michaël envoyé : 2 septembre 2020 à 11:29 de : Giuseppe Aruta à : > "[jump-pilot:bugs] " objet : [jump-pilot:bugs] #498 Most GeoTIFF drivers > fail with a simple GeoTIFF image Sent from sourceforge.net because you > indicated interest in https://sourceforge.net/p/jump-pilot/bugs/498/ To > unsubscribe from further messages, please visit > https://sourceforge.net/auth/subscriptions/ Last Updated: Wed Sep 02, 2020 > 09:29 AM UTC Owner: nobody Attachments: > ___ Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] [jump-pilot:bugs] Re: #498 Most GeoTIFF drivers fail with a simple GeoTIFF image
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;> http://www.w3.org/1999/xhtml;> Thanks for your effort Peppe,I'll try it soon and I'll come back to you.Michaëlenvoyé : 2 septembre 2020 à 11:29de : Giuseppe Aruta à : "[jump-pilot:bugs] " <4...@bugs.jump-pilot.p.re.sourceforge.net>objet : [jump-pilot:bugs] #498 Most GeoTIFF drivers fail with a simple GeoTIFF imagePlease try OJ 6410 https://sourceforge.net/p/jump-pilot/bugs/498/;>[bugs:#498] Most GeoTIFF drivers fail with a simple GeoTIFF imageStatus: open Milestone: OJ_1.16 Created: Sun Aug 30, 2020 08:02 AM UTC by michael michaud Last Updated: Wed Sep 02, 2020 09:28 AM UTC Owner: nobody Attachments:https://sourceforge.net/p/jump-pilot/bugs/498/attachment/small_world.tif;>small_world.tif (240.6 kB; image/tiff)I often have a bad experience trying to read simple geotiff. To have a more objective view of the situation, I get a very simple image from the test directory of GDAL library and tested it against all our drivers. Image is attached. Here are its main characteristics (I think they are very common one) : small_world.tif size : 400 x 200 Coordinate System : wgs84 (4326) Metadata : AREA_OR_POINT=AREA Image Structure Metadata : INTERLEAVE=BAND 3 bands, Block=400x20, Type=Byte, ColorInterp=RGBI tried to import it with all the image drivers we propose (8 from Open File + ImageRaster Sextante). 3 drivers only could import the image. All others fail throughing a rough java exception. Image Raster don't fail immediately, but it does not display the image and throws NPE if one try to get more information.List of success/failures and exceptions thrownReferenced Image (ImageIO[ext],JAI) : OK ImageIO TIFF Image Reader version 1.0 : OK ImageIO TIFF Image Reader version 1.1 : OK Standard TIFF Image Reader java.lang.IllegalAccessException: class com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset cannot access class com.sun.imageio.plugins.tiff.TIFFImageReaderSpi (in module java.desktop) because module java.desktop does not export com.sun.imageio.plugins.tiff to unnamed module @12405818 at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361) at java.base/jdk.internal.reflect.Reflection.ensureMemberAccess(Reflection.java:99) at java.base/java.lang.Class.newInstance(Class.java:579) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.createFeatureFactory(ImageryLayerDataset.java:236) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.attachImage(ImageryLayerDataset.java:117) Referenced Image (JAI TIF) java.lang.NullPointerException java.lang.NullPointerException at com.sun.media.jai.util.SunCachedTile.(SunCachedTile.java:80) at com.sun.media.jai.util.SunTileCache.add(SunTileCache.java:257) at javax.media.jai.OpImage.addTileToCache(OpImage.java:1087) at javax.media.jai.OpImage.getTile(OpImage.java:1142) at javax.media.jai.PlanarImage.getData(PlanarImage.java:2085) at javax.media.jai.RenderedImageAdapter.getData(RenderedImageAdapter.java:158) at javax.media.jai.ScaleOpImage.computeTile(ScaleOpImage.java:1099) at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904) at javax.media.jai.OpImage.getTile(OpImage.java:1129) at com.sun.media.jai.opimage.CropOpImage.getTile(CropOpImage.java:122) at com.sun.media.jai.opimage.TranslateIntOpImage.getTile(TranslateIntOpImage.java:132) at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2343) at javax.media.jai.RenderedOp.copyData(RenderedOp.java:2299) at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2525) at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2546) at com.vividsolutions.jump.workbench.imagery.geoimg.GeoImage.paint(GeoImage.java:285) at com.vividsolutions.jump.workbench.imagery.ReferencedImageStyle.paint(ReferencedImageStyle.java:61) Referenced Image (JAI TIF) : same errorBuffered Image (common) : com.vividsolutions.jump.workbench.imagery.ReferencedImageException: java.lang.ArrayIndexOutOfBoundsException: Index 8000 out of bounds for length 8000 at com.vividsolutions.jump.workbench.imagery.graphic.CommonsImage.initImage(CommonsImage.java:112) at com.vividsolutions.jump.workbench.imagery.graphic.AbstractGraphicImage.computeEnvelope(AbstractGraphicImage.java:122) at com.vividsolutions.jump.workbench.imagery.graphic.AbstractGraphicImage.getEnvelope(AbstractGraphicImage.java:114) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.attachImage(ImageryLayerDataset.java:125) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.attachImage(ImageryLayerDataset.java:106) at com.vividsolutions.jump.workbench.imagery.ReferencedImageFactoryFileLayerLoader.createImageFeature(ReferencedImageFactoryFileLayerLoader.java:199) at com.vividsolutions.jump.workbench.imagery.ReferencedImageFactoryFileLayerLoader.open(ReferencedImageFactoryFileLayerLoader.java:102) at
Re: [JPP-Devel] wms layer title
On 9/2/2020 14:02, Michaud Michael wrote: > Hi Ede, > > One problem with wms title was with "Layer" title = null. Ticket is ambiguous > because the exception is thrown during getCapabilities which also have a > title. > > Just tried a new fix. Will let you know soon. why? title was set to an empty String ("") per default by my fix.. ede ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6415] core/trunk/src/org/openjump/core/rasterimage/TiffUtils.java
Revision: 6415 http://sourceforge.net/p/jump-pilot/code/6415 Author: ma15569 Date: 2020-09-02 12:03:05 + (Wed, 02 Sep 2020) Log Message: --- Added methods to use, whenever it is possible, ImageIO -ext instead of JAI Modified Paths: -- core/trunk/src/org/openjump/core/rasterimage/TiffUtils.java Modified: core/trunk/src/org/openjump/core/rasterimage/TiffUtils.java === --- core/trunk/src/org/openjump/core/rasterimage/TiffUtils.java 2020-09-02 11:59:16 UTC (rev 6414) +++ core/trunk/src/org/openjump/core/rasterimage/TiffUtils.java 2020-09-02 12:03:05 UTC (rev 6415) @@ -3,6 +3,8 @@ import com.vividsolutions.jts.geom.Coordinate; import com.vividsolutions.jts.geom.Envelope; import com.vividsolutions.jump.workbench.Logger; +import com.vividsolutions.jump.workbench.imagery.ReferencedImageException; +import com.vividsolutions.jump.workbench.imagery.geoimg.GeoReferencedRaster; import java.awt.Point; import java.awt.Rectangle; @@ -323,18 +325,71 @@ } -public static RenderedOp readSubsampled(File tiffFile, float xScale, float yScale) { - + /* public static RenderedOp readSubsampled(File tiffFile, float xScale, float yScale) { System.setProperty("com.sun.media.jai.disableMediaLib", "true"); RenderedOp renderedOp = JAI.create("fileload", tiffFile.getAbsolutePath()); ParameterBlock parameterBlock = new ParameterBlock(); parameterBlock.addSource(renderedOp); - parameterBlock.add(xScale); parameterBlock.add(yScale); return JAI.create("scale", parameterBlock); +}*/ + +//[Giuseppe Aruta 2020-02-09] whenever it is possible +// we use ImageIO-ext first to retrive the Image + +public static RenderedOp readSubsampled(File tiffFile, float xScale, float yScale) { + RenderedOp renderedOp = null; + try { +//We first try with gdal/ImageIO-ext + GeoReferencedRaster geoRaster = new GeoReferencedRaster(tiffFile.toURI().toString()); + renderedOp = geoRaster.getImage(); + } catch (ReferencedImageException e) { + //Then we use JAI + System.setProperty("com.sun.media.jai.disableMediaLib", "true"); + renderedOp = JAI.create("fileload", tiffFile.getAbsolutePath()); + + } +ParameterBlock parameterBlock = new ParameterBlock(); +parameterBlock.addSource(renderedOp); +parameterBlock.add(xScale); +parameterBlock.add(yScale); +renderedOp = JAI.create("scale", parameterBlock); +return JAI.create("scale", parameterBlock); + } + + +public static Double readCellValue(File tiffFile, int col, int row, + int band) { +RenderedOp renderedOp = null; +Rectangle rectangle = new Rectangle(col, row, 1, 1); + try { + GeoReferencedRaster geoRaster = new GeoReferencedRaster(tiffFile.toURI().toString()); + renderedOp = geoRaster.getImage(); + } + catch (Exception e) { + System.setProperty("com.sun.media.jai.disableMediaLib", "true"); + renderedOp = javax.media.jai.JAI.create("fileload", + tiffFile.getAbsolutePath()); + } + return renderedOp.getData(rectangle) + .getSampleDouble(col, row, band); + } + + +public static RenderedOp getRenderedOp(File tiffFile) { +RenderedOp renderedOp = null; + try { + GeoReferencedRaster geoRaster = new GeoReferencedRaster(tiffFile.toURI().toString()); + renderedOp = geoRaster.getImage(); + } + catch (Exception e) { + System.setProperty("com.sun.media.jai.disableMediaLib", "true"); + renderedOp = javax.media.jai.JAI.create("fileload", + tiffFile.toURI().toString()); + } + return renderedOp; } - } ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] wms layer title
Hi Ede,One problem with wms title was with "Layer" title = null. Ticket is ambiguous because the exception is thrown during getCapabilities which also have a title.Just tried a new fix. Will let you know soon. ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6414] core/trunk/src/com/vividsolutions/wms/AbstractParser.java
Revision: 6414 http://sourceforge.net/p/jump-pilot/code/6414 Author: michaudm Date: 2020-09-02 11:59:16 + (Wed, 02 Sep 2020) Log Message: --- Try a new fix for #491 Modified Paths: -- core/trunk/src/com/vividsolutions/wms/AbstractParser.java Modified: core/trunk/src/com/vividsolutions/wms/AbstractParser.java === --- core/trunk/src/com/vividsolutions/wms/AbstractParser.java 2020-09-02 11:53:46 UTC (rev 6413) +++ core/trunk/src/com/vividsolutions/wms/AbstractParser.java 2020-09-02 11:59:16 UTC (rev 6414) @@ -274,7 +274,7 @@ Logger.error( "Exception caught in wmsLayerFromNode(): " + e.toString() ); } } - +if (title == null) title = name + " (untitled)"; // call the new constructor with boundingBoxList in MapLayer [uwe dalluege] return new MapLayer(name, title, srsList, subLayers, geographicBBox, boundingBoxList, styles); } ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6413] core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ ConsoleApplication1
Revision: 6413 http://sourceforge.net/p/jump-pilot/code/6413 Author: edso Date: 2020-09-02 11:53:46 + (Wed, 02 Sep 2020) Log Message: --- remove some debug output Modified Paths: -- core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj.filters core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/OpenJUMP.aps core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/OpenJUMP.cpp core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/OpenJUMP.rc core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/resource.h Modified: core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj === --- core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj 2020-09-02 11:49:20 UTC (rev 6412) +++ core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj 2020-09-02 11:53:46 UTC (rev 6413) @@ -35,7 +35,7 @@ Application false -v140_xp +v141_xp true Unicode false @@ -172,7 +172,7 @@ - + Modified: core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj.filters === --- core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj.filters 2020-09-02 11:49:20 UTC (rev 6412) +++ core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj.filters 2020-09-02 11:53:46 UTC (rev 6413) @@ -39,7 +39,7 @@ - + Resource Files Modified: core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/OpenJUMP.aps === (Binary files differ) Modified: core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/OpenJUMP.cpp === --- core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/OpenJUMP.cpp 2020-09-02 11:49:20 UTC (rev 6412) +++ core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/OpenJUMP.cpp 2020-09-02 11:53:46 UTC (rev 6413) @@ -41,9 +41,9 @@ new_argv[new_length-1] = NULL; // debug printout - for (int i = 0; i < new_length; i++) { - printf("Arg %d %s\n", i, new_argv[i]); - } + //for (int i = 0; i < new_length; i++) { + // printf("Arg %d %s\n", i, new_argv[i]); + //} //const char *test[3] = { "/C", "oj_windows.bat", NULL }; _spawnvp(P_WAIT, "cmd.exe", new_argv ); Modified: core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/OpenJUMP.rc === (Binary files differ) Modified: core/trunk/launcher/OJ-Windows-Exe/ConsoleApplication1/ConsoleApplication1/resource.h === (Binary files differ) ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6412] core/trunk/scripts/OpenJUMP.exe
Revision: 6412 http://sourceforge.net/p/jump-pilot/code/6412 Author: edso Date: 2020-09-02 11:49:20 + (Wed, 02 Sep 2020) Log Message: --- remove some debug output Modified Paths: -- core/trunk/scripts/OpenJUMP.exe Modified: core/trunk/scripts/OpenJUMP.exe === (Binary files differ) ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6411] core/trunk/ChangeLog
Revision: 6411 http://sourceforge.net/p/jump-pilot/code/6411 Author: michaudm Date: 2020-09-02 11:46:23 + (Wed, 02 Sep 2020) Log Message: --- small fix in csv driver -> v1.1.1 Modified Paths: -- core/trunk/ChangeLog Modified: core/trunk/ChangeLog === --- core/trunk/ChangeLog2020-09-02 09:20:35 UTC (rev 6410) +++ core/trunk/ChangeLog2020-09-02 11:46:23 UTC (rev 6411) @@ -4,6 +4,9 @@ # 3. be concise but convey the change in a way that ordinary users understand #< 80 chars --># +2020-09-02 mmichaud + * small fix in csv driver -> v1.1.1 + 2020-08-31 mmichaud * bugfix #385 RasterImageLayer was not cloneable ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] [jump-pilot:bugs] #494 Load WKT file with set options
- **status**: pending --> closed-fixed - **Milestone**: --> undecided - **Comment**: --- ** [bugs:#494] Load WKT file with set options** **Status:** closed-fixed **Milestone:** undecided **Labels:** WKT WKT (set options) **Created:** Thu Jul 30, 2020 08:54 AM UTC by János Tamás Kis **Last Updated:** Wed Sep 02, 2020 11:02 AM UTC **Owner:** michael michaud **Attachments:** - [proba.jmp](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/proba.jmp) (6.5 kB; application/octet-stream) - [proba.wkt](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/proba.wkt) (149 Bytes; application/octet-stream) - [reverse.jmp](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/reverse.jmp) (7.2 kB; application/octet-stream) - [reverse.wkt](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/reverse.wkt) (149 Bytes; application/octet-stream) I have a simple WKT file with an attribute data (like 'proba.wkt' file) where the geomerty is in the second data field/column. I have open it with the "wkt (set options)" function into a new project. I have set the "Column containing WKT geometry" listbox to "2". That was great: I could see the map and data. I have saved the project as proba.jmp and I saw the ~~~ WKT-Column 2 ~~~ lines in JMP file so I thought everyhing is OK, but when I tried reopen the JMP file I got a java.lang.Exception: > Field 1 is needed for geometry but [] has only 0 fields. What was wrong...? It's OK, I tried other way... Let be the geometry in the first and the attribute data in the second data field/column (like 'reverse.wkt' file) and open it (with "Column containing WKT geometry" listbox to "1" option) and save the project (reverse.jmp). There are the ~~~ WKT-Column 1 ~~~ rows. When I tried reopen then I got the > Field 0 is needed for geometry but [] has only 0 fields exception, similar before but the index is 0... I am afraid, the JMP files are correct but the loader have wrong about indexing besause it try load geometry from other column what I have set and stored in JMP file or what am i wrong with? --- 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
[JPP-Devel] [jump-pilot:bugs] #494 Load WKT file with set options
Hi, Ok, I understand. We can close, in my opinion. There are more things yet but these aren't for this topic. Thank you for your efforts and support :) --- ** [bugs:#494] Load WKT file with set options** **Status:** pending **Milestone:** **Labels:** WKT WKT (set options) **Created:** Thu Jul 30, 2020 08:54 AM UTC by János Tamás Kis **Last Updated:** Tue Sep 01, 2020 09:57 PM UTC **Owner:** michael michaud **Attachments:** - [proba.jmp](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/proba.jmp) (6.5 kB; application/octet-stream) - [proba.wkt](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/proba.wkt) (149 Bytes; application/octet-stream) - [reverse.jmp](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/reverse.jmp) (7.2 kB; application/octet-stream) - [reverse.wkt](https://sourceforge.net/p/jump-pilot/bugs/494/attachment/reverse.wkt) (149 Bytes; application/octet-stream) I have a simple WKT file with an attribute data (like 'proba.wkt' file) where the geomerty is in the second data field/column. I have open it with the "wkt (set options)" function into a new project. I have set the "Column containing WKT geometry" listbox to "2". That was great: I could see the map and data. I have saved the project as proba.jmp and I saw the ~~~ WKT-Column 2 ~~~ lines in JMP file so I thought everyhing is OK, but when I tried reopen the JMP file I got a java.lang.Exception: > Field 1 is needed for geometry but [] has only 0 fields. What was wrong...? It's OK, I tried other way... Let be the geometry in the first and the attribute data in the second data field/column (like 'reverse.wkt' file) and open it (with "Column containing WKT geometry" listbox to "1" option) and save the project (reverse.jmp). There are the ~~~ WKT-Column 1 ~~~ rows. When I tried reopen then I got the > Field 0 is needed for geometry but [] has only 0 fields exception, similar before but the index is 0... I am afraid, the JMP files are correct but the loader have wrong about indexing besause it try load geometry from other column what I have set and stored in JMP file or what am i wrong with? --- 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
[JPP-Devel] [jump-pilot:bugs] #498 Most GeoTIFF drivers fail with a simple GeoTIFF image
Please try OJ 6410 --- ** [bugs:#498] Most GeoTIFF drivers fail with a simple GeoTIFF image** **Status:** open **Milestone:** OJ_1.16 **Created:** Sun Aug 30, 2020 08:02 AM UTC by michael michaud **Last Updated:** Wed Sep 02, 2020 09:28 AM UTC **Owner:** nobody **Attachments:** - [small_world.tif](https://sourceforge.net/p/jump-pilot/bugs/498/attachment/small_world.tif) (240.6 kB; image/tiff) I often have a bad experience trying to read simple geotiff. To have a more objective view of the situation, I get a very simple image from the test directory of GDAL library and tested it against all our drivers. Image is attached. Here are its main characteristics (I think they are very common one) : small_world.tif size : 400 x 200 Coordinate System : wgs84 (4326) Metadata : AREA_OR_POINT=AREA Image Structure Metadata : INTERLEAVE=BAND 3 bands, Block=400x20, Type=Byte, ColorInterp=RGB I tried to import it with all the image drivers we propose (8 from Open File + ImageRaster Sextante). 3 drivers only could import the image. All others fail throughing a rough java exception. Image Raster don't fail immediately, but it does not display the image and throws NPE if one try to get more information. List of success/failures and exceptions thrown Referenced Image (ImageIO[ext],JAI) : OK ImageIO TIFF Image Reader version 1.0 : OK ImageIO TIFF Image Reader version 1.1 : OK Standard TIFF Image Reader java.lang.IllegalAccessException: class com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset cannot access class com.sun.imageio.plugins.tiff.TIFFImageReaderSpi (in module java.desktop) because module java.desktop does not export com.sun.imageio.plugins.tiff to unnamed module @12405818 at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361) at java.base/jdk.internal.reflect.Reflection.ensureMemberAccess(Reflection.java:99) at java.base/java.lang.Class.newInstance(Class.java:579) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.createFeatureFactory(ImageryLayerDataset.java:236) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.attachImage(ImageryLayerDataset.java:117) Referenced Image (JAI TIF) java.lang.NullPointerException java.lang.NullPointerException at com.sun.media.jai.util.SunCachedTile.(SunCachedTile.java:80) at com.sun.media.jai.util.SunTileCache.add(SunTileCache.java:257) at javax.media.jai.OpImage.addTileToCache(OpImage.java:1087) at javax.media.jai.OpImage.getTile(OpImage.java:1142) at javax.media.jai.PlanarImage.getData(PlanarImage.java:2085) at javax.media.jai.RenderedImageAdapter.getData(RenderedImageAdapter.java:158) at javax.media.jai.ScaleOpImage.computeTile(ScaleOpImage.java:1099) at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904) at javax.media.jai.OpImage.getTile(OpImage.java:1129) at com.sun.media.jai.opimage.CropOpImage.getTile(CropOpImage.java:122) at com.sun.media.jai.opimage.TranslateIntOpImage.getTile(TranslateIntOpImage.java:132) at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2343) at javax.media.jai.RenderedOp.copyData(RenderedOp.java:2299) at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2525) at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2546) at com.vividsolutions.jump.workbench.imagery.geoimg.GeoImage.paint(GeoImage.java:285) at com.vividsolutions.jump.workbench.imagery.ReferencedImageStyle.paint(ReferencedImageStyle.java:61) Referenced Image (JAI TIF) : same error Buffered Image (common) : com.vividsolutions.jump.workbench.imagery.ReferencedImageException: java.lang.ArrayIndexOutOfBoundsException: Index 8000 out of bounds for length 8000 at com.vividsolutions.jump.workbench.imagery.graphic.CommonsImage.initImage(CommonsImage.java:112) at com.vividsolutions.jump.workbench.imagery.graphic.AbstractGraphicImage.computeEnvelope(AbstractGraphicImage.java:122) at com.vividsolutions.jump.workbench.imagery.graphic.AbstractGraphicImage.getEnvelope(AbstractGraphicImage.java:114) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.attachImage(ImageryLayerDataset.java:125) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.attachImage(ImageryLayerDataset.java:106) at com.vividsolutions.jump.workbench.imagery.ReferencedImageFactoryFileLayerLoader.createImageFeature(ReferencedImageFactoryFileLayerLoader.java:199) at com.vividsolutions.jump.workbench.imagery.ReferencedImageFactoryFileLayerLoader.open(ReferencedImageFactoryFileLayerLoader.java:102) at org.openjump.core.ui.plugin.file.open.OpenFileWizard.run(OpenFileWizard.java:164) GeoTIFF plus (JAI) : java.lang.NullPointerException
[JPP-Devel] [jump-pilot:bugs] #498 Most GeoTIFF drivers fail with a simple GeoTIFF image
Hi Michael, I added a small patch to RasterImageLayer.class (Sextante) which should partially solve the display for tiff loaded via this class. Not sure about the reason (TIFF drivers? Appling symbology?). I still have Error output whenever I use a pixel querry ([ERROR] 11:11:45.369 Planar (band-sequential) format TIFF is not supported.) which works randomly --- ** [bugs:#498] Most GeoTIFF drivers fail with a simple GeoTIFF image** **Status:** open **Milestone:** OJ_1.16 **Created:** Sun Aug 30, 2020 08:02 AM UTC by michael michaud **Last Updated:** Sun Aug 30, 2020 08:02 AM UTC **Owner:** nobody **Attachments:** - [small_world.tif](https://sourceforge.net/p/jump-pilot/bugs/498/attachment/small_world.tif) (240.6 kB; image/tiff) I often have a bad experience trying to read simple geotiff. To have a more objective view of the situation, I get a very simple image from the test directory of GDAL library and tested it against all our drivers. Image is attached. Here are its main characteristics (I think they are very common one) : small_world.tif size : 400 x 200 Coordinate System : wgs84 (4326) Metadata : AREA_OR_POINT=AREA Image Structure Metadata : INTERLEAVE=BAND 3 bands, Block=400x20, Type=Byte, ColorInterp=RGB I tried to import it with all the image drivers we propose (8 from Open File + ImageRaster Sextante). 3 drivers only could import the image. All others fail throughing a rough java exception. Image Raster don't fail immediately, but it does not display the image and throws NPE if one try to get more information. List of success/failures and exceptions thrown Referenced Image (ImageIO[ext],JAI) : OK ImageIO TIFF Image Reader version 1.0 : OK ImageIO TIFF Image Reader version 1.1 : OK Standard TIFF Image Reader java.lang.IllegalAccessException: class com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset cannot access class com.sun.imageio.plugins.tiff.TIFFImageReaderSpi (in module java.desktop) because module java.desktop does not export com.sun.imageio.plugins.tiff to unnamed module @12405818 at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361) at java.base/jdk.internal.reflect.Reflection.ensureMemberAccess(Reflection.java:99) at java.base/java.lang.Class.newInstance(Class.java:579) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.createFeatureFactory(ImageryLayerDataset.java:236) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.attachImage(ImageryLayerDataset.java:117) Referenced Image (JAI TIF) java.lang.NullPointerException java.lang.NullPointerException at com.sun.media.jai.util.SunCachedTile.(SunCachedTile.java:80) at com.sun.media.jai.util.SunTileCache.add(SunTileCache.java:257) at javax.media.jai.OpImage.addTileToCache(OpImage.java:1087) at javax.media.jai.OpImage.getTile(OpImage.java:1142) at javax.media.jai.PlanarImage.getData(PlanarImage.java:2085) at javax.media.jai.RenderedImageAdapter.getData(RenderedImageAdapter.java:158) at javax.media.jai.ScaleOpImage.computeTile(ScaleOpImage.java:1099) at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904) at javax.media.jai.OpImage.getTile(OpImage.java:1129) at com.sun.media.jai.opimage.CropOpImage.getTile(CropOpImage.java:122) at com.sun.media.jai.opimage.TranslateIntOpImage.getTile(TranslateIntOpImage.java:132) at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2343) at javax.media.jai.RenderedOp.copyData(RenderedOp.java:2299) at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2525) at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2546) at com.vividsolutions.jump.workbench.imagery.geoimg.GeoImage.paint(GeoImage.java:285) at com.vividsolutions.jump.workbench.imagery.ReferencedImageStyle.paint(ReferencedImageStyle.java:61) Referenced Image (JAI TIF) : same error Buffered Image (common) : com.vividsolutions.jump.workbench.imagery.ReferencedImageException: java.lang.ArrayIndexOutOfBoundsException: Index 8000 out of bounds for length 8000 at com.vividsolutions.jump.workbench.imagery.graphic.CommonsImage.initImage(CommonsImage.java:112) at com.vividsolutions.jump.workbench.imagery.graphic.AbstractGraphicImage.computeEnvelope(AbstractGraphicImage.java:122) at com.vividsolutions.jump.workbench.imagery.graphic.AbstractGraphicImage.getEnvelope(AbstractGraphicImage.java:114) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.attachImage(ImageryLayerDataset.java:125) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.attachImage(ImageryLayerDataset.java:106) at
[JPP-Devel] SVN: [6410] core/trunk/src/org/openjump/core/rasterimage/ RasterImageLayer.java
Revision: 6410 http://sourceforge.net/p/jump-pilot/code/6410 Author: ma15569 Date: 2020-09-02 09:20:35 + (Wed, 02 Sep 2020) Log Message: --- small patch to solve bug 498 "Most GeoTIFF drivers fail with a simple GeoTIFF image" at least for RasterImageLayer Modified Paths: -- core/trunk/src/org/openjump/core/rasterimage/RasterImageLayer.java Modified: core/trunk/src/org/openjump/core/rasterimage/RasterImageLayer.java === --- core/trunk/src/org/openjump/core/rasterimage/RasterImageLayer.java 2020-09-01 22:08:15 UTC (rev 6409) +++ core/trunk/src/org/openjump/core/rasterimage/RasterImageLayer.java 2020-09-02 09:20:35 UTC (rev 6410) @@ -410,8 +410,15 @@ double maxMemoryToCommit = availRAM - minRamToKeepFree; boolean needFreeRAM = (committedMemory > maxMemoryToCommit); if(needFreeRAM == false){ - -setImage(stretchImageValuesForDisplay()); + //[Giuseppe Aruta 2020-02-09] small patch to solve + //bug 498 "Most GeoTIFF drivers fail with a simple GeoTIFF image" + // at least for RasterImageLayer + try { + setImage(stretchImageValuesForDisplay());} + catch (ArrayIndexOutOfBoundsException e){ + setImage(getImageForDisplay()); + } + //setImage(stretchImageValuesForDisplay()); wasScaledForDisplay = true; setNeedToKeepImage(true); //so small images are not reloaded every time ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel