Issue Type: Bug Bug
Affects Versions: 11-beta
Assignee: Simone Giannecchini
Components: coverage, unsupported
Created: 22/Jan/14 7:26 AM
Description:

In my patch to fix some other netcdf issues, I forgot to support certain data types such as shorts. As a result, reading data from netcdf files with such a data type results in black images.
Luckily, there is a simple patch, which is to be inserted at line 806 of UnidataImageReader.java (at the end of the second switch statement in the read method):

default: {
     final IndexIterator it = array.getIndexIterator();
     for (int y = ymin; y < ymax; y++ ) {
      for (int x = xmin; x < xmax; x++) {
          raster.setSample(x, y, dstBand, it.getIntNext());
      }
     }
     break;
}

Can this be committed, so that there is no regression? This patch was tested locally.

Fix Versions: 11-RC1
Project: GeoTools
Priority: Critical Critical
Reporter: Jeroen Dries
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to