[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] [Geotools-devel] Re: Raster Data Images
|
simone giannecchini a écrit :
I will provide an example.
[...snip...]
GridCoverage2D gc=new GridCoverage2D(
"example",
providedImage,//renderedImage
crs,
envelope);
I understand. You dont' use a constructor where SampleDimension are
explicitly provided, but use instead a convenience constructor that
compute it automatically. Then you are right, this constructor do not
provides anyway to control the view (since it is just a convenience
constructor) and hints could be a way to control that.
I will looks at yours code today and implement it in GridCoverage2D.
I wonder if rescaling a RenderedImage in the convenience constructor for
any type other than Float and Double is not generally wrong. Maybe we
should change the GridCoverage2D convenience constructor in order to
rescale only float and double types, and lets all other types unchanged
unless a hint is provided?
Martin.