[JPP-Devel] SVN: [6409] core/trunk/lib/plus

2020-09-01 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6409
  http://sourceforge.net/p/jump-pilot/code/6409
Author:   michaudm
Date: 2020-09-01 22:08:15 + (Tue, 01 Sep 2020)
Log Message:
---
small fix in csv driver -> v1.1.1

Added Paths:
---
core/trunk/lib/plus/csv-driver-1.1.1.jar

Removed Paths:
-
core/trunk/lib/plus/csv-driver-1.1.0.jar

Deleted: core/trunk/lib/plus/csv-driver-1.1.0.jar
===
(Binary files differ)

Added: core/trunk/lib/plus/csv-driver-1.1.1.jar
===
(Binary files differ)

Index: core/trunk/lib/plus/csv-driver-1.1.1.jar
===
--- core/trunk/lib/plus/csv-driver-1.1.1.jar2020-09-01 22:04:18 UTC (rev 
6408)
+++ core/trunk/lib/plus/csv-driver-1.1.1.jar2020-09-01 22:08:15 UTC (rev 
6409)

Property changes on: core/trunk/lib/plus/csv-driver-1.1.1.jar
___
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6408] plug-ins/CsvDriver/trunk

2020-09-01 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6408
  http://sourceforge.net/p/jump-pilot/code/6408
Author:   michaudm
Date: 2020-09-01 22:04:18 + (Tue, 01 Sep 2020)
Log Message:
---
version 1.1.1 : fix error message and accept txt extension for wkt driver

Modified Paths:
--
plug-ins/CsvDriver/trunk/build.xml

plug-ins/CsvDriver/trunk/src/fr/michaelm/jump/drivers/csv/CSVDriverConfiguration.java
plug-ins/CsvDriver/trunk/src/fr/michaelm/jump/drivers/csv/CSVFile.java

Modified: plug-ins/CsvDriver/trunk/build.xml
===
--- plug-ins/CsvDriver/trunk/build.xml  2020-09-01 16:09:03 UTC (rev 6407)
+++ plug-ins/CsvDriver/trunk/build.xml  2020-09-01 22:04:18 UTC (rev 6408)
@@ -16,7 +16,7 @@
 
 
 
-
+
 
 
 

Modified: 
plug-ins/CsvDriver/trunk/src/fr/michaelm/jump/drivers/csv/CSVDriverConfiguration.java
===
--- 
plug-ins/CsvDriver/trunk/src/fr/michaelm/jump/drivers/csv/CSVDriverConfiguration.java
   2020-09-01 16:09:03 UTC (rev 6407)
+++ 
plug-ins/CsvDriver/trunk/src/fr/michaelm/jump/drivers/csv/CSVDriverConfiguration.java
   2020-09-01 22:04:18 UTC (rev 6408)
@@ -43,8 +43,9 @@
 /**
  * Extension loading a driver for csv and other character delimited text files
  * @author Michaël MICHAUD
- * @version 1.0.4 (2020-08-09)
+ * @version 1.1.1 (2020-09-02)
  */
+// 1.1.1 (2020-09-02) fix error message and add txt as a possible extension 
for wkt driver
 // 1.1.0 (2020-08-09) add hu i18n file, wkt loader now accept files with csv 
extension, cleanup
 // 1.0.3 (2020-07-31) fix serialization of fieldSeparator in jmp file (need OJ 
r6363)
 // 1.0.2 (2018-01-27) add I18N for finnish language
@@ -79,7 +80,7 @@
 }
 
 public String getVersion() {
-return "1.0.3 (2020-07-31)";
+return "1.1.1 (2020-09-02)";
 }
 
 public void configure(PlugInContext context) {
@@ -201,6 +202,7 @@
 List wktExtensions = new ArrayList<>();
 wktExtensions.add("wkt");
 wktExtensions.add("csv");
+wktExtensions.add("txt");
 
 DataSourceFileLayerLoader wktOptionsFileLoader = new 
DataSourceFileLayerLoader(
 wcontext, CSVDataSource.class, "wkt (set options)", wktExtensions) 
{

Modified: plug-ins/CsvDriver/trunk/src/fr/michaelm/jump/drivers/csv/CSVFile.java
===
--- plug-ins/CsvDriver/trunk/src/fr/michaelm/jump/drivers/csv/CSVFile.java  
2020-09-01 16:09:03 UTC (rev 6407)
+++ plug-ins/CsvDriver/trunk/src/fr/michaelm/jump/drivers/csv/CSVFile.java  
2020-09-01 22:04:18 UTC (rev 6408)
@@ -559,7 +559,7 @@
 return WKT_READER.read(fields[geometryColumns[0]]);
 } catch (ParseException e) {
 throw new ParseException("Can't parse string '" + 
fields[geometryColumns[0]] +
-"' as double with this CSVFile using fieldSeparator '" + 
fieldSeparator + "'");
+"' as WKT with this CSVFile using fieldSeparator '" + 
fieldSeparator + "'");
 }
 }
 else if (geometryColumns.length == 2) {



___
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: #494 Load WKT file with set options

2020-09-01 Thread michael michaud via Jump-pilot-devel
Janos
"I can accept the restriction of the WKT format, that it can be stored only the 
geometry but then should not be allowed the "WKT (set options)" chance."

Indeed, you can save the wkt with attribute. It is just a little bit hidden : 
save as csv, choose attributes to export and in the attribute list, check 
GEOMETRY ;-)

