Hi Ede, Michaël

Following Michaël's test I also was able to do a test using 3 versions of
OpenJUMP
a) OpenJUMP 1.5 last stable realize
b) OpenJUMP 6363. I choose this version because I grouped "Save view"
plugins into a unique menu
("Save view") with the option to choose type (TIFF, PNG and SVG). I
extended to svg the
option to save at a defined scale
c) OpenJUMP 6370, the last NB realize where Ede upgraded batik libraries

I used as test files one vector file, one image file,loaded as
referencedImageLayer (both
using Open->file menu), and one DEM file loaded as RasterImageLayer (using
Open->Raster Image (sextante)
menu.
Test files and SVG output are available here:
https://sourceforge.net/projects/opensit/files/Test%20file/Export%20to%20SVG/

These are the problems (the first one already known) and bugs that I found
(not only on SVG).

*On saving a project file*.
ReferencedImageLayer must be saved as a vector layer (SHP or JML) otherwise
it will not be saved into the project file.

*On loading project files saved with different versions of OpenJUMP*.
There is a break after OpenJUMP 1.5 and before OpenJUMP 6363 on
saving/loading project files.
   a) OpenJUMP 1.5 freezes on loading project files saved at least with
OpenJUMP 6363 and 6370
      The console (I use Linux) doesn't show any warning.
   b) OpenJUMP 6363 and 6370  cannot load project files saved at least with
OpenJUMP 1.5 .
    The console doesn't show any warning.
  c) OpenJUMP 6363 can load project files saved with OpenJUMP 6370 and vice
versa

3)* On saving SVG*

a) *Saving SVG using embedded Save view plugin*
OpenJUMP 1.5 and OpenJUMP 6363 save the view with all the three layers if I
don't modify any
parameters on Save dialog. On the other hand, modifing the scale parameters
on save dialog,
RasterImageLayer is not saved on SVG file
OpenJUMP 6370 saves an empty SVG file (none of the layers are displayed)

b)* Saving SVG using CadPlann print plugin*
OpenJUMP 1.5 and OpenJUMP 6363. While ReferencedImageLayers and
VectorLayers are
saved at the correct scale and position, RasterImageLayers are rescaled
and, possibly, shifted
 from their original position, compared to OpenJUMP view.
 OpenJUMP 6370 saves an empty SVG file (none of the layers are displayed)

Saving SVG with OpenJUMP 6370 can be corrected using the newer batik
libraries. I which approach we need to fix the scaling problems
of RasterImageLayers.
I will open a bug ticket for the problem about *loading project files saved
with different versions of OpenJUMP.* It looks quite severe
Best regards
Peppe

Il giorno sab 8 ago 2020 alle ore 22:16 Michaud Michael <
m.michael.mich...@orange.fr> ha scritto:

