On 20.04.2023 14:33, Giuseppe Aruta wrote:
Hi all,
hey Peppe,
Recently I found more and more image files (jpg and png) where the coordinate info are stored into an .aux.xml sidecar file, without the presence of the world file The aux.xml files are used to store a lot of information. OpenJUMP reads projection and raster statistics from this file (and saves raster statistics to). But OpenJUMP cannot read coordinate info, generally stored into the <GeoTransform> tag. I have the code (currently working only with the RasterImageLayer framework) to read this coordinate information. The modification I propose are connected to: a) reading coordinate from aux.xml sidecar files for RasterImageLayer b) some refining of the classes code to remove some duplicates It will affect the following classes (into the package org.openjump.core.rasterimage) a) GridFloat and GridAscii to add method getEnvelope() b) org.openjump.core.rasterimage.WorldFileHandler to add a method to read coordinate info from .aux.xml file c) AddRasterImageLayerWizard and RasterImageIO to unify the getImageDimensions() method and optimize the code in order to read aux.xml file If you agree with this modification I will start with the point a) and b) as the first step. Then c) as last
no objection here. let me suggest to develop your proposed changes in a private or project branch until you are satisfied with the results and create a pull request with these changes then, so we can approve them accordingly. we should probably re-implement the coordinate-aux.xml interpretation for ReferencedImages in general then as well. ..ede _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel