Hi list,
I have an issue about setting a GridSampleDimension with categories.
I have a dataset with the following attributes: fillValue, scale, offset,
valid minimum, valid maximum
The fillValue is equal to the minimun value.
As an instance: fillValue = 0;
validMin = 0; validMax = 255
scale = 0.15
offset = 0

Although the fillValue is not a "real" noData, I would like to handle it as
that.
Hence, I would like to set a GridSampleDimension with two categories: nan,
values
- The first one leveraging on the fillValue.
- the second one defining a sampleRange having the min,max values as a
NumberRange (where the minimum valid extreme is excluded) and using scale
and offset to obtain the inverse transformation for the geophysic view.

Actually I have a problem since when the CategoryList tries to define the
inverse (A GeophysicCategoryList), building the corresponding geophysic
category results in a category overlapping the noData category.

Example:
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.
resulting geophysic categories: Category("No data":[0.0 ... 0.0]),
GeophysicsCategory("values":[0.0 ... 38.25]) which overlaps.
I guess this is due to applying the transformation to the very very small
number becoming zero when transformed.
Having defined a sample range with the minimum extreme excluded, is there a
way to obtain back a GeophysicCategory with the minimum "excluded" in order
to have not overlapping categories?

Any tip, suggestion, or workaround would be greatly appreciated.

Regards,
Daniele


-- 
-------------------------------------------------------
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

Reply via email to