> Hi Ede,
>
> I finally found some time and get noticeable differences between last
> revision and 1.15.
>
> I just tested export image to svg and export map to svg from cadplan (I
> don't know other places where svg is used).
>
> Prepare a map wit a sextante raster and some vectors
>
> Export the view to a file, choose svg :
>
> - get the same thing on 1.15 and last revision : vectors but no image
>
> Export map from cadplan
>
> - cadplan with external renderer : get nothing, file is even not exported
> (neither in 1.15 nor with last revision)
>
> - cadplan ISA renderer : get vector and raster with a scale problem on
> 1.15, get nothing with last release
>
> - cadplan core renderer : get vector and raster on 1.15, get nothing with
> last release
>
> => I couldn't get svg map from cadplan plugin from last release, did you ?
>
>
> Michaël
>
>
>
> envoyé : 6 août 2020 à 14:46
> de : edgar.sol...@web.de
> à : jump-pilot-devel@lists.sourceforge.net
> objet : Re: [JPP-Devel] batik upgraded
>
>
> a quick test of both did not reveal any bugs. how about on your sides?
> ..ede
>
> On 05.08.2020 16:14, Giuseppe Aruta wrote:
>
> Thanks Ede,
> AFAIR also both print plugins have dependencies  to batik classes
> Peppe
>
> Il giorno mer 5 ago 2020 alle ore 15:19 <edgar.sol...@web.de <mailto:
> edgar.sol...@web.de>> ha scritto:
>
> hey All,
>
> had to touch batik, as it was missing some classes in trunk/lib/batik.jar
> after Peppe added AdditionalResultsIO. maven already had the proper batik
> components defined that's why the snapshot builds went fine.
>
> while at it i noticed that we were using a quite old batik version and
> upgraded it. looks good to me but please test and come back if something
> breaks horribly.
>
> sunshine all over.. (sweating) ede
>
> -------- Forwarded Message --------
> Subject: [JPP-Devel] SVN: [6369] core/trunk
> Date: Wed, 05 Aug 2020 12:50:50 +0000
> From: jump-pilot-svn--- via Jump-pilot-devel <
> jump-pilot-devel@lists.sourceforge.net <mailto:
> jump-pilot-devel@lists.sourceforge.net>>
> Reply-To: OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net
> <mailto:jump-pilot-devel@lists.sourceforge.net>>
> To: jump-pilot-devel@lists.sourceforge.net <mailto:
> jump-pilot-devel@lists.sourceforge.net>
> CC: jump-pilot-...@lists.sourceforge.net <mailto:
> jump-pilot-...@lists.sourceforge.net>
>
> Revision: 6369
>           http://sourceforge.net/p/jump-pilot/code/6369
> Author:   edso
> Date:     2020-08-05 12:50:49 +0000 (Wed, 05 Aug 2020)
> Log Message:
> -----------
> upgrade batik to latest greatest v1.13
> minimal fixup of AdditonalResultsIO
> fingers crossed, let's see if it breaks something more
>
> Modified Paths:
> --------------
>     core/trunk/pom.xml
>
> core/trunk/src/org/openjump/sextante/gui/additionalResults/AdditionalResultsIO.java
>
> Added Paths:
> -----------
>     core/trunk/lib/batik-all-1.13.jar
>
> Removed Paths:
> -------------
>     core/trunk/lib/batik-all.jar
>
> Added: core/trunk/lib/batik-all-1.13.jar
> ===================================================================
> (Binary files differ)
>
> Index: core/trunk/lib/batik-all-1.13.jar
> ===================================================================
> --- core/trunk/lib/batik-all-1.13.jar   2020-08-05 12:45:12 UTC (rev 6368)
> +++ core/trunk/lib/batik-all-1.13.jar   2020-08-05 12:50:49 UTC (rev 6369)
>
> Property changes on: core/trunk/lib/batik-all-1.13.jar
> ___________________________________________________________________
> Added: svn:mime-type
> ## -0,0 +1 ##
> +application/octet-stream
> \ No newline at end of property
> Deleted: core/trunk/lib/batik-all.jar
> ===================================================================
> (Binary files differ)
>
> Modified: core/trunk/pom.xml
> ===================================================================
> --- core/trunk/pom.xml  2020-08-05 12:45:12 UTC (rev 6368)
> +++ core/trunk/pom.xml  2020-08-05 12:50:49 UTC (rev 6369)
> @@ -924,25 +924,25 @@
>          <dependency>
>              <groupId>batik</groupId>
>              <artifactId>batik-awt-util</artifactId>
> -            <version>1.6</version>
> +            <version>1.13</version>
>              <scope>compile</scope>
>          </dependency>
>          <dependency>
>              <groupId>batik</groupId>
>              <artifactId>batik-dom</artifactId>
> -            <version>1.6</version>
> +            <version>1.13</version>
>              <scope>compile</scope>
>          </dependency>
>          <dependency>
>              <groupId>batik</groupId>
>              <artifactId>batik-svggen</artifactId>
> -            <version>1.6</version>
> +            <version>1.13</version>
>              <scope>compile</scope>
>          </dependency>
>          <dependency>
>              <groupId>batik</groupId>
>              <artifactId>batik-squiggle</artifactId>
> -            <version>1.6</version>
> +            <version>1.13</version>
>              <scope>compile</scope>
>          </dependency>
>          <dependency>
>
> Modified:
> core/trunk/src/org/openjump/sextante/gui/additionalResults/AdditionalResultsIO.java
> ===================================================================
> ---
> core/trunk/src/org/openjump/sextante/gui/additionalResults/AdditionalResultsIO.java
> 2020-08-05 12:45:12 UTC (rev 6368)
> +++
> core/trunk/src/org/openjump/sextante/gui/additionalResults/AdditionalResultsIO.java
> 2020-08-05 12:50:49 UTC (rev 6369)
> @@ -27,7 +27,7 @@
>  import javax.swing.tree.TreePath;
>  import javax.xml.namespace.QName;
>
> -import org.apache.batik.dom.svg.SVGDOMImplementation;
> +import org.apache.batik.anim.dom.SVGDOMImplementation;
>  import org.apache.batik.svggen.SVGGraphics2D;
>  import org.apache.log4j.Logger;
>  import org.math.plot.PlotPanel;
> @@ -37,7 +37,7 @@
>  import org.openjump.core.ui.util.LayerableUtil;
>  import org.openjump.sextante.core.ObjectAndDescription;
>  import org.w3c.dom.DOMImplementation;
> -import org.w3c.dom.svg.SVGDocument;
> +import org.w3c.dom.Document;
>
>  import com.vividsolutions.jump.I18N;
>  import com.vividsolutions.jump.feature.FeatureCollection;
> @@ -401,7 +401,7 @@
>                 // Get a SVGDOMImplementation and create an XML document
>                 DOMImplementation domImpl =
> SVGDOMImplementation.getDOMImplementation();
>                 String svgNS = "http://www.w3.org/2000/svg";;
> -               SVGDocument svgDocument = (SVGDocument)
> domImpl.createDocument(svgNS, "svg", null);
> +               Document svgDocument = domImpl.createDocument(svgNS,
> "svg", null);
>
>                 // Create an instance of the SVG Generator
>                 SVGGraphics2D svgGenerator = new
> SVGGraphics2D(svgDocument);
>
>
>
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net <mailto:
> 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 <mailto:
> 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
>
>
>
> _______________________________________________
> 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
>
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to