Hi again,
as you can see the problem is in the class es.unex.sextante.openjump.
core.OpenJUMPRasterLayer
The code is here (vis SVN)
http://sourceforge.net/p/jump-pilot/code/HEAD/tree/plug-ins/SextantePlugIn/src/
Peppe

2015-01-13 15:01 GMT+01:00 Giuseppe Aruta <giuseppe_ar...@yahoo.it>:

> Hi Alberto.
> the new improvements on RasterImageLayer broke  connection on
> OpenJumpRasterLayer (Sextante).
> This is the message error I had when I tried to open sextante toolbox
> after loading an image.
>
> Peppe
>
> ------------------------------------------------------
>
> java.lang.NoSuchMethodError:
> org.openjump.core.rasterimage.RasterImageLayer.getEnvelope()Lcom/vividsolutions/jts/geom/Envelope;
>     at
> es.unex.sextante.openjump.core.OpenJUMPRasterLayer.create(OpenJUMPRasterLayer.java:97)
>     at
> es.unex.sextante.openjump.core.OpenJUMPRasterLayer.create(OpenJUMPRasterLayer.java:71)
>     at
> es.unex.sextante.openjump.gui.OpenJUMPInputFactory.createDataObjects(OpenJUMPInputFactory.java:79)
>     at
> es.unex.sextante.gui.core.DefaultGUIFactory.showToolBoxDialog(DefaultGUIFactory.java:63)
>     at
> es.unex.sextante.openjump.extensions.SextanteToolboxPlugin.execute(SextanteToolboxPlugin.java:24)
>     at
> com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:342)
>     at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
>     at
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
>     at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
>     at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
>     at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
>     at
> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
>     at
> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
>     at java.awt.Component.processMouseEvent(Component.java:6516)
>     at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
>     at java.awt.Component.processEvent(Component.java:6281)
>     at java.awt.Container.processEvent(Container.java:2229)
>     at java.awt.Component.dispatchEventImpl(Component.java:4872)
>     at java.awt.Container.dispatchEventImpl(Container.java:2287)
>     at java.awt.Component.dispatchEvent(Component.java:4698)
>     at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
>     at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
>     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
>     at java.awt.Container.dispatchEventImpl(Container.java:2273)
>     at java.awt.Window.dispatchEventImpl(Window.java:2719)
>     at java.awt.Component.dispatchEvent(Component.java:4698)
>     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
>     at java.awt.EventQueue.access$200(EventQueue.java:103)
>     at java.awt.EventQueue$3.run(EventQueue.java:694)
>     at java.awt.EventQueue$3.run(EventQueue.java:692)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>     at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>     at java.awt.EventQueue$4.run(EventQueue.java:708)
>     at java.awt.EventQueue$4.run(EventQueue.java:706)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>     at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
>     at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
>     at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
>     at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>     at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
>     at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
>     at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
>
>
> 2015-01-13 12:58 GMT+01:00 Giuseppe Aruta <giuseppe_ar...@yahoo.it>:
>
>> Hi Alberto
>> WarpImageToFencePlugIn seems not working anymore since OJ r4262.
>> I write to you before opening a bug tag.
>> Best regards
>> Peppe
>>
>> 2015-01-13 2:41 GMT+01:00 Giuseppe Aruta <giuseppe_ar...@yahoo.it>:
>>
>>> Hi Alberto,
>>> what I found interesting on class RasterImageLayer is the capability to
>>> handle different types of rasters (single-band, multi-bands, etc) and its
>>> simplicity. Some months ago I assembled some tools for raster analysis that
>>> are  available here (
>>> http://sourceforge.net/projects/opensit/files/Openjump/PlugIn/Raster%20Tools/)
>>> and worked with OJ 1.6/7 (I have to upgrade them to new improvements of OJ
>>> 1.8 code).
>>> I think we can leave Raster Style and Legend plugins external  from
>>> ChangeRasterImagePropertiesPlugIn: this plugin works both for mono and
>>> multi bands raster. And I am not sure how many users still use the old
>>> OpenJump "the merge" multiband RasterColorPlugin class, merged as panel
>>> into the ChangeRasterImagePropertiesPlugIn class.
>>> Note that I extended Enablecheck factory class to "check the number of
>>> raster bands" (createRasterImageLayerExactlyNBandsMustExistCheck) in order
>>> to activate/deactivate menus of those plugins according to the number of
>>> bands.  You can use that to activate Raster Style and Legend plugins.
>>>  In the future we can think to a unified solution,
>>>
>>>
>>> Best regards
>>>
>>> Peppe
>>>
>>> 2015-01-12 18:08 GMT+01:00 Alberto De Luca - GeA <
>>> alberto.del...@geomaticaeambiente.com>:
>>>
>>>>  Hi everyone,
>>>>
>>>> I committed the changes regarding Sextante Raster Image handling to SVN.
>>>>
>>>> @Peppe
>>>> You're right, the sextante raster image, in the way I was seeing it,
>>>> was a single-band image to be used in data processing (overlay, raster
>>>> combination, hydrology...) where normally only one band is used at time...
>>>> No worries, I already modified the code to account for multi-band images,
>>>> so now 3-bands JPGs and TIFFs should be visualized properly. The multi-band
>>>> image support is not complete though: ideally, when an image as more than 1
>>>> band, the user should be able to choose what band to use in each of the
>>>> three RGB channels. This would be especially useful whit images having more
>>>> than 3 bands. We will work on that.
>>>> Related to this: the "Raster Style" plugin for the moment only works on
>>>> a single band at the time, so it's useful only for single-band images. Do
>>>> you want us to merge it with the "Change Raster Image Properties" plugin,
>>>> or is it better to keep it as an external plugin?
>>>>
>>>> Yet to be done: support for statistics saved as a tiff tag.
>>>>
>>>> Alberto
>>>>
>>>>
>>>> On 09/01/2015 15:03 PM, Giuseppe Aruta wrote:
>>>>
>>>>   Hi Alberto,
>>>>  the file I attached to the mail is not a B/W file but a coloured RGB
>>>> orthophoto. The question is that the new modified Sextante RasterImage
>>>> displays only the 1st band (the red one). And it happens with all the  RGB
>>>> image files I tried to open (I attached another sample, a JPG from a
>>>> screenshot of WMS Geoportale Nazionale).
>>>>
>>>>  I tested the RasterStyles.jar, the symbology and Legend. I works very
>>>> nice. I think that this should be a part of OJ core ( I saw also the
>>>> depency to othre classes: org/openjump/core/rasterimage/RasterSymbology),
>>>>
>>>>  thanks
>>>>
>>>>  Peppe
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 2015-01-09 11:23 GMT+01:00 Alberto De Luca - GeA <
>>>> alberto.del...@geomaticaeambiente.com>:
>>>>
>>>>>  Hi everyone!
>>>>>
>>>>> @Jukka
>>>>> Statistics inside the GeoTIFF, as a TAG: I hadn't considered that, but
>>>>> it shouldn't be a problem reading them. I found some documentation in this
>>>>> page
>>>>> <http://www.awaresystems.be/imaging/tiff/tifftags/gdal_metadata.html>,
>>>>> is it correct if I assume that other items (such as min value, max
>>>>> value...) are just stored as other elements using the same keys used in 
>>>>> the
>>>>> aux.xml file , e.g.:
>>>>>
>>>>> ...
>>>>> <Item name="STATISTICS_MAXIMUM">2775</Item>
>>>>> <Item name="STATISTICS_MINIMUM">540.4</Item>
>>>>> ...
>>>>>
>>>>> @Ede
>>>>> My SF account name is bertazza, and yes, testing and debugging here is
>>>>> paramount, the number of classes/methods where we put our hands is
>>>>> worrying...
>>>>>
>>>>> @Giuseppe
>>>>> Thank you for letting me know what you have been working on. And I'll
>>>>> try to avoid duplicates in terms of classes related to raster metadata.
>>>>> We added the two RasterStyle and Legend classes to try to consolidate
>>>>> symbology management. We also implemented a plugin called Raster Styles. 
>>>>> In
>>>>> the OJ build that I gave you for testing, the plugin is available via the
>>>>> raster context menu: right click on the raster name in the layer panel, 
>>>>> and
>>>>> select "Raster Styles". You should be able to change raster symbology:
>>>>> interval, ramps and single values are available. The plugin is not 
>>>>> complete
>>>>> nor optimized yet, but you can have a feel of what we're trying to do.
>>>>> Ubuntu problem: on windows 8 I could open your TIF file without
>>>>> problems, I see it as nice B/W orthophoto. I wonder what could be 
>>>>> different
>>>>> in Linux. Do you have any idea about where the origin of the problem could
>>>>> be, maybe JAI?
>>>>> I will check the problem with "Extract part of image", thank you for
>>>>> telling me.
>>>>>
>>>>> Alberto
>>>>>
>>>>>
>>>>>
>>>>> On 09/01/2015 10:41 AM, edgar.sol...@web.de wrote:
>>>>>
>>>>> On 09.01.2015 10:09, Alberto De Luca - GeA wrote:
>>>>>
>>>>>  Jukka,
>>>>>
>>>>> - raster readers: I agree that tidying up a bit would be good, but
>>>>> honestly I'd need to check them all before recommending anything;
>>>>>
>>>>>  no haste there, let's integrate your changes and we'll clean up after
>>>>>
>>>>> SNIP
>>>>>
>>>>>  - With regards to the timing to contribute the changes to OJ, unless big
>>>>> bugs are found or substantial new features are required, they shouldn't
>>>>> take long. Since we've worked on the source code from OJ 1.7.1-r4004,
>>>>> we'd need to check if everything is ok with the most recent source code,
>>>>> but I don't see it as a lengthy operation.
>>>>>
>>>>>  to make it available to a broader test user group i'd like to have it 
>>>>> committed soon, so users can stumble over problems when using the 
>>>>> snapshots ;)
>>>>>
>>>>> what is your sf.net account name?
>>>>>
>>>>> ..ede
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Dive into the World of Parallel Programming! The Go Parallel Website,
>>>>> sponsored by Intel and developed in partnership with Slashdot Media, is 
>>>>> your
>>>>> hub for all things parallel software development, from weekly thought
>>>>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>>>>> look and join the conversation now. http://goparallel.sourceforge.net
>>>>> _______________________________________________
>>>>> Jump-pilot-devel mailing 
>>>>> listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Dive into the World of Parallel Programming! The Go Parallel Website,
>>>>> sponsored by Intel and developed in partnership with Slashdot Media,
>>>>> is your
>>>>> hub for all things parallel software development, from weekly thought
>>>>> leadership blogs to news, videos, case studies, tutorials and more.
>>>>> Take a
>>>>> look and join the conversation now. http://goparallel.sourceforge.net
>>>>> _______________________________________________
>>>>> Jump-pilot-devel mailing list
>>>>> Jump-pilot-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Dive into the World of Parallel Programming! The Go Parallel Website,
>>>> sponsored by Intel and developed in partnership with Slashdot Media, is 
>>>> your
>>>> hub for all things parallel software development, from weekly thought
>>>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>>>> look and join the conversation now. http://goparallel.sourceforge.net
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Jump-pilot-devel mailing 
>>>> listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
>>>> GigeNET is offering a free month of service with a new server in
>>>> Ashburn.
>>>> Choose from 2 high performing configs, both with 100TB of bandwidth.
>>>> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
>>>> www.gigenet.com
>>>> _______________________________________________
>>>> Jump-pilot-devel mailing list
>>>> Jump-pilot-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>>
>>>>
>>>
>>
>
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to