[udig-devel] ascii grid

Jesse Eichar jeichar at refractions.net
Tue Jul 18 09:49:19 PDT 2006


See my comments:


On 18-Jul-06, at 8:45 AM, Fidel Serrano y Candela wrote:

> i am running a simulation based on cellular automata coded in java,  
> and i would like to
> visualize the output in uDig, the output for now is a matrix of  
> integer values,
> i tried to generate a tiff or jpeg but i didn't find the way,
> i can make it an ascii grid becouse the format is clear and open,
> and i checked the documentation of GeoTools, and there is a class  
> to handle arc ascii grid
>
> so the cuestions are ...
>
> is it posible to display ascii grids in udig??,
yes but currently the plugin is not part of the public release.   
However RC5 will see the new grid coverage implementation and as of  
then many of the "unstable" plugins will be part of uDig and the  
current plugins will be much faster and stable.
> or
> is it posible to generate in java a tiff or jpeg from a two  
> dimention array??
Also possible.  You can use java.awt.BufferedImage to create an  
image.  Then ImageIO.write( ) or something to write to a jpg.
>
> and
> is it posible to display a layer with predefined style??
There is an add Layer Interceptor extension point which allows custom  
code to be ran when a layer is added to a map.  You can use that to  
set the style on your layer.
>
>
> i would like to run this from a button in the toolbar so i made a  
> plugin
> folowing the intructions provided in udig tutorial... for now that  
> button is an actionTool and
> i want the action to open the output of my simulation...
>
Shouldn't be very hard to do this.  I am very often on the  
freenode.org#udig IRC channel.  Feel free to contact me and others on  
that channel to chat with us.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20060718/3fcc0bcb/attachment.html


More information about the udig-devel mailing list