[JPP-Devel] [jump-pilot:bugs] #522 CADTools - Drawing Blocks throws NPEs
hey Peppe, now we are here, let's finish this Ticket here, no need for a copy on github. just new one should go to github as we moved the development there :) wrt. to CadTools, please try https://sourceforge.net/projects/jump-pilot/files/OpenJUMP2_snapshots/OpenJUMP-Portable-20220816-r5128%5B042219b%5D-PLUS.zip works for me as you can see on the screenshot below. wrt. to VertexSymbols. i can draw a line and decorate it fine. find a project bore02.jmp/jml attached. reopening the project, still shows the decoration. i fail to open your project from above or rather it doesn't find the layer data, when pointing to the file i get a stacktrace s.b. (will investigate) ~~~ java.lang.Exception: Loading project file 'D:\Project\Project.jmp' failed with the error: String index out of range: -1. at org.openjump.core.ui.plugin.file.open.OpenProjectWizard.open(OpenProjectWizard.java:194) at org.openjump.core.ui.plugin.file.open.OpenProjectWizard.open(OpenProjectWizard.java:135) at org.openjump.core.ui.plugin.file.open.OpenProjectWizard.run(OpenProjectWizard.java:130) at org.openjump.core.ui.plugin.AbstractWizardPlugin.run(AbstractWizardPlugin.java:73) at com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.base/java.lang.String.substring(Unknown Source) at org.openjump.core.ui.plugin.file.FindFile.getFileName(FindFile.java:91) at org.openjump.core.ui.plugin.file.open.OpenProjectWizard.loadLayers(OpenProjectWizard.java:353) at org.openjump.core.ui.plugin.file.open.OpenProjectWizard.open(OpenProjectWizard.java:183) ... 4 more Attachments: - [bore01.JPG](https://sourceforge.net/p/jump-pilot/bugs/_discuss/thread/bb5863b0c4/1cb9/attachment/bore01.JPG) (129.1 kB; image/jpeg) --- ** [bugs:#522] CADTools - Drawing Blocks throws NPEs** **Status:** open **Milestone:** undecided **Created:** Tue Aug 16, 2022 09:57 AM UTC by Giuseppe Aruta **Last Updated:** Fri Aug 19, 2022 06:26 AM UTC **Owner:** nobody PlugIn: CADTools Bug description: It is not possible to draw a good 50% of the embedded blocks this which throw null point exceptions. It seems that blocks made by simple polygons or multipolygons with no holes can be drawn. Blocks made by the previous geometries with holes not. Blocks displayed by CADTools are stored into Lib/Ext/VertexImages folder (blocks are used by CadPlan Vertex Images plugin too) and they are simple WKT files --- 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] Upgrade srid strings
I will check this one ASAP.Peppe, could you please open an issue.Michaëlenvoyé : 18 août 2022 à 13:08de : edgar.sol...@web.deà : jump-pilot-devel@lists.sourceforge.netobjet : Re: [JPP-Devel] Upgrade srid stringshey Peppe,i'm not familiar with the code, so i'll wait for Mike to tackle this.maybe best to create an Issue on https://github.com/openjump-gis/openjump/issues so it does not get forgotten? ..edeOn 18.08.2022 10:40, Giuseppe Aruta wrote:I realized that embedded srid definitions were not upgraded, at least for Italian codes.I made an upgrade for the file srid.txt and srid2prj.txt, both located into the package org.openjump.core.ccordsys.utils.The epsg codeI I added are the following :6704: RDN2008 geocentric6705: RDN2008 3D geographic6706: RDN2008 2D geographic6707: RDN2008 / UTM zone 32N (N-E)6708: RDN2008 / UTM zone 33N (N-E)6709: RDN2008 / UTM zone 34N (N-E)6875: RDN2008 / Italy zone (N-E)6876: RDN2008 / Zone 12 (N-E)7791: RDN2008 / UTM zone 32N7792: RDN2008 / UTM zone 33N7793: RDN2008 / UTM zone 34N7794: RDN2008 / Italy zone (E-N)7795: RDN2008 / Zone 12 (E-N)I ask if someone can add these files to related packageI also found that pe_list_projcs_geogcs.csv doesn't have these definitions. I don't know if this file is downloaded from EPSG (in this case it should be upgraded) ormade by some of us (Michael?)Best regardsPeppe___Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel___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] #522 CADTools - Drawing Blocks throws NPEs
I added the screenshot as it seems that the same bug affects also Vertex symbols plugin. Since CADTools and Vertex Symbols (and FillPattern) plugins share the same way to read wkt, it could be a problem on OpenJUMP jar file and not on the plugins --- ** [bugs:#522] CADTools - Drawing Blocks throws NPEs** **Status:** open **Milestone:** undecided **Created:** Tue Aug 16, 2022 09:57 AM UTC by Giuseppe Aruta **Last Updated:** Fri Aug 19, 2022 05:28 AM UTC **Owner:** nobody PlugIn: CADTools Bug description: It is not possible to draw a good 50% of the embedded blocks this which throw null point exceptions. It seems that blocks made by simple polygons or multipolygons with no holes can be drawn. Blocks made by the previous geometries with holes not. Blocks displayed by CADTools are stored into Lib/Ext/VertexImages folder (blocks are used by CadPlan Vertex Images plugin too) and they are simple WKT files --- 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