Event if most code is the same for xyz or wkt import/export, I prefered to 
simulate two different drivers because the list of options id slightly 
different (you have to define a single column for geometry in the case of wkt 
and at least two columns in the case of xy(z) or any other combinaison. But 
now, it is just a matter of selecting the right driver csv (set options) or wkt 
(set options when you import your files (anyway, you must now what is inside). 
IN the current version, wkt (set option) is not proposed for files with 
extension txt. I'll add it in the next version.


---

** [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:** Mon Aug 31, 2020 08:11 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


Re: [JPP-Devel] [jump-pilot:bugs] #500 possible important bug on Batik 1.6.1

2020-09-01 Thread edgar . soldin
thx Peppe,

as long as it didn't get worse all is fine.. ede

On 01.09.2020 18:05, Giuseppe Aruta via Jump-pilot-devel wrote:
> Export is fine for Vector and ReferenceImageLayer at any scale.
>
> Export RasterImageLayer:  it is rescales and sometimes lost if we rescale the 
> view using saving options:
> The difference:
>
> a) Embedded Save view>to SVG and change current scale box  on "Scale 1:" 
> option.
> 1) If I leave the scale box at the default options (scale of the current 
> view), RasterImageLayer is exported at the right size
> 2) If I lchange the export scale the scale box  RasterImageLayer is rescaled 
> loosing proportion to the rest of the map
>
> b) CadPlan Print plugin Save Image (SVG). In this case it is almost difficult 
> save RasterImageLayer. whatever scale I define on the printing view 
> (including scale from OJ view), the raster layer always loose proportion or 
> is lost.
>
> Note that this "bug" was already on previous versions of OpenJUMP but it was 
> never evident
>
>
> ---
>
> ** [bugs:#500] possible important bug on Batik 1.6.1**
>
> **Status:** closed-fixed
> **Milestone:** OJ_1.16
> **Created:** Sun Aug 30, 2020 03:17 PM UTC by Giuseppe Aruta
> **Last Updated:** Tue Sep 01, 2020 03:27 PM UTC
> **Owner:** nobody
> **Attachments:**
>
> - 
> [geotiff.tfw](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tfw)
>  (42 Bytes; application/octet-stream)
> - 
> [geotiff.tif](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif)
>  (986.3 kB; image/tiff)
> - 
> [geotiff.tif.aux.xml](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif.aux.xml)
>  (374 Bytes; text/xml)
>
>
> Hi all,
> (Layerable: RasterImageLayer) whenever I try to create a new raster I get  an 
> error message due to matter that OJ cannot read (or create) a aux.xml file 
> (file where some statistics are stored).
> The bug  is important because OJ cannot read the whole raster if it doesn't 
> recognize that statistics and it affects basically all Sextante algorithms 
> that create rasters
> To reproduce the bug (I used OpenJUMP-20200828-r6395-PLUS - Batik 1.6 and 
> OpenJUMP-20200731-r6363-PLUS - Batik 1.6.1, Ubuntu, OpenJDK 64bit 1.8.0.252)
> a) open a monoband tiff file (I have just attached a sample)
> b) dray a fence on it
> c) click on Layer tree > extract part of the image
>
> I tried to understand the reason.
> What I discover is that OJs with Batik 1.6 are not affected by the problem, 
> while newer OJ with Batik 1.6.1 show the bug.
> That is strange for me as I don't have any error messages on compiling 
> OpenJUMP with either Batik 1.6 or Batik 1.6.1.
> On the other hand I discovered that OJ shipping Batik 1.6.1 have one Batik 
> class with different serial number (batik-1.5-fop-0.20-5.jar).
> Any suggestions?
> Peppe
>
> This is the error message
> javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
> file:/tmp/Parte%20-dialwdgg_4390.tif.aux.xml (File o directory non esistente)
>   at 
> org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:263)
>   at 
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
>   at 
> org.openjump.core.rasterimage.GDALPamDataset.writeStatistics(GDALPamDataset.java:131)
>   at 
> org.openjump.core.rasterimage.TiffUtils.createStatsXml(TiffUtils.java:302)
>   at 
> org.openjump.core.rasterimage.TiffUtils.calculateStats(TiffUtils.java:251)
>   at org.openjump.core.rasterimage.TiffUtils.readImage(TiffUtils.java:68)
>   at 
> org.openjump.core.rasterimage.RasterImageIO.loadImage(RasterImageIO.java:143)
>   at 
> org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
>   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.dispatchEv

[JPP-Devel] SVN: [6407] core/trunk/src/language/jump_es.properties

2020-09-01 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6407
  http://sourceforge.net/p/jump-pilot/code/6407
Author:   ma15569
Date: 2020-09-01 16:09:03 + (Tue, 01 Sep 2020)
Log Message:
---
Correct some Spanish

Modified Paths:
--
core/trunk/src/language/jump_es.properties

Modified: core/trunk/src/language/jump_es.properties
===
--- core/trunk/src/language/jump_es.properties  2020-09-01 16:08:14 UTC (rev 
6406)
+++ core/trunk/src/language/jump_es.properties  2020-09-01 16:09:03 UTC (rev 
6407)
@@ -770,8 +770,8 @@
 org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.miny=min Y
 
org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.north-coordinate=coordenadas
 Norte
 
org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.please-enter-the-image-path=A\u00f1adir
 la posicion de la imagen
-org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.south-coordinate=coordenadas
 sur
-org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.west-coordinate=coordenadas
 oeste
+org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.south-coordinate=coordenadas
 Sur
+org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.west-coordinate=coordenadas
 Oeste
 
org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.worldfile-dialog=Dialogo
 worldfile
 
org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.optimizedworldfile
 =(las siguientes coordenadas est\u00e1n optimizados para la vista actual)
 
org.openjump.core.ui.plugin.layer.pirolraster.RemoveSelectedRasterImageLayersPlugIn.Remove-Selected-Raster-Image-Layers=Eliminar
 las capas seleccionadas



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6406] core/trunk/src/language/jump_es.properties

2020-09-01 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6406
  http://sourceforge.net/p/jump-pilot/code/6406
Author:   ma15569
Date: 2020-09-01 16:08:14 + (Tue, 01 Sep 2020)
Log Message:
---
Correct some Spanish

Modified Paths:
--
core/trunk/src/language/jump_es.properties

Modified: core/trunk/src/language/jump_es.properties
===
--- core/trunk/src/language/jump_es.properties  2020-09-01 16:07:07 UTC (rev 
6405)
+++ core/trunk/src/language/jump_es.properties  2020-09-01 16:08:14 UTC (rev 
6406)
@@ -763,12 +763,12 @@
 
org.openjump.core.ui.plugin.layer.pirolraster.RasterImageLayerControllPanel.Do-you-want-a-color-to-be-transparent=\u00bfQuieres
 un color de transparencia?
 
org.openjump.core.ui.plugin.layer.pirolraster.RasterImageLayerControllPanel.processing-speed=Velocidad
 de procesio
 
org.openjump.core.ui.plugin.layer.pirolraster.RasterImageLayerControllPanel.set-overall-transparency=Muestra
 la transparencia  sobre todo
-org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.east-coordinate=coordenadas
 este
+org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.east-coordinate=coordenadas
 Este
 org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.maxx=max X
 org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.maxy=max Y
 org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.minx=min X
 org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.miny=min Y
-org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.north-coordinate=Coordenadas
 Norte
+org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.north-coordinate=coordenadas
 Norte
 
org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.please-enter-the-image-path=A\u00f1adir
 la posicion de la imagen
 
