BandSelector2D seems to choose the target visible band incorrectly ------------------------------------------------------------------
Key: GEOT-1485 URL: http://jira.codehaus.org/browse/GEOT-1485 Project: GeoTools Issue Type: Bug Components: core coverage Affects Versions: 2.4-RC1, 2.4.0, 2.3.5, 2.5-M1, 2.5.0 Reporter: Simone Giannecchini Assignee: Martin Desruisseaux Fix For: 2.4-RC1, 2.4.0, 2.3.5, 2.5-M1, 2.5.0 Attachments: bandselector2d.patch BandSelector2D seems to choose the target visible band incorrectly. A patch that would possibly fix the problem is attached, some code to reproduce the bhaviour is here below. Simply run this code on an RGB image. // // // // Do the actual band selection. // // // final DefaultProcessor processor = new DefaultProcessor( null); // get the source final ParameterValueGroup parameters = processor .getOperation("SelectSampleDimension") .getParameters(); parameters.parameter("SampleDimensions").setValue( new int[] { bandIndex - 1 }); parameters.parameter("Source").setValue(source); // // // // Save the output // // // GridCoverage2D output = (GridCoverage2D) new SelectSampleDimension() .doOperation(parameters, null); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel