From: Martin D. <mar...@no...> - 2006-02-23 20:54:46
|
Fernando Avalos Garc=EDa a =E9crit : > I understand that I can create a CoverageGrid, and I > can map the values to cells on the grid and can i to > make the interpolation??? Once a GridCoverage2D has been created, you can write: coverage =3D Operations.interpolate(coverage, "Bicubic"); where "Bicubic" can also be "Bicubic2" (see Java Advanced Imaging=20 documentation for the difference between "Bicubic" and "Bicubic2") or=20 "Bilinear". The returned coverage is identical to the original one, except that all=20 call to "evaluate" method will performs a bicubic interpolation. Example: double[] values =3D null; for (... do some loop ...) { DirectPosition position =3D ...; values =3D coverage.evaluate(position, values); } Where 'position' is in terms of the coverage CRS (usually geographic=20 coordinates or coordinates in some map projections; not pixel coordinates= ). Martin. |