org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.south-coordinate=coordenadas
 sur
 
org.openjump.core.ui.plugin.layer.pirolraster.RasterImageWizardPanel.west-coordinate=coordenadas
 oeste



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6405] core/trunk/src/language

2020-09-01 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6405
  http://sourceforge.net/p/jump-pilot/code/6405
Author:   ma15569
Date: 2020-09-01 16:07:07 + (Tue, 01 Sep 2020)
Log Message:
---
removed space in the file when a part of image is saved

Modified Paths:
--
core/trunk/src/language/jump_es.properties
core/trunk/src/language/jump_it.properties

Modified: core/trunk/src/language/jump_es.properties
===
--- core/trunk/src/language/jump_es.properties  2020-09-01 16:03:02 UTC (rev 
6404)
+++ core/trunk/src/language/jump_es.properties  2020-09-01 16:07:07 UTC (rev 
6405)
@@ -754,7 +754,7 @@
 
org.openjump.core.ui.plugin.layer.pirolraster.ExportEnvelopeAsGeometryPlugIn.Geometry=Geometr\u00eda
 
org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.Extract-Selected-Part-Of-Image=Extraer
 la parte seleccionada de la imagen
 
org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.fence-in-wrong-region=Marco
 en la region incorrecta
-org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.part-of=parte
 -de
+org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.part-of=parte-de-
 
org.openjump.core.ui.plugin.layer.pirolraster.PasteRasterImageLayersPlugIn.Clipboard-contents-must-be-layers=El
 contenido del portapapeles deben ser capas
 
org.openjump.core.ui.plugin.layer.pirolraster.PasteRasterImageLayersPlugIn.Clipboard-must-not-be-empty=El
 portapapeles no debe ser vac\u00edo
 
org.openjump.core.ui.plugin.layer.pirolraster.PasteRasterImageLayersPlugIn.Paste-Raster-Image-Layers=Pegar
 las capas

Modified: core/trunk/src/language/jump_it.properties
===
--- core/trunk/src/language/jump_it.properties  2020-09-01 16:03:02 UTC (rev 
6404)
+++ core/trunk/src/language/jump_it.properties  2020-09-01 16:07:07 UTC (rev 
6405)
@@ -762,7 +762,7 @@
 
org.openjump.core.ui.plugin.layer.pirolraster.ExportEnvelopeAsGeometryPlugIn.Geometry=Geometria
 
org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.Extract-Selected-Part-Of-Image=Estrai
 la parte selezionata della immagine
 
org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.fence-in-wrong-region=Cornice
  nella regione sbagliata
-org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.part-of=Parte
 -di
+org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.part-of=parte-di-
 
org.openjump.core.ui.plugin.layer.pirolraster.PasteRasterImageLayersPlugIn.Clipboard-contents-must-be-layers=Gli
 appunti devono contenere livelli
 
org.openjump.core.ui.plugin.layer.pirolraster.PasteRasterImageLayersPlugIn.Clipboard-must-not-be-empty=Gli
 appunti non devono essere vuoti
 
org.openjump.core.ui.plugin.layer.pirolraster.PasteRasterImageLayersPlugIn.Paste-Raster-Image-Layers=Incolla
 livelli



___
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] #500 possible important bug on Batik 1.6.1

2020-09-01 Thread Giuseppe Aruta via Jump-pilot-devel
Export is fine for Vector and ReferenceImageLayer at any scale.

Export RasterImageLayer:  it is rescales and sometimes lost if we rescale the 
view using saving options:
The difference:

a) Embedded Save view>to SVG and change current scale box  on "Scale 1:" 
option. 
1) If I leave the scale box at the default options (scale of the current view), 
RasterImageLayer is exported at the right size
2) If I lchange the export scale the scale box  RasterImageLayer is rescaled 
loosing proportion to the rest of the map

b) CadPlan Print plugin Save Image (SVG). In this case it is almost difficult 
save RasterImageLayer. whatever scale I define on the printing view (including 
scale from OJ view), the raster layer always loose proportion or is lost.

Note that this "bug" was already on previous versions of OpenJUMP but it was 
never evident


---

** [bugs:#500] possible important bug on Batik 1.6.1**

**Status:** closed-fixed
**Milestone:** OJ_1.16
**Created:** Sun Aug 30, 2020 03:17 PM UTC by Giuseppe Aruta
**Last Updated:** Tue Sep 01, 2020 03:27 PM UTC
**Owner:** nobody
**Attachments:**

- 
[geotiff.tfw](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tfw)
 (42 Bytes; application/octet-stream)
- 
[geotiff.tif](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif)
 (986.3 kB; image/tiff)
- 
[geotiff.tif.aux.xml](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif.aux.xml)
 (374 Bytes; text/xml)


Hi all,
(Layerable: RasterImageLayer) whenever I try to create a new raster I get  an 
error message due to matter that OJ cannot read (or create) a aux.xml file 
(file where some statistics are stored). 
The bug  is important because OJ cannot read the whole raster if it doesn't 
recognize that statistics and it affects basically all Sextante algorithms that 
create rasters
To reproduce the bug (I used OpenJUMP-20200828-r6395-PLUS - Batik 1.6 and 
OpenJUMP-20200731-r6363-PLUS - Batik 1.6.1, Ubuntu, OpenJDK 64bit 1.8.0.252)
a) open a monoband tiff file (I have just attached a sample)
b) dray a fence on it
c) click on Layer tree > extract part of the image

I tried to understand the reason. 
What I discover is that OJs with Batik 1.6 are not affected by the problem, 
while newer OJ with Batik 1.6.1 show the bug.
That is strange for me as I don't have any error messages on compiling OpenJUMP 
with either Batik 1.6 or Batik 1.6.1.
On the other hand I discovered that OJ shipping Batik 1.6.1 have one Batik 
class with different serial number (batik-1.5-fop-0.20-5.jar).
Any suggestions?
Peppe

This is the error message
javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
file:/tmp/Parte%20-dialwdgg_4390.tif.aux.xml (File o directory non esistente)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:263)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
at 
org.openjump.core.rasterimage.GDALPamDataset.writeStatistics(GDALPamDataset.java:131)
at 
org.openjump.core.rasterimage.TiffUtils.createStatsXml(TiffUtils.java:302)
at 
org.openjump.core.rasterimage.TiffUtils.calculateStats(TiffUtils.java:251)
at org.openjump.core.rasterimage.TiffUtils.readImage(TiffUtils.java:68)
at 
org.openjump.core.rasterimage.RasterImageIO.loadImage(RasterImageIO.java:143)
at 
org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
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 ja

