Hi, I load dem (srtm) data that contains NO_DATA cells. I want to calculate
z-values for Coordinates (using bilinear interpolation). My problem is now
that some cells have NO_DATA (-32767) values. Is there an interpolation
method that can ignore NO_DATA? I know there is no perfect solution and in
theory all cells could be NO_DATA.
A simple approach that uses only the valid neighbors coul work in my case.
Any ideas how to achieve that?

Here is the code I currently use:


GeoTiffReader reader = new GeoTiffReader(f);
GridCoverage2D c = reader.read(null);
GridCoverage2D coverage = Interpolator2D.create(c,
Interpolation.getInstance(Interpolation.INTERP_BILINEAR));

Point2D.Double p = new Point2D.Double(10.4, 52.1);
double[] r = new double[1];
coverage.evaluate(p, r);

Cheers,


Jan
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to