Ciao Martin,
I am sorry but I am about to leave hence I cannot take a deep look at the code.

Anyway, from your observations (and your skills) I would say that you
can go on and commit. Next week I will do a full scan of the changes
and I will also check if everything is still working in GeoServer
trunk, jut in case.

I'd have one request though. When you started the ImageWorker work
there were not test at all, hence I spent some time on adding some
good old test coverage. Could you spend some time and add some more so
that reach a more decent coverage level?


Thx,
Simone.


On Jan 11, 2008 7:27 PM, Martin Desruisseaux
<[EMAIL PROTECTED]> wrote:
> Simone Giannecchini a écrit :
> > As per others successive emails, +1 on committing everything.
>
> Thanks a lot!! I have yet an other suggestion in the process. I noticed the
> following methods:
>
>     maskIndexColorModelByte
>     maskComponentColorModelByte
>
> Looking at the code, it seems to me that "maskIndexColorModelByte" already 
> works
> with TYPE_USHORT in addition of TYPE_BYTE, so it seems appropriate to me to
> rename it "maskIndexColorModel" without the "Byte" suffix...
>
> I'm in the process of looking at "maskComponentColorModelByte", but from the
> method name and signature I guess that it does the same than
> "maskIndexColorModel", but applied on image with ComponentSampleModel rather
> than IndexColorModel. If this is true, then I would like to turn the two above
> methods into private ones (in which case the "assert" statements that you put
> become perfectly legitimate), and put instead a single public method:
>
>     maskColor  (or maye "makeColorTransparent" or something like that?)
>
> which delegate automatically to one of the above method according the image
> ColorModel, or thrown an exception if current implementation do not supports 
> it
> (but may supports in a future GeoTools version).
>
> Would you agree?
>
>     Martin
>



-- 
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions S.A.S.
Via Carignoni 51
55041  Camaiore (LU)
Italy

phone: +39 0584983027
fax:      +39 0584983027
mob:    +39 333 8128928


http://www.geo-solutions.it

-------------------------------------------------------

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to