()
| 2991 | * |
| 2992 | */ |
| 2993 | public class Band:public Band GetMaskBand() |
| 2994 | |
| 2995 | /** |
| 2996 | * Return the status flags of the mask band associated with the band. |
| 2997 | * <p> |
| 2998 | * The GetMaskFlags() method returns an bitwise OR-ed set of status flags with |
| 2999 | * the following available definitions that may be extended in the future: |
| 3000 | * <ul> |
| 3001 | * <li>GMF_ALL_VALID(0x01): There are no invalid pixels, all mask values will be 255. |
| 3002 | * When used this will normally be the only flag set.</li> |
| 3003 | * <li>GMF_PER_DATASET(0x02): The mask band is shared between all bands on the dataset.</li> |
| 3004 | * <li>GMF_ALPHA(0x04): The mask band is actually an alpha band and may have values |
| 3005 | * other than 0 and 255.</li> |
| 3006 | * <li>GMF_NODATA(0x08): Indicates the mask is actually being generated from nodata values. |
| 3007 | * (mutually exclusive of GMF_ALPHA)</li> |
| 3008 | * </ul> |
| 3009 | * <p> |
| 3010 | * The GDALRasterBand class includes a default implementation of GetMaskBand() that |
| 3011 | * returns one of four default implementations : |
| 3012 | * <ul> |
| 3013 | * <li>If a corresponding .msk file exists it will be used for the mask band.</li> |
| 3014 | * <li>If the dataset has a NODATA_VALUES metadata item, an instance of the |
| 3015 | * new GDALNoDataValuesMaskBand class will be returned. |
| 3016 | * GetMaskFlags() will return GMF_NODATA | GMF_PER_DATASET.</li> |
| 3017 | * <li>If the band has a nodata value set, an instance of the new |
| 3018 | * GDALNodataMaskRasterBand class will be returned. |
| 3019 | * GetMaskFlags() will return GMF_NODATA.</li> |
| 3020 | * <li>If there is no nodata value, but the dataset has an alpha band that seems |
| 3021 | * to apply to this band (specific rules yet to be determined) and that is |
| 3022 | * of type GDT_Byte then that alpha band will be returned, and the flags |
| 3023 | * GMF_PER_DATASET and GMF_ALPHA will be returned in the flags.</li> |
| 3024 | * <li>If neither of the above apply, an instance of the new GDALAllValidRasterBand |
| 3025 | * class will be returned that has 255 values for all pixels. |
| 3026 | * The null flags will return GMF_ALL_VALID.</li> |
| 3027 | * </ul> |
| 3028 | * |
| 3029 | * @return a valid mask band. |
| 3030 | * |
| 3031 | * @see <a href="http://trac.osgeo.org/gdal/wiki/rfc15_nodatabitmask">RFC 15 - No data bit mask</a> |
| 3032 | * |
| 3033 | */ |
| 3034 | public class Band:public int GetMaskFlags() |
| 3035 | |
| 3036 | /** |
no outgoing calls
no test coverage detected