Hi Oliver, Ferdinando,

Since last posting on this thread, one of the other GeoTools
developers also expressed interest in a contouring tool. To avoid any
licensing issues I decided to write some new code implementing the
widely used CONREC algorithm which was published by Paul Bourke in
1987. I think this is also the ancestor of your code Ferdinando.

It's been packaged as a JAI image operator so that it can be used for
straight image processing apps. The contours are returned as JTS
LineStrings.

The source code lives here:
http://code.google.com/p/jai-tools/source/browse/#svn/trunk/operator/contour

Note that's it's a work in progress plus it doesn't yet have unit
tests. Once it's stable, a GeoTools coverage operator class can be
created to provide a version that will work with GridCoverage2D
objects.

Michael




On 17 November 2010 21:36, Ferdinando Villa <[email protected]> wrote:
> Oh, what I am distributing is GPLd, but I haven't really done my homework
> properly on investigating the license for the actual algorithm, which I
> lifted from somewhere on the web. I guess some googling is in order... if I
> remember correctly the code was part of an online lecture on contour
> plotting, I don't remember any specific indications as to the licensing, and
> I think was itself adapted from some older FORTRAN code. Hard to track
> really.
>
> The code references a few classes that can be found at
> http://imt.svn.sourceforge.net/viewvc/imt/trunk/thinklab/plugins/org.integratedmodelling.thinklab.core/src/org/integratedmodelling/utils/image/.
> The nontrivial ones are a wrapper for an indexed color model (ColorMap.java)
> which is linked to ColorBrewer.java, an automated builder/parser of
> colormaps incorporating the colorbrewer palettes and others, and an
> intelligent color chooser you don't want to know about. The only other
> classes it depends on are an exception class (trivial to substitute) and a
> MiscUtilities class that is used only to extract extension and base name
> from a file, so it can also be easily substituted. In a different context,
> you'll probably want to lift out the custom colormap class and change that
> with a standard AWT color model. Other than that, it should be quite
> self-contained and all changes should be trivial.
>
> Let me know if you find it useful enough to deserve adaptation, I will help
> with that if necessary.
>
> Ciao ferdinando
>
> On 11/17/2010 11:25 AM, Michael Bedward wrote:
>>
>> Thanks for posting the code Ferdinando - that's great. Like Oliver,
>> I'll study it with interest.
>>
>> Can you tell me what license applies to it ?
>>
>> Michael
>
>

------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to