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