Hi all,

I would like to apply general MathTransform on a Coverage (Projective, 
RubberSheet etc..). When I try to do so my coverage stays unchanged after 
resampling and my general MathTransform becomes just part of 
coverage.getGridGeometry().getGridToCRS() transformation. Does anybody know how 
to force Operations.resamle(...) method to really resample the image?

Thanks
Jan.


Code looks like this:

 DefaultDerivedCRS derivedCRS = new DefaultDerivedCRS("derivedCRS",
                        new DefaultOperationMethod(builder.getMathTransform()),
                        coverage.getCoordinateReferenceSystem(),
                        builder.getMathTransform(),
                        (CoordinateSystem)DefaultCartesianCS.GENERIC_2D);
 GridCoverage result = (GridCoverage)operations.resample(coverage, derivedCRS);


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to