Michael Bedward wrote: > Do you mean you want to modify the values in an existing coverage ? > That's quite possible, but for map algebra I generally have one or > more coverages as inputs to some operation, the result of which is a > new output coverage.
That's exactly what I am looking to do. To present a very hypothetical example (since it is a general framework I am working on, not a specific model), if there is a raster dataset that represents, say, vegetation density in the model being run, then agents representing grazing animals need to be able to reduce the density as they graze, and the density needs to increase as vegetation grows. > To get at the raster data GridCoverage2D.getRenderedImage is your friend. > > Also, have a look at the geotools helper class ImageWorker. > > Here's an example (note: there are probably much more elegant ways of > doing this :) > [Code snipped...] So, it looks like I will have to extract the raster, modify it and place it into a new GridCoverage object? I can live with that. Thanks. -- Dan D'Alimonte [EMAIL PROTECTED] Masters Candidate MEMF Lab Department of Earth and Environmental Sciences University of Windsor 401 Sunset Avenue, Windsor, Ontario, Canada. N9B 3P4 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
