[EMAIL PROTECTED] a écrit :
> I'm struggling with the GT resampling operation. My code (to quarter
> the pixels) is working so far, i.e. I get a new GridCoverage with
> four times the number of pixels. The pixel values are correct except
> for the top-most row and the left column, thus from:
>
> 1 2 3
> 4 5 6
> 7 8 9
>
> I get:
>
> 0 0 0 0 0 0
> 0 1 2 2 3 3
> 0 4 5 5 6 6
> 0 4 5 5 6 6
> 0 7 8 8 9 9
> 0 7 8 8 9 9
>
> I don't have a clue about the problem. Do you?
0 is probably taken as "no data value". The "real world" coordinates of the
first row and first column are probably slightly outside the "real world"
bounding box of the original raster (you may prints their bounding box for
testing this hypothesis, as well as the "gridToCRS" transform). If this is the
case, I don't know why the Resample operation computed a bounding box slightly
outside the original bounding box. We would need to open a JIRA task with a
test
case to track this issue.
Martin
-------------------------------------------------------------------------
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-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users