Menu

#175 Bug random behavior of Save Image to Raster

OJ_1.16
closed-fixed
nobody
not specified
5
2020-09-14
2011-02-09
Anonymous
No

in Sextante popup menu there is a "Save raster to image" tool. This tool has a random strange behaviour:

1) using on any color image,
It works fine and the saved file can be reopen with no problems.

2) using on a TIF file black and white file, where white is a NO-DATA area.
it saves the file as a negative. When I try to reload the saved file, it is not displayed.

3) Using on a grid file (tested on TIF or ASC). The file is saved with 0 byte dimension and
It shows this error message:
-------------------------------------------------------------
ava.lang.NullPointerException
at org.libtiff.jai.util.PropertyUtil.getString(PropertyUtil.java:54)
at org.libtiff.jai.util.JaiI18N.getString(JaiI18N.java:28)
at org.libtiff.jai.codecimpl.XTIFFImageEncoder.getImageFields(XTIFFImageEncoder.java:246)
at org.libtiff.jai.codecimpl.XTIFFImageEncoder.encode(XTIFFImageEncoder.java:142)
at org.openjump.core.ui.plugin.layer.pirolraster.SaveRasterImageAsImagePlugIn.execute(SaveRasterImageAsImagePlugIn.java:135)
at com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:130)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Discussion

  • Rashad

    Rashad - 2011-02-09

    can you please send me the tif file i have no tiff for testing

     
  • ede

    ede - 2020-09-13
    • Operating System: --> not specified
    • Milestone: --> OJ_1.16
     
  • ede

    ede - 2020-09-13

    Peppe, could you test this please? ..thx ede

     
  • Giuseppe Aruta

    Giuseppe Aruta - 2020-09-14
    • status: open --> closed-fixed
     
  • Giuseppe Aruta

    Giuseppe Aruta - 2020-09-14

    It is already solved. Fixed

     

Log in to post a comment.