[JPP-Devel] SVN: [6404] core/trunk/src/com/vividsolutions/jump/workbench/ui/ WorkbenchFrame.java

2020-09-01 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6404
  http://sourceforge.net/p/jump-pilot/code/6404
Author:   edso
Date: 2020-09-01 16:03:02 + (Tue, 01 Sep 2020)
Log Message:
---
revert
try to fix #322 OJ stops without warnings on system shutdown

didn't do f*** all

Modified Paths:
--
core/trunk/src/com/vividsolutions/jump/workbench/ui/WorkbenchFrame.java

Modified: 
core/trunk/src/com/vividsolutions/jump/workbench/ui/WorkbenchFrame.java
===
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/WorkbenchFrame.java 
2020-09-01 13:10:34 UTC (rev 6403)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/WorkbenchFrame.java 
2020-09-01 16:03:02 UTC (rev 6404)
@@ -498,15 +498,6 @@
 }
 }
 
-// run all ApplicationExitListeners on JVM shutdown
-Runtime.getRuntime().addShutdownHook(new Thread() 
-{ 
-  public void run() 
-  { 
-closeApplication(); 
-  } 
-}); 
-
 // intercept global key events via custom dispatcher, see
 // http://tips4java.wordpress.com/2009/09/06/global-event-dispatching/
 // this is a HACK. we intercept registered shortcuts here because



___
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: #500 possible important bug on Batik 1.6.1

2020-09-01 Thread ede via Jump-pilot-devel
could you Guys,

please test svg export again? i am not sure i added alle necessary batik jars. 
i tried exporting SVG vectors and an image and it looked good. just to be 
sure.. thx ede

On 01.09.2020 17:26, Giuseppe Aruta wrote:
> Hi Ede,
> I didi some test, now everything works fine, thanks.
> The cryses is over. OpenJUMP Raster analysis is heavily used in the cource of 
> GIS analysis at the Univ. of Padua by Roberto Rossi 
> (https://persone.csia.unipd.it/off/2020/LM/AV/AG0062/000ZZ/AG01122459/N0) 
> which starts in a months
> I am going to close the bug ticket
> Peppe
>
>
>
> ---
>
> ** [bugs:#500] possible important bug on Batik 1.6.1**
>
> **Status:** open
> **Milestone:** OJ_1.16
> **Created:** Sun Aug 30, 2020 03:17 PM UTC by Giuseppe Aruta
> **Last Updated:** Tue Sep 01, 2020 01:38 PM UTC
> **Owner:** nobody
> **Attachments:**
>
> - 
> [geotiff.tfw](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tfw)
>  (42 Bytes; application/octet-stream)
> - 
> [geotiff.tif](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif)
>  (986.3 kB; image/tiff)
> - 
> [geotiff.tif.aux.xml](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif.aux.xml)
>  (374 Bytes; text/xml)
>
>
> Hi all,
> (Layerable: RasterImageLayer) whenever I try to create a new raster I get  an 
> error message due to matter that OJ cannot read (or create) a aux.xml file 
> (file where some statistics are stored).
> The bug  is important because OJ cannot read the whole raster if it doesn't 
> recognize that statistics and it affects basically all Sextante algorithms 
> that create rasters
> To reproduce the bug (I used OpenJUMP-20200828-r6395-PLUS - Batik 1.6 and 
> OpenJUMP-20200731-r6363-PLUS - Batik 1.6.1, Ubuntu, OpenJDK 64bit 1.8.0.252)
> a) open a monoband tiff file (I have just attached a sample)
> b) dray a fence on it
> c) click on Layer tree > extract part of the image
>
> I tried to understand the reason.
> What I discover is that OJs with Batik 1.6 are not affected by the problem, 
> while newer OJ with Batik 1.6.1 show the bug.
> That is strange for me as I don't have any error messages on compiling 
> OpenJUMP with either Batik 1.6 or Batik 1.6.1.
> On the other hand I discovered that OJ shipping Batik 1.6.1 have one Batik 
> class with different serial number (batik-1.5-fop-0.20-5.jar).
> Any suggestions?
> Peppe
>
> This is the error message
> javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
> file:/tmp/Parte%20-dialwdgg_4390.tif.aux.xml (File o directory non esistente)
>   at 
> org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:263)
>   at 
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
>   at 
> org.openjump.core.rasterimage.GDALPamDataset.writeStatistics(GDALPamDataset.java:131)
>   at 
> org.openjump.core.rasterimage.TiffUtils.createStatsXml(TiffUtils.java:302)
>   at 
> org.openjump.core.rasterimage.TiffUtils.calculateStats(TiffUtils.java:251)
>   at org.openjump.core.rasterimage.TiffUtils.readImage(TiffUtils.java:68)
>   at 
> org.openjump.core.rasterimage.RasterImageIO.loadImage(RasterImageIO.java:143)
>   at 
> org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
>   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.dis

[JPP-Devel] [jump-pilot:bugs] #500 possible important bug on Batik 1.6.1

2020-09-01 Thread Giuseppe Aruta via Jump-pilot-devel
- **status**: open --> closed-fixed



---

** [bugs:#500] possible important bug on Batik 1.6.1**

**Status:** closed-fixed
**Milestone:** OJ_1.16
**Created:** Sun Aug 30, 2020 03:17 PM UTC by Giuseppe Aruta
**Last Updated:** Tue Sep 01, 2020 03:26 PM UTC
**Owner:** nobody
**Attachments:**

- 
[geotiff.tfw](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tfw)
 (42 Bytes; application/octet-stream)
- 
[geotiff.tif](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif)
 (986.3 kB; image/tiff)
- 
[geotiff.tif.aux.xml](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif.aux.xml)
 (374 Bytes; text/xml)


Hi all,
(Layerable: RasterImageLayer) whenever I try to create a new raster I get  an 
error message due to matter that OJ cannot read (or create) a aux.xml file 
(file where some statistics are stored). 
The bug  is important because OJ cannot read the whole raster if it doesn't 
recognize that statistics and it affects basically all Sextante algorithms that 
create rasters
To reproduce the bug (I used OpenJUMP-20200828-r6395-PLUS - Batik 1.6 and 
OpenJUMP-20200731-r6363-PLUS - Batik 1.6.1, Ubuntu, OpenJDK 64bit 1.8.0.252)
a) open a monoband tiff file (I have just attached a sample)
b) dray a fence on it
c) click on Layer tree > extract part of the image

