Re: [JPP-Devel] Important bug on class RasterImageLayer on OpenJUMP 6669

2021-02-08 Thread Michaud Michael
Oh yes, this an flt file ! Did not think about it, sollry.I will set bpp to 16b for flt, asc and txt, as this seems to be how it is read.Michaëlenvoyé : 8 février 2021 à 15:07de : Giuseppe Aruta à : Michaud Michael , OpenJump develop and use objet : Re: [JPP-Devel] Important bug on class RasterIm

Re: [JPP-Devel] Important bug on class RasterImageLayer on OpenJUMP 6669

2021-02-08 Thread Giuseppe Aruta
more robust method to evaluate the > number of bpp. > > Michaël > > > > envoyé : 4 février 2021 à 12:22 > de : edgar.sol...@web.de > à : jump-pilot-devel@lists.sourceforge.net > objet : Re: [JPP-Devel] Important bug on class RasterImageLayer on > OpenJUMP 6669 > &

Re: [JPP-Devel] Important bug on class RasterImageLayer on OpenJUMP 6669

2021-02-07 Thread Michaud Michael
Hi,Peppe, could you provide me an image throwing an exception. I tried with a floating point image from R. Rossi but it worked well. I'd like to be able to reproduce the error before fixing. Proposition from Ede makes sense but I'll first check if image/io offers a more robust method to evaluate

Re: [JPP-Devel] Important bug on class RasterImageLayer on OpenJUMP 6669

2021-02-04 Thread Michaud Michael
Hi,Sorry for the regression. I'l ltry to have a look at it this week-end.For Github, I let you change the branch name the way you please. Perhaps it would make sense to have a main and a dev branch and to work on the dev until it is merged in the main (by a pair when possible). It is probably a g

Re: [JPP-Devel] Important bug on class RasterImageLayer on OpenJUMP 6669

2021-02-04 Thread edgar . soldin
looks like a test like http://commons.apache.org/proper/commons-imaging/apidocs/org/apache/commons/imaging/Imaging.html#getFormatCompliance-byte:A- before running Imaging.getImageInfo() might make sense. but it'll likely just throw an Exception as well. didn't test it. ..ede On 2/4/2021 11:57,

Re: [JPP-Devel] Important bug on class RasterImageLayer on OpenJUMP 6669

2021-02-04 Thread edgar . soldin
the commit by Mike seems to have simply added the call Imaging.getImageInfo() https://sourceforge.net/p/jump-pilot/code/6643/ try to wrap it in try/catch and it should work again. or leave it up to Mike who fixed the memory routine ;).. ede ps. All - are we set on the github branch now? if yes i

Re: [JPP-Devel] Important bug on class RasterImageLayer on OpenJUMP 6669

2021-02-03 Thread Giuseppe Aruta
Note that GridFloat (FLT) and GridAscii (ASC) classes have their own methods to read cell size, GridFloat(string filename).readHdr and than getCellSize(). Il giorno gio 4 feb 2021 alle ore 06:48 Giuseppe Aruta < giuseppe.ar...@gmail.com> ha scritto: > Hi all, > it seems that we lost the ability t

[JPP-Devel] Important bug on class RasterImageLayer on OpenJUMP 6669

2021-02-03 Thread Giuseppe Aruta
Hi all, it seems that we lost the ability to read and display FLT and ASC raster files using (Sextante) raster image layer framework. The bug is located into class RasterImageLayer, line 352: bitsPerPixel = Imaging.getImageInfo(new File(imageFileName)).getBitsPerPixel(); The reason is that class