[JPP-Devel] Raster Styler added to OJ core

2015-06-18 Thread Alberto De Luca - GeA
Hi everyone.

I added the Raster Styler tool (that creates symbologies for 1-banded 
rasters) to the OJ core (thanks also to Peppe for his help). The tool is 
made of several classes, you can see them in this package (and subpackages):

org.openjump.core.rasterimage.styler

The tool is handled as an Extension, so I added it to default-plugins.xml:

 
 org.openjump.core.rasterimage.styler.RasterStylesExtension
 

To use it, load a sextante raster, and click the "Raster Styles..." on 
the layer contextual menu. The tool also gives the option of showing the 
raster legend by clicking, in the contextual menu, the "Legend" item.

Some TODOs:
- improve the legend: now it's a horrible floating dialog, I'll try to 
turn it into a tree-like legend like the one used by vector layers;
- translate the strings and include them in the main OJ language files. 
Now they're located in a separate file in the 
org.openjump.core.rasterimage.styler.resources package, and are English 
only;
- add the option to save custom styles.

Alberto

--
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Raster Styler added to OJ core

2015-06-18 Thread Giuseppe Aruta
Hi Alberto,
nice work! I think that OpenJUMP really needs to expand its raster
capabilities.

Best regards

Peppe

2015-06-18 18:03 GMT+02:00 Alberto De Luca - GeA <
alberto.del...@geomaticaeambiente.com>:

> Hi everyone.
>
> I added the Raster Styler tool (that creates symbologies for 1-banded
> rasters) to the OJ core (thanks also to Peppe for his help). The tool is
> made of several classes, you can see them in this package (and
> subpackages):
>
> org.openjump.core.rasterimage.styler
>
> The tool is handled as an Extension, so I added it to default-plugins.xml:
>
>  
>  org.openjump.core.rasterimage.styler.RasterStylesExtension
>  
>
> To use it, load a sextante raster, and click the "Raster Styles..." on
> the layer contextual menu. The tool also gives the option of showing the
> raster legend by clicking, in the contextual menu, the "Legend" item.
>
> Some TODOs:
> - improve the legend: now it's a horrible floating dialog, I'll try to
> turn it into a tree-like legend like the one used by vector layers;
> - translate the strings and include them in the main OJ language files.
> Now they're located in a separate file in the
> org.openjump.core.rasterimage.styler.resources package, and are English
> only;
> - add the option to save custom styles.
>
> Alberto
>
>
> --
> ___
> 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