Hi,
I have a simple test to interpolate no data values for a GridCoverage using
the example in the page.
http://docs.geotools.org/latest/userguide/library/coverage/grid.html
javax.media.jai.Interpolation interp =
Interpolation.getInstance(Interpolation.INTERP_BILINEAR);
GridCoverage2D covinterpol = (GridCoverage2D)
Operations.DEFAULT.interpolate(scicov, interp);
RenderedImage ri = covinterpol.getRenderedImage();
But my result coverage is always equals to the input. I'm missing something
or doing something wrong?
GridCoverageFactory gcf = new GridCoverageFactory();
Map<String, Object> properties = new HashMap<>();
properties.put(NoDataContainer.GC_NODATA, new NoDataContainer(-9999));
GridCoverage2D inputCov = gcf.create("INPUT", renderedImage,
gridCoverage2D.getEnvelope(), null, null, properties);
javax.media.jai.Interpolation interp =
Interpolation.getInstance(Interpolation.INTERP_NEAREST);
GridCoverage2D outputCoverage = (GridCoverage2D)
Operations.DEFAULT.interpolate(inputCov, interp);
RenderedImage ri = outputCoverage.getRenderedImage();
GridCoverage2D newCov = gcf.create("NEW", ri,
outputCoverage.getEnvelope(), null, null, properties);
Thank you
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users