MCPcopy Create free account
hub / github.com/OSGeo/gdal / getDataType

Method getDataType

swig/java/javadoc.java:2827–2864  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2825 * @return the data type of the band.
2826 */
2827public class Band:public int getDataType()
2828
2829
2830/**
2831 * Fetch default raster histogram.
2832 * <p>
2833 * The default method in GDALRasterBand will compute a default histogram. This
2834 * method is overridden by derived classes (such as GDALPamRasterBand, VRTDataset, HFADataset...)
2835 * that may be able to fetch efficiently an already stored histogram.
2836 * <p>
2837 * For example,
2838 * <pre>
2839 * double[] dfMin = new double[1];
2840 * double[] dfMax = new double[1];
2841 * int[][] panHistogram = new int[1][];
2842 * int eErr = hBand.GetDefaultHistogram(dfMin, dfMax, panHistogram, true, new TermProgressCallback());
2843 * if( eErr == gdalconst.CE_None )
2844 * {
2845 * int iBucket;
2846 * int nBucketCount = panHistogram[0].length;
2847 * System.out.print( " " + nBucketCount + " buckets from " +
2848 * dfMin[0] + " to " + dfMax[0] + ":\n " );
2849 * for( iBucket = 0; iBucket &lt; nBucketCount; iBucket++ )
2850 * System.out.print( panHistogram[0][iBucket] + " ");
2851 * System.out.print( "\n" );
2852 * }
2853 * </pre>
2854 *
2855 * @param min_ret allocated array of one double that will contain the lower bound of the histogram.
2856 * @param max_ret allocated array of one double that will contain the upper bound of the histogram.
2857 * @param histogram_ret allocated array of one int[] into which the histogram totals are placed.
2858 * @param force true to force the computation. If false and no default histogram is available, the method will return CE_Warning
2859 * @param callback for reporting algorithm progress. May be null
2860 *
2861 * @return gdalconst.CE_None on success, gdalconst.CE_Failure if something goes wrong, or
2862 * gdalconst.CE_Warning if no default histogram is available.
2863 *
2864 */
2865public class Band:public int GetDefaultHistogram(double[] min_ret, double[] max_ret, int[][] histogram_ret, boolean force, ProgressCallback callback)
2866
2867/**

Callers 7

mainMethod · 0.80
mainMethod · 0.80
RunMethod · 0.80
openFileMethod · 0.80
SerializeMetadataRecFunction · 0.80
GetMetadataElementMethod · 0.80
OpenZoomLevelMethod · 0.80

Calls

no outgoing calls

Tested by 1

openFileMethod · 0.64