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

-------------------------------------------------------------------------
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-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to