From: Michael O. <m.o...@ja...> - 2008-11-16 13:43:28
|
Dear All, I am wondering how do I derive/define a gridcoverage2d from an array of image cell values, arranged in a way such as this -{ pixel 1 band1, pixel 1 band 2, pixel 1 band 3 ...pixel 1 band m, pixel 2 band 1, pixel 2 band 2, pixel 2 band 3 .pixel 2 band m ...pixel n band m} (-this is actually a matrix of numbers (pixel values) sitting in a database); and I have its associated metadata - such as bounding box, coordinate system, etc on another file. Do I have to extract all the values for a band, and associate a sample dimension and envelope to each band and then create a grid coverage2d for each band separately, or how do I pass the number of bands in unencoded image to the gridcoveragefactory to create a multiband image for me!!!! Thanks, Michael |