@@ -68,25 +68,6 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
68
68
Size = 1 << 6 // has fixed source type
69
69
};
70
70
71
- // This is modified copy of GDALDataType
72
- enum DataType
73
- {
74
- /* ! Unknown or unspecified type */ UnknownDataType = 0 ,
75
- /* ! Eight bit unsigned integer */ Byte = 1 ,
76
- /* ! Sixteen bit unsigned integer */ UInt16 = 2 ,
77
- /* ! Sixteen bit signed integer */ Int16 = 3 ,
78
- /* ! Thirty two bit unsigned integer */ UInt32 = 4 ,
79
- /* ! Thirty two bit signed integer */ Int32 = 5 ,
80
- /* ! Thirty two bit floating point */ Float32 = 6 ,
81
- /* ! Sixty four bit floating point */ Float64 = 7 ,
82
- /* ! Complex Int16 */ CInt16 = 8 ,
83
- /* ! Complex Int32 */ CInt32 = 9 ,
84
- /* ! Complex Float32 */ CFloat32 = 10 ,
85
- /* ! Complex Float64 */ CFloat64 = 11 ,
86
- /* ! Color, alpha, red, green, blue, 4 bytes */ ARGBDataType = 12 ,
87
- TypeCount = 13 /* maximum type # + 1 */
88
- };
89
-
90
71
// This is modified copy of GDALColorInterp
91
72
enum ColorInterpretation
92
73
{
@@ -190,50 +171,6 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
190
171
return QgsRasterDataProvider::UnknownDataType;
191
172
}
192
173
193
- int typeSize ( int dataType ) const
194
- {
195
- // modified copy from GDAL
196
- switch ( dataType )
197
- {
198
- case Byte :
199
- return 8 ;
200
-
201
- case UInt16 :
202
- case Int16:
203
- return 16 ;
204
-
205
- case UInt32 :
206
- case Int32:
207
- case Float32 :
208
- case CInt16:
209
- return 32 ;
210
-
211
- case Float64 :
212
- case CInt32:
213
- case CFloat32:
214
- return 64 ;
215
-
216
- case CFloat64:
217
- return 128 ;
218
-
219
- case ARGBDataType:
220
- return 32 ;
221
-
222
- default :
223
- return 0 ;
224
- }
225
- }
226
- int dataTypeSize ( int bandNo ) const
227
- {
228
- return typeSize ( dataType ( bandNo ) );
229
- }
230
-
231
- /* * Get numbur of bands */
232
- virtual int bandCount () const
233
- {
234
- return 1 ;
235
- }
236
-
237
174
/* * Returns data type for the band specified by number */
238
175
virtual int colorInterpretation ( int theBandNo ) const
239
176
{
0 commit comments