I tried to understand the reason. 
What I discover is that OJs with Batik 1.6 are not affected by the problem, 
while newer OJ with Batik 1.6.1 show the bug.
That is strange for me as I don't have any error messages on compiling OpenJUMP 
with either Batik 1.6 or Batik 1.6.1.
On the other hand I discovered that OJ shipping Batik 1.6.1 have one Batik 
class with different serial number (batik-1.5-fop-0.20-5.jar).
Any suggestions?
Peppe

This is the error message
javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
file:/tmp/Parte%20-dialwdgg_4390.tif.aux.xml (File o directory non esistente)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:263)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
at 
org.openjump.core.rasterimage.GDALPamDataset.writeStatistics(GDALPamDataset.java:131)
at 
org.openjump.core.rasterimage.TiffUtils.createStatsXml(TiffUtils.java:302)
at 
org.openjump.core.rasterimage.TiffUtils.calculateStats(TiffUtils.java:251)
at org.openjump.core.rasterimage.TiffUtils.readImage(TiffUtils.java:68)
at 
org.openjump.core.rasterimage.RasterImageIO.loadImage(RasterImageIO.java:143)
at 
org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
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.a

[JPP-Devel] [jump-pilot:bugs] #500 possible important bug on Batik 1.6.1

2020-09-01 Thread Giuseppe Aruta via Jump-pilot-devel
Hi Ede, 
I didi some test, now everything works fine, thanks.
The cryses is over. OpenJUMP Raster analysis is heavily used in the cource of 
GIS analysis at the Univ. of Padua by Roberto Rossi 
(https://persone.csia.unipd.it/off/2020/LM/AV/AG0062/000ZZ/AG01122459/N0) which 
starts in a months
I am going to close the bug ticket
Peppe



---

** [bugs:#500] possible important bug on Batik 1.6.1**

**Status:** open
**Milestone:** OJ_1.16
**Created:** Sun Aug 30, 2020 03:17 PM UTC by Giuseppe Aruta
**Last Updated:** Tue Sep 01, 2020 01:38 PM UTC
**Owner:** nobody
**Attachments:**

- 
[geotiff.tfw](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tfw)
 (42 Bytes; application/octet-stream)
- 
[geotiff.tif](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif)
 (986.3 kB; image/tiff)
- 
[geotiff.tif.aux.xml](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif.aux.xml)
 (374 Bytes; text/xml)


Hi all,
(Layerable: RasterImageLayer) whenever I try to create a new raster I get  an 
error message due to matter that OJ cannot read (or create) a aux.xml file 
(file where some statistics are stored). 
The bug  is important because OJ cannot read the whole raster if it doesn't 
recognize that statistics and it affects basically all Sextante algorithms that 
create rasters
To reproduce the bug (I used OpenJUMP-20200828-r6395-PLUS - Batik 1.6 and 
OpenJUMP-20200731-r6363-PLUS - Batik 1.6.1, Ubuntu, OpenJDK 64bit 1.8.0.252)
a) open a monoband tiff file (I have just attached a sample)
b) dray a fence on it
c) click on Layer tree > extract part of the image

I tried to understand the reason. 
What I discover is that OJs with Batik 1.6 are not affected by the problem, 
while newer OJ with Batik 1.6.1 show the bug.
That is strange for me as I don't have any error messages on compiling OpenJUMP 
with either Batik 1.6 or Batik 1.6.1.
On the other hand I discovered that OJ shipping Batik 1.6.1 have one Batik 
class with different serial number (batik-1.5-fop-0.20-5.jar).
Any suggestions?
Peppe

This is the error message
javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
file:/tmp/Parte%20-dialwdgg_4390.tif.aux.xml (File o directory non esistente)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:263)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
at 
org.openjump.core.rasterimage.GDALPamDataset.writeStatistics(GDALPamDataset.java:131)
at 
org.openjump.core.rasterimage.TiffUtils.createStatsXml(TiffUtils.java:302)
at 
org.openjump.core.rasterimage.TiffUtils.calculateStats(TiffUtils.java:251)
at org.openjump.core.rasterimage.TiffUtils.readImage(TiffUtils.java:68)
at 
org.openjump.core.rasterimage.RasterImageIO.loadImage(RasterImageIO.java:143)
at 
org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
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

[JPP-Devel] [jump-pilot:bugs] #500 possible important bug on Batik 1.6.1

2020-09-01 Thread ede via Jump-pilot-devel
Peppe please try snapshot r6403
https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_snapshots/OpenJUMP-Portable-20200901-r6403-PLUS.zip


---

** [bugs:#500] possible important bug on Batik 1.6.1**

**Status:** open
**Milestone:** OJ_1.16
**Created:** Sun Aug 30, 2020 03:17 PM UTC by Giuseppe Aruta
**Last Updated:** Tue Sep 01, 2020 10:28 AM UTC
**Owner:** nobody
**Attachments:**

- 
[geotiff.tfw](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tfw)
 (42 Bytes; application/octet-stream)
- 
[geotiff.tif](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif)
 (986.3 kB; image/tiff)
- 
[geotiff.tif.aux.xml](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif.aux.xml)
 (374 Bytes; text/xml)


Hi all,
(Layerable: RasterImageLayer) whenever I try to create a new raster I get  an 
error message due to matter that OJ cannot read (or create) a aux.xml file 
(file where some statistics are stored). 
The bug  is important because OJ cannot read the whole raster if it doesn't 
recognize that statistics and it affects basically all Sextante algorithms that 
create rasters
To reproduce the bug (I used OpenJUMP-20200828-r6395-PLUS - Batik 1.6 and 
OpenJUMP-20200731-r6363-PLUS - Batik 1.6.1, Ubuntu, OpenJDK 64bit 1.8.0.252)
a) open a monoband tiff file (I have just attached a sample)
b) dray a fence on it
c) click on Layer tree > extract part of the image

I tried to understand the reason. 
What I discover is that OJs with Batik 1.6 are not affected by the problem, 
while newer OJ with Batik 1.6.1 show the bug.
That is strange for me as I don't have any error messages on compiling OpenJUMP 
with either Batik 1.6 or Batik 1.6.1.
On the other hand I discovered that OJ shipping Batik 1.6.1 have one Batik 
class with different serial number (batik-1.5-fop-0.20-5.jar).
Any suggestions?
Peppe

