Re: [Geotools-devel] InterpolationFunction

2010-05-06 Thread Michael Bedward
Hi Jody, > I thought one of the functions was done already... Yep, the Categorize function was done by Johann and is passing basic unit tests so, fingers crossed, there's not much to do there. The Recode function should be pretty easy. > That looks to be an amazing patch Michael; test cases; jav

Re: [Geotools-devel] InterpolationFunction

2010-05-06 Thread Jody Garnett
I thought one of the functions was done already... That looks to be an amazing patch Michael; test cases; javadocs etc. Wow; between yourself and Andrea you are really raising the bar for GeoTools participation. Jody On 06/05/2010, at 9:04 PM, Michael Bedward wrote: > Hi Andrea, Jody and all,

Re: [Geotools-devel] InterpolationFunction

2010-05-06 Thread Michael Bedward
Hi Andrea, Jody and all, I've just added an updated patch to the Jira issue for the Interpolate function http://jira.codehaus.org/browse/GEOT-3001 I think the patch includes all the minutiae of function behaviour that we discussed back in March. It also includes an example, InterpolationFunctionE

Re: [Geotools-devel] InterpolationFunction

2010-03-24 Thread Jody Garnett
So very pretty! Jody On 24/03/2010, at 5:40 PM, Michael Bedward wrote: > A bit of progress... Here is the countries shapefile with polygon > fill interpolated from the population size attribute > > http://imagebin.org/90101 > > Style created like this... > >private Style createInterpolate

Re: [Geotools-devel] InterpolationFunction

2010-03-24 Thread Andrea Aime
Michael Bedward ha scritto: > A bit of progress... Here is the countries shapefile with polygon > fill interpolated from the population size attribute > > http://imagebin.org/90101 Lovely! We could use this one as a replacement of the famous GeoServer "USA population" map :-p Cheers Andrea --

Re: [Geotools-devel] InterpolationFunction

2010-03-23 Thread Michael Bedward
A bit of progress... Here is the countries shapefile with polygon fill interpolated from the population size attribute http://imagebin.org/90101 Style created like this... private Style createInterpolatedStyle() { Expression[] params = { // lookup value is population siz

Re: [Geotools-devel] InterpolationFunction

2010-03-23 Thread Andrea Aime
Michael Bedward ha scritto: > On 23 March 2010 13:59, Jody Garnett wrote: >> Could we just test with polygon fill for now? I won't have a chance to >> checkout a branch to follow your work. > > No worries. I like the "one step at a time" approach as well :-p Cheers Andrea -- Andrea Aime OpenGe

Re: [Geotools-devel] InterpolationFunction

2010-03-22 Thread Michael Bedward
On 23 March 2010 13:59, Jody Garnett wrote: > Could we just test with polygon fill for now? I won't have a chance to > checkout a branch to follow your work. No worries. Michael -- Download Intel® Parallel Studio Eval Tr

Re: [Geotools-devel] InterpolationFunction

2010-03-22 Thread Jody Garnett
Could we just test with polygon fill for now? I won't have a chance to checkout a branch to follow your work. I am actually hoping to release geotools 2.6.3 shortly; and the interpolate function would make a great addition. Jody On Tue, Mar 23, 2010 at 12:36 PM, Michael Bedward wrote: > Hi Andr

Re: [Geotools-devel] InterpolationFunction

2010-03-22 Thread Michael Bedward
Hi Andrea, Jody (and all), I'm updating the function as discussed but before I do another patch I wonder if it would be more convenient to create a branch for this work ? The reason I suggest it is that I've also mocked up an example of using the Interpolate function in a raster colormap and have

Re: [Geotools-devel] InterpolationFunction

2010-03-22 Thread Michael Bedward
Cool - I'll update the patch tomorrow. Michael -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance.

Re: [Geotools-devel] InterpolationFunction

2010-03-22 Thread Andrea Aime
Michael Bedward ha scritto: > On 22 March 2010 21:57, Andrea Aime wrote: >> Maybe by adding missing points outside of the specified range >> to make the cubic algorithm work? >> By the way I read the spec we can imagine repeating the first >> and the last point indefinitely below and above what was

Re: [Geotools-devel] InterpolationFunction

2010-03-22 Thread Michael Bedward
> "the LIE outside" > sigh... -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Pa

Re: [Geotools-devel] InterpolationFunction

2010-03-22 Thread Michael Bedward
> The first and last points are added such that they like outside or, as most people would say, "the LIE outside" -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs

Re: [Geotools-devel] InterpolationFunction

2010-03-22 Thread Michael Bedward
On 22 March 2010 21:57, Andrea Aime wrote: > Maybe by adding missing points outside of the specified range > to make the cubic algorithm work? > By the way I read the spec we can imagine repeating the first > and the last point indefinitely below and above what was > specified without really changi

Re: [Geotools-devel] InterpolationFunction

2010-03-22 Thread Andrea Aime
Michael Bedward ha scritto: > Hi folks, > > I'm working on putting some flesh onto the bones of > InterpolationFunction which have been sitting in the render module for > some time (thanks Jody for pointing me to this). > > I've got the basics of linear, cosine and cubic interpolation working > f

Re: [Geotools-devel] InterpolationFunction

2010-03-20 Thread Michael Bedward
Yep, I've been reading their XML schema but it seems a bit odd. Mode and Method appear to be defined the wrong way around: They have mode referring to what I would think is more naturally termed the interpolation method (linear, cosine or cubic) and method referring to what seems more appropriatel

Re: [Geotools-devel] InterpolationFunction

2010-03-20 Thread Jody Garnett
Hi Michael: I think they are silent because according to their XML Schema those cases cannot occur. For our cases we probably want to throw an error (because the wrong number of parameters was provided; unless you can think of a sensible solution? You may also wish to read the XML Schema part o

Re: [Geotools-devel] InterpolationFunction

2010-03-19 Thread Michael Bedward
The mangled sentence in that last message should have read... 4. . For cubic interpolation we need an interpolation point on either side of the pair defining the interval that contains the lookup value: Michael -- Downlo

[Geotools-devel] InterpolationFunction

2010-03-19 Thread Michael Bedward
Hi folks, I'm working on putting some flesh onto the bones of InterpolationFunction which have been sitting in the render module for some time (thanks Jody for pointing me to this). I've got the basics of linear, cosine and cubic interpolation working for numeric values. Next it's on to Color and