Hi Martin,
thx for the fast reply.
Please, read below.
On Tue, Sep 2, 2008 at 7:10 PM, Martin Desruisseaux <
[EMAIL PROTECTED]> wrote:
> Daniele Romagnoli a écrit :
>
>> The fillValue is equal to the minimun value.
>> As an instance: fillValue = 0;
>> validMin = 0; validMax = 255
>> scale = 0.15
>> offset = 0
>>
>
> (...snip...)
>
> defined categories: Category("No data":[0.0 ... 0.0]),
>> Category("values":[4.9E-324 ... 255.0]) ---- Note the value 4.9E-324 having
>> defined the Minimum = 0 EXCLUDED.
>>
>
> Given that the "non-geophysics" view typically uses integer values (it is
> not forced, but this is the typical case) while the "geophysics" view uses
> floating point values, why not defines the validMin to 1?
My data is packed data (I have SampleValidRange, and scale/Offset values to
obtain the geophysic data).
(I have a different product having as validRange, -3.4028235E38,
3.4028235E38, then, I cannot use a validMin set to 1).
>
> Alternatively, you can also try to create a NumberRange as below:
>
> NumberRange range = NumberRange.create(0, false, 255, true);
>
> where the boolean argument tells that 0 is exclusive while 255 is
> inclusive.
This is exactly what I have done. Indeed the 4.9E-324 value visualized while
debugging my category comes from having defined a NumberRange as you are
suggesting.
Is there a way to tell the CategoryList package private constructor checking
if the originating categories ranges are included or excluded, then build
the inverse GeophyisicCategoryList in compliance with this?
Regards,
Daniele
>
>
> Martin
>
--
-------------------------------------------------------
Eng. Daniele Romagnoli
Software Engineer
GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy
phone: +39 0584983027
fax: +39 0584983027
mob: +39 328 0559267
http://www.geo-solutions.it
-------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel