try this... RenderedImage rImg = cov.getRenderedImage(); TiledImage tImg = new TiledImage(rImg, true);
then work with the TiledImage which, in effect, is a writable view of your coverage's raster Caveat: I haven't done this with really large coverages. Let us know how you go. Michael 2008/9/27 Oleg72 <[EMAIL PROTECTED]>: > > Dear All, > I am trying to read and edit large ESRI Ascii Grid. > To edit small grids the following works fine: > (WritableRaster)RenderedImage().getData(); > > Unfortunately this approach does not work with large Grids. > * Is there a way to make GridCoverage2D created from large ascii Grid > editable? > > At the moment the only way to solve this problem is to create new > GridCoverage2D using GridCoverageBuilder and copy data (floating) into it. > The only problem at the moment is to define number of digits after decimal > point. > If I am writing value 0.001 and reading it back I am getting 0.0 same > problem with saving grid to file. > * How do I define the number of decimal places for values stored in > GridCoverage2D? > Any help would be highly appreciated. > Oleg > -- > View this message in context: > http://www.nabble.com/WritableRaster-and-GridCoverageBuilder-tp19690976p19690976.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