This is the error message
javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
file:/tmp/Parte%20-dialwdgg_4390.tif.aux.xml (File o directory non esistente)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:263)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
at 
org.openjump.core.rasterimage.GDALPamDataset.writeStatistics(GDALPamDataset.java:131)
at 
org.openjump.core.rasterimage.TiffUtils.createStatsXml(TiffUtils.java:302)
at 
org.openjump.core.rasterimage.TiffUtils.calculateStats(TiffUtils.java:251)
at org.openjump.core.rasterimage.TiffUtils.readImage(TiffUtils.java:68)
at 
org.openjump.core.rasterimage.RasterImageIO.loadImage(RasterImageIO.java:143)
at 
org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
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.doIntersec

[JPP-Devel] SVN: [6403] core/trunk/etc/mvn

2020-09-01 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6403
  http://sourceforge.net/p/jump-pilot/code/6403
Author:   edso
Date: 2020-09-01 13:10:34 + (Tue, 01 Sep 2020)
Log Message:
---
fix double inclusion of OJ-*.jar in distro zip
remove obsolete js:* exclusion

Modified Paths:
--
core/trunk/etc/mvn/cmp_core.xml
core/trunk/etc/mvn/cmp_plus.xml

Modified: core/trunk/etc/mvn/cmp_core.xml
===
--- core/trunk/etc/mvn/cmp_core.xml 2020-09-01 12:37:02 UTC (rev 6402)
+++ core/trunk/etc/mvn/cmp_core.xml 2020-09-01 13:10:34 UTC (rev 6403)
@@ -20,7 +20,6 @@
 com.vividsolutions:jts
 
 batik:*
-js:*
 
 junit:*
 hamcrest:*

Modified: core/trunk/etc/mvn/cmp_plus.xml
===
--- core/trunk/etc/mvn/cmp_plus.xml 2020-09-01 12:37:02 UTC (rev 6402)
+++ core/trunk/etc/mvn/cmp_plus.xml 2020-09-01 13:10:34 UTC (rev 6403)
@@ -3,14 +3,15 @@
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/component/1.1.2
 http://maven.apache.org/xsd/component-1.1.2.xsd";>
   
+
-  
-batik:*
-js:*
-  
+  
+batik:*
+js:*
+  
 
+-->
   
   
 
@@ -28,6 +29,8 @@
   lib/plus
   /lib/ext
 
+
 
   lib/
   /lib/



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6402] core/trunk/pom.xml

2020-09-01 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6402
  http://sourceforge.net/p/jump-pilot/code/6402
Author:   edso
Date: 2020-09-01 12:37:02 + (Tue, 01 Sep 2020)
Log Message:
---
leftover from:
revert upgrade to batik 1.6.1
manually incl. needed jars during packaging circumventing including unneeded 
dependency jars

Modified Paths:
--
core/trunk/pom.xml

Modified: core/trunk/pom.xml
===
--- core/trunk/pom.xml  2020-09-01 12:34:31 UTC (rev 6401)
+++ core/trunk/pom.xml  2020-09-01 12:37:02 UTC (rev 6402)
@@ -924,25 +924,25 @@
 
 batik
 batik-awt-util
-1.6-1
+1.6
 compile
 
 
 batik
 batik-dom
-1.6-1
+1.6
 compile
 
 
 batik
 batik-svggen
-1.6-1
+1.6
 compile
 
 
 batik
 batik-squiggle
-1.6-1
+1.6
 compile
 
 



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6401] core/trunk

2020-09-01 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6401
  http://sourceforge.net/p/jump-pilot/code/6401
Author:   edso
Date: 2020-09-01 12:34:31 + (Tue, 01 Sep 2020)
Log Message:
---
revert upgrade to batik 1.6.1
manually incl. needed jars during packaging circumventing including unneeded 
dependency jars

Modified Paths:
--
core/trunk/etc/mvn/cmp_plus.xml

core/trunk/src/org/openjump/sextante/gui/additionalResults/AdditionalResultsIO.java

Added Paths:
---
core/trunk/lib/batik-awt-util-1.6.jar
core/trunk/lib/batik-dom-1.6.jar
core/trunk/lib/batik-svg-dom-1.6.jar
core/trunk/lib/batik-svggen-1.6.jar
core/trunk/lib/batik-transcoder-1.6.jar
core/trunk/lib/batik-util-1.6.jar
core/trunk/lib/batik-xml-1.6.jar

Removed Paths:
-
core/trunk/lib/batik-all-1.6.1.jar

Modified: core/trunk/etc/mvn/cmp_plus.xml
===
--- core/trunk/etc/mvn/cmp_plus.xml 2020-08-31 12:02:20 UTC (rev 6400)
+++ core/trunk/etc/mvn/cmp_plus.xml 2020-09-01 12:34:31 UTC (rev 6401)
@@ -5,11 +5,11 @@
   
 
   /lib
-  
-  
-batik:*
-js:*
-  
+  
+  
+batik:*
+js:*
+  
 
   
   
@@ -28,5 +28,12 @@
   lib/plus
   /lib/ext
 
+
+  lib/
+  /lib/
+  
+batik-*.jar
+  
+
   
 
\ No newline at end of file

Deleted: core/trunk/lib/batik-all-1.6.1.jar
===
(Binary files differ)

Added: core/trunk/lib/batik-awt-util-1.6.jar
===
(Binary files differ)

Index: core/trunk/lib/batik-awt-util-1.6.jar
===
--- core/trunk/lib/batik-awt-util-1.6.jar   2020-08-31 12:02:20 UTC (rev 
6400)
+++ core/trunk/lib/batik-awt-util-1.6.jar   2020-09-01 12:34:31 UTC (rev 
6401)

Property changes on: core/trunk/lib/batik-awt-util-1.6.jar
___
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: core/trunk/lib/batik-dom-1.6.jar
===
(Binary files differ)

Index: core/trunk/lib/batik-dom-1.6.jar
===
--- core/trunk/lib/batik-dom-1.6.jar2020-08-31 12:02:20 UTC (rev 6400)
+++ core/trunk/lib/batik-dom-1.6.jar2020-09-01 12:34:31 UTC (rev 6401)

Property changes on: core/trunk/lib/batik-dom-1.6.jar
___
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: core/trunk/lib/batik-svg-dom-1.6.jar
===
(Binary files differ)

Index: core/trunk/lib/batik-svg-dom-1.6.jar
===
--- core/trunk/lib/batik-svg-dom-1.6.jar2020-08-31 12:02:20 UTC (rev 
6400)
+++ core/trunk/lib/batik-svg-dom-1.6.jar2020-09-01 12:34:31 UTC (rev 
6401)

