When I do something like this
File filein = new File("TestData/rks.png");
File fileout = new File("TestData/rks_new.png");
WorldImageReader reader = new WorldImageReader(filein);
GridCoverage2D myGridCov = reader.read(null);
WorldImageWriter wiw = new WorldImageWriter(fileout);
I would expect that what goes in is the same as what comes out. Instead the
world file is messed up.
The png are the same, the prj are the same, but the pgw which was originally
comes out as
This results in image rendering incorrectly. This only seems to happen when
the rotations in the world file are not 0
Oh, and the CRS is EPSG:27200
View this message in context: http://osgeo-org.1560.x6.nabble.com/Strange-behaviour-bug-reading-and-then-writing-georeferenced-PNG-tp5073470.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.