Hi Jukka,
can you send me the 32 bit raster? I will try to reproduce the error. The
message seems to point to org.openjump.core.rasterimage.TiffUtilsV2 class,
which in turns points to
vividsolutions.jump.workbench.imagery.geoimg.GeoReferencedRaster
(ImageIO framework).

Il giorno lun 28 ott 2024 alle ore 12:42 Rahkonen Jukka <
jukka.rahko...@maanmittauslaitos.fi> ha scritto:

> Hi Peppe,
>
>
>
> The Sigma button works now and shows useful statistics.
>
> The Extract min/max tool works well with an 8-bit greyscale. With a 32-bit
> dem
>
> the tool also runs, but it does not create the point layer for me.  The
> log does not show anything special. Here are the rows from the log,
> including minimal steps
>
>    - open a Sextante image into an empty project
>    - run the Extract min/max tool
>
>
>
> [INFO] 2024-10-28_13:19:36.162 Executing Open...
>
> [WARN] 2024-10-28_13:19:43.471 AddRasterImageLayerWizard.addImage: a
> category must be selected
>
> [INFO] 2024-10-28_13:19:43.705 Done. Current committed
> memory:plugin.AbstractPlugIn.executing = Executing87 MB
>
> [INFO] 2024-10-28_13:19:48.347 Executing Log
>
> [INFO] 2024-10-28_13:19:48.371 Done. Current committed
> memory:plugin.AbstractPlugIn.executing = Executing182 MB
>
> [INFO] 2024-10-28_13:20:42.491 Executing Estract min and max values from
> raster
>
> [INFO] 2024-10-28_13:21:44.930 Done. Current committed
> memory:plugin.AbstractPlugIn.executing = Executing244 MB
>
>
>
> When I tried if selecting/deselecting the DEM layer from the layer list of
> OJ makes any difference, and playing with the layer drop down menu of the
> plugin, I also managed to trigger an error. I do not know yet how to make
> is happen always.
>
> java.io.IOException: java.lang.NullPointerException
>
>                           at
> org.openjump.core.rasterimage.TiffUtilsV2.getRenderedOp(TiffUtilsV2.java:57)
>
>                           at
> org.openjump.core.rasterimage.RasterImageIO.readCellValue(RasterImageIO.java:327)
>
>                           at
> org.openjump.core.rasterimage.RasterImageLayer.getCellValue(RasterImageLayer.java:1462)
>
>                           at
> org.openjump.core.rasterimage.plugin.terrain.derivates.ExtractMinMaxPlugIn.run(Unknown
> Source)
>
>                           at
> com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151)
>
> Caused by: java.lang.NullPointerException
>
>                           at
> org.openjump.core.rasterimage.TiffUtilsV2.getRenderedOp(TiffUtilsV2.java:53)
>
>                           ... 4 more
>
>
>
> -Jukka-
>
>
>
>
>
> *Lähettäjä:* Giuseppe Aruta <giuseppe.ar...@gmail.com>
> *Lähetetty:* maanantai 28. lokakuuta 2024 12.51
> *Vastaanottaja:* OpenJump develop and use <
> jump-pilot-devel@lists.sourceforge.net>
> *Aihe:* Re: [JPP-Devel] Upgraded RasterTools to version 3.0 beta
>
>
>
> HI Jukka,
>
> A new version  my Raster Tools is on the pull request .
>
> These are the new things according to your suggestions/tests:
>
> a) I correct the problem with the info tools (Sigma button) due to
> improper language code
>
> b) In the Terrain Analysis submenu there is another plugin "Estract min
> and max values from raster" which allows to extract min and max values from
> a selected raster and display them as styled points in a vector layer
>
>
>
> Best regards
>
> Peppe
>
>
>
> Il giorno lun 14 ott 2024 alle ore 16:46 Giuseppe Aruta <
> giuseppe.ar...@gmail.com> ha scritto:
>
> Hi Jukka, that is an interesting tool. I will work around it, it should
> not be difficult to get it. I am travelling and I can work on it after the
> 27th of October.
> Meanwhile if you find other issues feel free to send me feedback.
> The Sigma statistics has to be review, for sure. On the list.
> Peppe
>
>
>
> Il lun 14 ott 2024, 13:52 Rahkonen Jukka <
> jukka.rahko...@maanmittauslaitos.fi> ha scritto:
>
> Hi,
>
>
>
> With a DEM opened as a Sextante image the tools work fine. Pretty nice,
> even I do not know yet what to do with all of them. I tested with 3000x3000
> pixel sized file because we have plenty of those and the algorithms run
> very fast with them. I found one issue: In the Frequency distribution,
> pressing the Sigma button starts something that obviously does nothing or
> at least gets never ready, and it is impossible to stop the process. The
> Cancel button has no effect, nor does the red cross. I had to kill Java
> with the task manager.
>
>
>
> By change just last week I tried to find a raster tool that would report a
> minimum and maximum value from a raster AND the locations of the extremes,
> either as pixel coordinates or georeferenced coordinates. I did find some
> examples about finding them with numpy
> https://en.moonbooks.org/Articles/How-to-find-the-indexes-of-the-minimum-or-maximum-values-in-a-matrix-using-python-/.
> Now I was hoping that perhaps I could find such a tool from your toolbox,
> but I could not. However, I believe that some of the existing tools already
> have that information, and there should only be on option to write it out.
> Especially the 3D viewer seems to have everything ready.  For my needs it
> would be enough to save just one vector point feature for the minimum and
> another one for the maximum, even if the DEM contains large flat areas like
> sea.  Min and max would be used for spreading a color ramp along the full
> range, and vector data for visualizing the locations. Do you believe that
> such tool could have general interest among users? An advanced tool could
> take a polygon as input and report min/max values from the interior of the
> polygon.
>
>
>
> -Jukka-
>
>
>
>
>
>
>
> *Lähettäjä:* Giuseppe Aruta <giuseppe.ar...@gmail.com>
> *Lähetetty:* maanantai 14. lokakuuta 2024 11.25
> *Vastaanottaja:* OpenJump develop and use <
> jump-pilot-devel@lists.sourceforge.net>
> *Aihe:* Re: [JPP-Devel] Upgraded RasterTools to version 3.0 beta
>
>
>
> Hi Jukka, the import raster of Raster tool is mainly a converter: it
> converts to tif formats which are not supported by OJ, eventually users can
> open them into OJ workbench view. Regarding the conversion of JPG, PNG and
> TIF (which are supported by Open jump sextante open file),  it is an extra:
> it uses Commons Imagining instead of Image Io libraries. I added just in
> case it was impossible to open these files by regular open sextante. It is
> a work in progress: I recommend you to use regular "open sextante" with
> your tiff Fike and then to use "Raster tools". I will give it a look anyhow
> to correct the bug. Thanks for the warning
> Peppe
>
>
>
> Il lun 14 ott 2024, 09:45 Rahkonen Jukka <
> jukka.rahko...@maanmittauslaitos.fi> ha scritto:
>
> Hi,
>
>
>
> I have now RasterTools 3.0.0 gamma [2024-09-30] on my computer. I was
> planning to test the terrain analysis tools but I am confuced. My source
> DEM is float 32
>
> Band 1 Block=3000x1 Type=Float32, ColorInterp=Gray
>
> but when I import it with the Import raster option it gets changed into 8
> bit RGB. This is what gdalinfo reports about the converted image:
>
>
> Band 1 Block=3000x8 Type=Byte, ColorInterp=Red
>
> Band 2 Block=3000x8 Type=Byte, ColorInterp=Green
>
> Band 3 Block=3000x8 Type=Byte, ColorInterp=Blue
>
>
>
> Am I doing something wrong?
>
>
>
> -Jukka Rahkonen-
>
>
>
> *Lähettäjä:* Giuseppe Aruta <giuseppe.ar...@gmail.com>
> *Lähetetty:* keskiviikko 25. syyskuuta 2024 12.02
> *Vastaanottaja:* OpenJump develop and use <
> jump-pilot-devel@lists.sourceforge.net>
> *Aihe:* Re: [JPP-Devel] Upgraded RasterTools to version 3.0 beta
>
>
>
> THe new version of Raster Tool 3.0 beta is available at the following link:
>
>
>
>
> https://sourceforge.net/projects/opensit/files/Openjump/PlugIn/Raster%20Tools/RasterTools-3.0.0beta-20240918.jar/download
>
>
>
> <https://sourceforge.net/projects/opensit/files/Openjump/PlugIn/Raster%20Tools/RasterTools-3.0.0beta-20240918.jar/download>
>
> S
> <https://sourceforge.net/projects/opensit/files/Openjump/PlugIn/Raster%20Tools/RasterTools-3.0.0beta-20240918.jar/download>ouce
> code is available here:
>
>
> https://sourceforge.net/projects/opensit/files/Openjump/PlugIn/Raster%20Tools/Older/3.x/RasterTools-3.0.0beta-20240918.zip/download
>
>
>
> In a few day we hopefully can integrate this new version into the current
> development snapshots of OpenJUMP
>
>
>
> Giuseppe Aruta
>
>
>
>
>
>
>
>
>
> Il giorno mer 25 set 2024 alle ore 10:50 Giuseppe Aruta <
> giuseppe.ar...@gmail.com> ha scritto:
>
> Hi all
>
> Today I upgraded RasterTools to version 3.0 beta.
>
> The main highlights are the following:
>
>
> a) Reorganized menus in a more simple and intuitive order
> b) added a 'Recent used tools' menu with the list  of the last 10 used
> plugins
> c) Enhanced 'Help' option as a tree of documents
> d) Added 'Warp raster' toolbox to warp images using affine, perspective
> and bicubic transformation
> e) Added Multiflow accumulation algorithm (Freeman, 1991)
> f) Added export raster to KMZ with embedded legend for  single banded
> raster.
>
>
>
> The complete set of tools (some are multitools)  now reaches  the number
> of 70, mainly built using the huge reference available (a list of the
> minimum reference is available on the help option).
>
> Together with Sextante and OpenKLEM, Rastertools will probably cover not
> all but almost the need for a teaching class and a base professional
> project, which includes:
>
> 1) land classification
>
> 2) hydraulic, visibility, cost/path, math, statistic analysis
>
> 3) creation, visualization, elaboration and overlay of images.
>
>
>
> In the future, the brench  3 of RasterTools will be used for the
> correction of bugs and  a better  integration of the tools to OpenJUMP,
> OpenKLEM and Sextante.
>
>
>
> Giuseppe Aruta
>
>
>
> _______________________________________________
> 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