Examples of GetRasterColorTable()


Examples of org.gdal.gdal.Band.GetRasterColorTable()

      if (poBand.GetOverviewCount() > 0) {
        System.out.println("Band has " + poBand.GetOverviewCount()
            + " overviews.");
      }
 
      if (poBand.GetRasterColorTable() != null) {
        System.out.println("Band has a color table with "
            + poBand.GetRasterColorTable().GetCount() + " entries.");
        for(int i = 0; i < poBand.GetRasterColorTable().GetCount(); i++) {
          System.out.println(" " + i + ": " +
              poBand.GetRasterColorTable().GetColorEntry(i));
View Full Code Here

Examples of org.gdal.gdal.Band.GetRasterColorTable()

            + " overviews.");
      }
 
      if (poBand.GetRasterColorTable() != null) {
        System.out.println("Band has a color table with "
            + poBand.GetRasterColorTable().GetCount() + " entries.");
        for(int i = 0; i < poBand.GetRasterColorTable().GetCount(); i++) {
          System.out.println(" " + i + ": " +
              poBand.GetRasterColorTable().GetColorEntry(i));
        }
      }
View Full Code Here

Examples of org.gdal.gdal.Band.GetRasterColorTable()

      }
 
      if (poBand.GetRasterColorTable() != null) {
        System.out.println("Band has a color table with "
            + poBand.GetRasterColorTable().GetCount() + " entries.");
        for(int i = 0; i < poBand.GetRasterColorTable().GetCount(); i++) {
          System.out.println(" " + i + ": " +
              poBand.GetRasterColorTable().GetColorEntry(i));
        }
      }
     
View Full Code Here

Examples of org.gdal.gdal.Band.GetRasterColorTable()

      if (poBand.GetRasterColorTable() != null) {
        System.out.println("Band has a color table with "
            + poBand.GetRasterColorTable().GetCount() + " entries.");
        for(int i = 0; i < poBand.GetRasterColorTable().GetCount(); i++) {
          System.out.println(" " + i + ": " +
              poBand.GetRasterColorTable().GetColorEntry(i));
        }
      }
     
      System.out.println("Allocating ByteBuffer of size: " + buf_size);
View Full Code Here

Examples of org.gdal.gdal.Band.GetRasterColorTable()

    ColorModel cm = null;

    if(poBand.GetRasterColorInterpretation() ==
      gdalconstConstants.GCI_PaletteIndex) {
      data_type = BufferedImage.TYPE_BYTE_INDEXED;
      cm = poBand.GetRasterColorTable().getIndexColorModel(
                gdal.GetDataTypeSize(buf_type));
      img = new BufferedImage(cm, raster, false, null);
    } else {
      ColorSpace cs = null;
      if(bandCount > 2){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.