Hi Greg, I have investigated on your issue and I think I have found the problem. I have opened a JIRA for this -> [1] I have fixed it. I'm just finishing to test the changes and then I will committ it on both 2.6.x and trunk. In the mean time, I can send you the updated jar so you can check if that works fine.
Let me know. Regards, Daniele [1]: http://jira.codehaus.org/browse/GEOT-3053 On Mon, Apr 12, 2010 at 11:30 PM, Greg Ederer <[email protected]> wrote: > 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 > > -- ------------------------------------------------------- Eng. Daniele Romagnoli Software Engineer GeoSolutions S.A.S. Via Carignoni 51 55041 Camaiore (LU) Italy phone: +39 0584983027 fax: +39 0584983027 mob: +39 328 0559267 http://www.geo-solutions.it -------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
