public static void validateImageType ( PngReader reader ) { if ( reader == null ) { throw new GeoPackageException ( "The image is null" ) ; } if ( reader . imgInfo . channels != 1 || reader . imgInfo . bitDepth != 16 ) { throw new GeoPackageException ( "The coverage data tile is expected to be a single channel 16 bit unsigned short, channels: " + reader . imgInfo . channels + ", bits: " + reader . imgInfo . bitDepth ) ; } }
Validate that the image type is single channel 16 bit