Property changes on: core/trunk/lib/batik-svg-dom-1.6.jar
___
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: core/trunk/lib/batik-svggen-1.6.jar
===
(Binary files differ)

Index: core/trunk/lib/batik-svggen-1.6.jar
===
--- core/trunk/lib/batik-svggen-1.6.jar 2020-08-31 12:02:20 UTC (rev 6400)
+++ core/trunk/lib/batik-svggen-1.6.jar 2020-09-01 12:34:31 UTC (rev 6401)

Property changes on: core/trunk/lib/batik-svggen-1.6.jar
___
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: core/trunk/lib/batik-transcoder-1.6.jar
===
(Binary files differ)

Index: core/trunk/lib/batik-transcoder-1.6.jar
===
--- core/trunk/lib/batik-transcoder-1.6.jar 2020-08-31 12:02:20 UTC (rev 
6400)
+++ core/trunk/lib/batik-transcoder-1.6.jar 2020-09-01 12:34:31 UTC (rev 
6401)

Property changes on: core/trunk/lib/batik-transcoder-1.6.jar
___
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: core/trunk/lib/batik-util-1.6.jar
===
(Binary files differ)

Index: core/trunk/lib/batik-util-1.6.jar
===
--- core/trunk/lib/batik-util-1.6.jar   2020-08-31 12:02:20 UTC (rev 6400)

[JPP-Devel] [jump-pilot:bugs] #491 WMS getCapability without title

2020-09-01 Thread ede via Jump-pilot-devel
my bad. `` was the problem and empty `` or non-existing 
`` tag is what was fixed. you can test against 
`http://jamoke.net/getcap.xml`

..ede


---

** [bugs:#491] WMS getCapability without title**

**Status:** closed-fixed
**Milestone:** OJ_1.16
**Created:** Mon Jan 13, 2020 08:35 PM UTC by michael michaud
**Last Updated:** Tue Sep 01, 2020 11:20 AM UTC
**Owner:** michael michaud


OpenJUMP cannot read the getCapability file if the title tag is empty.
This is annoying as it seems that geoserver delivers such a getCapability if 
the administrator does not explicitly set the title.
I think we already tried to fix this bug in Parser.java as there is a 
try/catch(NPE) around title reading, but it seems that it is not enough. Not 
with a  tag.
Cannot test it here but will try to catch "any" exception and check tomorrow if 
it solves the problem.


---

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] #491 WMS getCapability without title

2020-09-01 Thread Jukka Rahkonen via Jump-pilot-devel
The issue was not in `` but in ``. In the WMS standard title is 
compulsory but name not so the result of your test is expected.


---

** [bugs:#491] WMS getCapability without title**

**Status:** closed-fixed
**Milestone:** OJ_1.16
**Created:** Mon Jan 13, 2020 08:35 PM UTC by michael michaud
**Last Updated:** Sat Aug 29, 2020 09:32 AM UTC
**Owner:** michael michaud


OpenJUMP cannot read the getCapability file if the title tag is empty.
This is annoying as it seems that geoserver delivers such a getCapability if 
the administrator does not explicitly set the title.
I think we already tried to fix this bug in Parser.java as there is a 
try/catch(NPE) around title reading, but it seems that it is not enough. Not 
with a  tag.
Cannot test it here but will try to catch "any" exception and check tomorrow if 
it solves the problem.


---

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] #500 possible important bug on Batik 1.6.1

2020-09-01 Thread ede via Jump-pilot-devel
so it was the batik upgrade, just not batik itself. ;) it's pulling in an 
outdated xalan dependency. see attached `mvn dependency:tree`reports for 
pom.xml with `1.6-1` on the left and 
`1.6` on the right.

at this point i'd say eff  it, also because batik 1.6-1 draws in 5MB more deps 
and just revert it. will do so. Peppe please check if it works for you out of 
the box again after the commit.

..ede


Attachments:

- 
[batik-deps1.jpg](https://sourceforge.net/p/jump-pilot/bugs/_discuss/thread/417d1d7f67/b8e2/attachment/batik-deps1.jpg)
 (161.6 kB; image/jpeg)
- 
[batik-deps2.jpg](https://sourceforge.net/p/jump-pilot/bugs/_discuss/thread/417d1d7f67/b8e2/attachment/batik-deps2.jpg)
 (54.0 kB; image/jpeg)


---

** [bugs:#500] possible important bug on Batik 1.6.1**

**Status:** open
**Milestone:** OJ_1.16
**Created:** Sun Aug 30, 2020 03:17 PM UTC by Giuseppe Aruta
**Last Updated:** Tue Sep 01, 2020 09:59 AM UTC
**Owner:** nobody
**Attachments:**

- 
[geotiff.tfw](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tfw)
 (42 Bytes; application/octet-stream)
- 
[geotiff.tif](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif)
 (986.3 kB; image/tiff)
- 
[geotiff.tif.aux.xml](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif.aux.xml)
 (374 Bytes; text/xml)


Hi all,
(Layerable: RasterImageLayer) whenever I try to create a new raster I get  an 
error message due to matter that OJ cannot read (or create) a aux.xml file 
(file where some statistics are stored). 
The bug  is important because OJ cannot read the whole raster if it doesn't 
recognize that statistics and it affects basically all Sextante algorithms that 
create rasters
To reproduce the bug (I used OpenJUMP-20200828-r6395-PLUS - Batik 1.6 and 
OpenJUMP-20200731-r6363-PLUS - Batik 1.6.1, Ubuntu, OpenJDK 64bit 1.8.0.252)
a) open a monoband tiff file (I have just attached a sample)
b) dray a fence on it
c) click on Layer tree > extract part of the image

I tried to understand the reason. 
What I discover is that OJs with Batik 1.6 are not affected by the problem, 
while newer OJ with Batik 1.6.1 show the bug.
That is strange for me as I don't have any error messages on compiling OpenJUMP 
with either Batik 1.6 or Batik 1.6.1.
On the other hand I discovered that OJ shipping Batik 1.6.1 have one Batik 
class with different serial number (batik-1.5-fop-0.20-5.jar).
Any suggestions?
Peppe

This is the error message
javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
file:/tmp/Parte%20-dialwdgg_4390.tif.aux.xml (File o directory non esistente)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:263)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
at 
org.openjump.core.rasterimage.GDALPamDataset.writeStatistics(GDALPamDataset.java:131)
at 
org.openjump.core.rasterimage.TiffUtils.createStatsXml(TiffUtils.java:302)
at 
org.openjump.core.rasterimage.TiffUtils.calculateStats(TiffUtils.java:251)
at org.openjump.core.rasterimage.TiffUtils.readImage(TiffUtils.java:68)
at 
org.openjump.core.rasterimage.RasterImageIO.loadImage(RasterImageIO.java:143)
at 
org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
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.

