From: Andrea A. <aa...@op...> - 2008-01-31 09:29:08
|
Martin Desruisseaux ha scritto: > Andrea Aime a écrit : >> Worked fine until yesterday, but some changes occurred probably >> yesterday changed the Resampler2D behaviour in a way that the >> band names are no more kept around, that is: >> input: one band image with sample dimensions description "Red_Band" >> output: one band image with sample dimension description "BlueMarble" >> (it's the name of the coverage) >> >> It seems to me changing the band name during a resample it's wrong. > > Yes it is wrong and was not intented - thanks for spotting this bug. I will try > to fix that. Could you please just send me a println of your coverage before and > after the "Resample" operation please? Sure can, here we go: Before: (org.geotools.coverage.processing.operation.CroppedCoverage2D) CroppedCoverage2D["BlueMarble", GeneralEnvelope[146.49999999999477 : 147.0, -44.49999999999784 : -42.99999999999787], DefaultGeographicCRS["WGS 84"]] RenderedSampleDimension[0.0 ... 255.0] *Category("values":[0...255]) After (org.geotools.coverage.processing.operation.Resampler2D) Resampler2D["BlueMarble", GeneralEnvelope[146.49999999999477 : 147.0, -44.49999999999785 : -42.99999999999787], DefaultGeographicCRS["WGS 84"]] RenderedSampleDimension[0.0 ... 255.0] *Category("BlueMarble":[0...255]) (the type has been added by Eclipse). But if I do: croppedGridCoverage.getSampleDimension(0).getDescription() (org.geotools.util.SimpleInternationalString) Red band scaledCoverage.getSampleDimension(0).getDescription() (org.geotools.util.SimpleInternationalString) BlueMarble So it seems the actual sample dimension description is not included in the sysout, only the category names are. Cheers Andrea |