@@ -6,32 +6,30 @@ namespace spatial {
6
6
namespace gdal {
7
7
8
8
// ! 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 */
27
26
} PixelType;
28
27
29
28
// ! Returns the name of given PixelType
30
- std::string GetPixelTypeName (const PixelType& pixel_type);
29
+ std::string GetPixelTypeName (const PixelType & pixel_type);
31
30
32
31
// ! Supported Types of color interpretation for raster bands (GDALColorInterp).
33
- typedef enum
34
- {
32
+ typedef enum {
35
33
Undefined = 0 , /* *< Undefined */
36
34
GrayIndex = 1 , /* *< Greyscale */
37
35
PaletteIndex = 2 , /* *< Paletted (see associated color table) */
@@ -52,11 +50,10 @@ typedef enum
52
50
} ColorInterp;
53
51
54
52
// ! Returns the name of given ColorInterp
55
- std::string GetColorInterpName (const ColorInterp& color_interp);
53
+ std::string GetColorInterpName (const ColorInterp & color_interp);
56
54
57
55
// ! Supported Warp Resampling Algorithm (GDALResampleAlg).
58
- typedef enum
59
- {
56
+ typedef enum {
60
57
NearestNeighbour = 0 , /* *< Nearest neighbour (select on one input pixel) */
61
58
Bilinear = 1 , /* *< Bilinear (2x2 kernel) */
62
59
Cubic = 2 , /* *< Cubic Convolution Approximation (4x4 kernel) */
@@ -65,7 +62,7 @@ typedef enum
65
62
Average = 5 , /* *< Average (computes the weighted average of all non-NODATA contributing pixels) */
66
63
Mode = 6 , /* *< Mode (selects the value which appears most often of all the sampled points) */
67
64
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) */
69
66
Med = 10 , /* *< Med (selects median of all non-NODATA contributing pixels) */
70
67
Q1 = 11 , /* *< Q1 (selects first quartile of all non-NODATA contributing pixels) */
71
68
Q3 = 12 , /* *< Q3 (selects third quartile of all non-NODATA contributing pixels) */
@@ -74,7 +71,7 @@ typedef enum
74
71
} ResampleAlg;
75
72
76
73
// ! Returns the name of given ResampleAlg
77
- std::string GetResampleAlgName (const ResampleAlg& resample_alg);
74
+ std::string GetResampleAlgName (const ResampleAlg & resample_alg);
78
75
79
76
// ! Position of a cell in a Raster (upper left corner as column and row)
80
77
struct RasterCoord {
0 commit comments