[JPP-Devel] [jump-pilot:bugs] #500 possible important bug on Batik 1.6.1

2020-09-01 Thread Giuseppe Aruta via Jump-pilot-devel
tested on newer OJ 6400


---

** [bugs:#500] possible important bug on Batik 1.6.1**

**Status:** open
**Milestone:** OJ_1.16
**Created:** Sun Aug 30, 2020 03:17 PM UTC by Giuseppe Aruta
**Last Updated:** Tue Sep 01, 2020 09:50 AM UTC
**Owner:** nobody
**Attachments:**

- 
[geotiff.tfw](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tfw)
 (42 Bytes; application/octet-stream)
- 
[geotiff.tif](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif)
 (986.3 kB; image/tiff)
- 
[geotiff.tif.aux.xml](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif.aux.xml)
 (374 Bytes; text/xml)


Hi all,
(Layerable: RasterImageLayer) whenever I try to create a new raster I get  an 
error message due to matter that OJ cannot read (or create) a aux.xml file 
(file where some statistics are stored). 
The bug  is important because OJ cannot read the whole raster if it doesn't 
recognize that statistics and it affects basically all Sextante algorithms that 
create rasters
To reproduce the bug (I used OpenJUMP-20200828-r6395-PLUS - Batik 1.6 and 
OpenJUMP-20200731-r6363-PLUS - Batik 1.6.1, Ubuntu, OpenJDK 64bit 1.8.0.252)
a) open a monoband tiff file (I have just attached a sample)
b) dray a fence on it
c) click on Layer tree > extract part of the image

I tried to understand the reason. 
What I discover is that OJs with Batik 1.6 are not affected by the problem, 
while newer OJ with Batik 1.6.1 show the bug.
That is strange for me as I don't have any error messages on compiling OpenJUMP 
with either Batik 1.6 or Batik 1.6.1.
On the other hand I discovered that OJ shipping Batik 1.6.1 have one Batik 
class with different serial number (batik-1.5-fop-0.20-5.jar).
Any suggestions?
Peppe

This is the error message
javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
file:/tmp/Parte%20-dialwdgg_4390.tif.aux.xml (File o directory non esistente)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:263)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
at 
org.openjump.core.rasterimage.GDALPamDataset.writeStatistics(GDALPamDataset.java:131)
at 
org.openjump.core.rasterimage.TiffUtils.createStatsXml(TiffUtils.java:302)
at 
org.openjump.core.rasterimage.TiffUtils.calculateStats(TiffUtils.java:251)
at org.openjump.core.rasterimage.TiffUtils.readImage(TiffUtils.java:68)
at 
org.openjump.core.rasterimage.RasterImageIO.loadImage(RasterImageIO.java:143)
at 
org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
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(E

[JPP-Devel] [jump-pilot:bugs] #500 possible important bug on Batik 1.6.1

2020-09-01 Thread Giuseppe Aruta via Jump-pilot-devel
I found the reason,
a)   missing class serializer-2.7.2.jar
b) obsolete  class xalan-2.4.1.jar

How to solve:
in the LIB folder 
a) substitute xalan-2.4.1.jar witn newer xalan-2.7.2.jar
b) copy lib serializer-2.7.2.jar

with this modification opening TIF files without aux.xml sidecar files works 
fine

Note that both xalan and serializer are part of Apache libraries. I used newer 
xalan and serializer but I am not sure if these classes 2.7.2 are compatible 
with Batik 1.6.1



---

** [bugs:#500] possible important bug on Batik 1.6.1**

**Status:** open
**Milestone:** OJ_1.16
**Created:** Sun Aug 30, 2020 03:17 PM UTC by Giuseppe Aruta
**Last Updated:** Mon Aug 31, 2020 05:19 AM UTC
**Owner:** nobody
**Attachments:**

- 
[geotiff.tfw](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tfw)
 (42 Bytes; application/octet-stream)
- 
[geotiff.tif](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif)
 (986.3 kB; image/tiff)
- 
[geotiff.tif.aux.xml](https://sourceforge.net/p/jump-pilot/bugs/500/attachment/geotiff.tif.aux.xml)
 (374 Bytes; text/xml)


Hi all,
(Layerable: RasterImageLayer) whenever I try to create a new raster I get  an 
error message due to matter that OJ cannot read (or create) a aux.xml file 
(file where some statistics are stored). 
The bug  is important because OJ cannot read the whole raster if it doesn't 
recognize that statistics and it affects basically all Sextante algorithms that 
create rasters
To reproduce the bug (I used OpenJUMP-20200828-r6395-PLUS - Batik 1.6 and 
OpenJUMP-20200731-r6363-PLUS - Batik 1.6.1, Ubuntu, OpenJDK 64bit 1.8.0.252)
a) open a monoband tiff file (I have just attached a sample)
b) dray a fence on it
c) click on Layer tree > extract part of the image

I tried to understand the reason. 
What I discover is that OJs with Batik 1.6 are not affected by the problem, 
while newer OJ with Batik 1.6.1 show the bug.
That is strange for me as I don't have any error messages on compiling OpenJUMP 
with either Batik 1.6 or Batik 1.6.1.
On the other hand I discovered that OJ shipping Batik 1.6.1 have one Batik 
class with different serial number (batik-1.5-fop-0.20-5.jar).
Any suggestions?
Peppe

This is the error message
javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
file:/tmp/Parte%20-dialwdgg_4390.tif.aux.xml (File o directory non esistente)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:263)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
at 
org.openjump.core.rasterimage.GDALPamDataset.writeStatistics(GDALPamDataset.java:131)
at 
org.openjump.core.rasterimage.TiffUtils.createStatsXml(TiffUtils.java:302)
at 
org.openjump.core.rasterimage.TiffUtils.calculateStats(TiffUtils.java:251)
at org.openjump.core.rasterimage.TiffUtils.readImage(TiffUtils.java:68)
at 
org.openjump.core.rasterimage.RasterImageIO.loadImage(RasterImageIO.java:143)
at 
org.openjump.core.ui.plugin.layer.pirolraster.ExtractSelectedPartOfImage.execute(ExtractSelectedPartOfImage.java:182)
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)