@@ -6,32 +6,30 @@ namespace spatial {
66namespace gdal {
77
88// ! Supported Pixel data types (GDALDataType).
9- typedef enum
10- {
11- Unknown = 0 , /* *< Unknown or unspecified type */
12- Byte = 1 , /* *< Eight bit unsigned integer */
13- Int8 = 14 , /* *< 8-bit signed integer */
14- UInt16 = 2 , /* *< Sixteen bit unsigned integer */
15- Int16 = 3 , /* *< Sixteen bit signed integer */
16- UInt32 = 4 , /* *< Thirty two bit unsigned integer */
17- Int32 = 5 , /* *< Thirty two bit signed integer */
18- UInt64 = 12 , /* *< 64 bit unsigned integer */
19- Int64 = 13 , /* *< 64 bit signed integer */
20- Float32 = 6 , /* *< Thirty two bit floating point */
21- Float64 = 7 , /* *< Sixty four bit floating point */
22- CInt16 = 8 , /* *< Complex Int16 */
23- CInt32 = 9 , /* *< Complex Int32 */
24- CFloat32 = 10 , /* *< Complex Float32 */
25- CFloat64 = 11 , /* *< Complex Float64 */
26- TypeCount = 15 /* *< maximum type # + 1 */
9+ typedef enum {
10+ Unknown = 0 , /* *< Unknown or unspecified type */
11+ Byte = 1 , /* *< Eight bit unsigned integer */
12+ Int8 = 14 , /* *< 8-bit signed integer */
13+ UInt16 = 2 , /* *< Sixteen bit unsigned integer */
14+ Int16 = 3 , /* *< Sixteen bit signed integer */
15+ UInt32 = 4 , /* *< Thirty two bit unsigned integer */
16+ Int32 = 5 , /* *< Thirty two bit signed integer */
17+ UInt64 = 12 , /* *< 64 bit unsigned integer */
18+ Int64 = 13 , /* *< 64 bit signed integer */
19+ Float32 = 6 , /* *< Thirty two bit floating point */
20+ Float64 = 7 , /* *< Sixty four bit floating point */
21+ CInt16 = 8 , /* *< Complex Int16 */
22+ CInt32 = 9 , /* *< Complex Int32 */
23+ CFloat32 = 10 , /* *< Complex Float32 */
24+ CFloat64 = 11 , /* *< Complex Float64 */
25+ TypeCount = 15 /* *< maximum type # + 1 */
2726} PixelType;
2827
2928// ! Returns the name of given PixelType
30- std::string GetPixelTypeName (const PixelType& pixel_type);
29+ std::string GetPixelTypeName (const PixelType & pixel_type);
3130
3231// ! Supported Types of color interpretation for raster bands (GDALColorInterp).
33- typedef enum
34- {
32+ typedef enum {
3533 Undefined = 0 , /* *< Undefined */
3634 GrayIndex = 1 , /* *< Greyscale */
3735 PaletteIndex = 2 , /* *< Paletted (see associated color table) */
@@ -52,11 +50,10 @@ typedef enum
5250} ColorInterp;
5351
5452// ! Returns the name of given ColorInterp
55- std::string GetColorInterpName (const ColorInterp& color_interp);
53+ std::string GetColorInterpName (const ColorInterp & color_interp);
5654
5755// ! Supported Warp Resampling Algorithm (GDALResampleAlg).
58- typedef enum
59- {
56+ typedef enum {
6057 NearestNeighbour = 0 , /* *< Nearest neighbour (select on one input pixel) */
6158 Bilinear = 1 , /* *< Bilinear (2x2 kernel) */
6259 Cubic = 2 , /* *< Cubic Convolution Approximation (4x4 kernel) */
@@ -65,7 +62,7 @@ typedef enum
6562 Average = 5 , /* *< Average (computes the weighted average of all non-NODATA contributing pixels) */
6663 Mode = 6 , /* *< Mode (selects the value which appears most often of all the sampled points) */
6764 Max = 8 , /* *< Max (selects maximum of all non-NODATA contributing pixels) */
68- Min = 9 , /* *< Min (selects minimum of all non-NODATA contributing pixels) */
65+ Min = 9 , /* *< Min (selects minimum of all non-NODATA contributing pixels) */
6966 Med = 10 , /* *< Med (selects median of all non-NODATA contributing pixels) */
7067 Q1 = 11 , /* *< Q1 (selects first quartile of all non-NODATA contributing pixels) */
7168 Q3 = 12 , /* *< Q3 (selects third quartile of all non-NODATA contributing pixels) */
@@ -74,7 +71,7 @@ typedef enum
7471} ResampleAlg;
7572
7673// ! Returns the name of given ResampleAlg
77- std::string GetResampleAlgName (const ResampleAlg& resample_alg);
74+ std::string GetResampleAlgName (const ResampleAlg & resample_alg);
7875
7976// ! Position of a cell in a Raster (upper left corner as column and row)
8077struct RasterCoord {
0 commit comments