|
From: Martin D. <mar...@ge...> - 2006-10-08 00:28:01
|
JONGSUNG LEE a écrit : > And, how about raster data (GridCoverage)? Can I define the projection for the raster data after loading into GridCoverage? then, How? The CoordinateReferenceSystem usually need to be specified at GridCoverage2D creation time. However you may create a GridCoverage2D with a dummy CRS, and recreate again a GridCoverage2D later with all information inferred from the first GridCoverage2D except the CRS. Example (approximative): GridCoverage2D gc = ... CoordinateReferenceSystem crs = ... gc = coverageFactory.create(gc.getName(), gc.getRenderedImage(), crs, gc.getGridGeometry().getGridToCoordinateSystem(), gc.getSampleDimensions(), null, null); Martin |