Olaf Danne a écrit :
> we still have problems when reprojecting raster data, which we basically
> already described in
>
> http://www.nabble.com/Raster-file-reprojection-problems-tf3180801.html#a8826611
Maybe Simone could tell more. For now, I don't know if the problem happen with
Geotools GridCoverage renderer or Geotools GridCoverage resample operation.
Would it be possible to try to reproject a GridCoverage using the following
code
and check if the result is the expected one please?
GridCoverage2D coverage = ...;
System.out.println(coverage.getEnvelope());
CoordinateReferenceSystem targetCRS = ...;
coverage = Operations.DEFAULT.resample(coverage, targetCRS);
System.out.println(coverage.getEnvelope());
ImageIO.write(coverage.getRenderedImage(), "png", outputFile);
Martin
-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel