On 3/16/2010 1:48 AM, Andrea Aime wrote:
> john poole ha scritto:
>
>> Is there a way to call Coverage.resample so that accuracy is
>> sacrificed for speed?
>> i.e. can we change the block size from whatever the default is, (9?) to
>> be something larger?
>>
> Did you try installing the native JAI extensions? They do provide
> quite a speedup (they are available for Linux, Windows and Solaris).
>
> Cheers
> Andrea
>
>
We do have the native JAI installed.
"guess that might be achieved by setting the resulting
gridgeometry to be at lower resolution?"
That sounds like exactly what I'm trying to do. i.e. keep the image resolution
but reduce the resolution of the resample operation
I was looking at the gridgeometry parameter, but I can't see how to control the
resolution using it.
I'm changing this:
Coverage reprojected =
Operations.DEFAULT.resample((GridCoverage2D)coverage, targetCRS);
to:
GeneralGridEnvelope range =
new GeneralGridEnvelope(((GridCoverage2D) cov).getRenderedImage(), 2);
GridGeometry gridGeometry =
new GridGeometry2D(range, cov.getEnvelope());
Coverage reprojected =
Operations.DEFAULT.resample((GridCoverage2D) cov, targetCRS);
gridGeometry, null);
But none of the constuctors mention anything about block or resolution.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users