Hi,
I am attempting to write new GeoTiffs with the CRS embedded in the tags. My
code looks like:
GridCoverage2D cov = makeBinaryCoverage(resultRasterData,
referencedEnvelope);
logger.info("Output Coverage CRS: " +
cov.getCoordinateReferenceSystem().toWKT());
GeoTiffWriter writer;
try
{
writer = new GeoTiffWriter(new File(outputFilePath));
writer.write(cov, null);
} catch (IOException e)
{
e.printStackTrace();
}
When I run this, the logger outputs the correct WKT:
INFO: Output Coverage CRS: GEOGCS["WGS 84",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4326"]]
But, then, when I examine the resulting GeoTIFF using gdalinfo, I see:
Coordinate System is:
GEOGCS["unnamed",
DATUM["unknown",
SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],
PRIMEM["Greenwich",0],
UNIT[,0.0174532925199433]]
Any suggestions?
Thanks!
Greg------------------------------------------------------------------------------
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