GDAL

gdal_pam.h
1 /******************************************************************************
2 * $Id$
3 *
4 * Project: GDAL Core
5 * Purpose: Declaration for Peristable Auxiliary Metadata classes.
6 * Author: Frank Warmerdam, warmerdam@pobox.com
7 *
8 ******************************************************************************
9 * Copyright (c) 2005, Frank Warmerdam <warmerdam@pobox.com>
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 * DEALINGS IN THE SOFTWARE.
28 ****************************************************************************/
29
30 #ifndef GDAL_PAM_H_INCLUDED
31 #define GDAL_PAM_H_INCLUDED
32
34
35 #include "cpl_minixml.h"
36 #include "gdal_priv.h"
37 #include <limits>
38 #include <map>
39 #include <vector>
40
41 class GDALPamRasterBand;
42
43 /* Clone Info Flags */
44
45 #define GCIF_GEOTRANSFORM 0x01
46 #define GCIF_PROJECTION 0x02
47 #define GCIF_METADATA 0x04
48 #define GCIF_GCPS 0x08
49
50 #define GCIF_NODATA 0x001000
51 #define GCIF_CATEGORYNAMES 0x002000
52 #define GCIF_MINMAX 0x004000
53 #define GCIF_SCALEOFFSET 0x008000
54 #define GCIF_UNITTYPE 0x010000
55 #define GCIF_COLORTABLE 0x020000
56 #define GCIF_COLORINTERP 0x020000
57 #define GCIF_BAND_METADATA 0x040000
58 #define GCIF_RAT 0x080000
59 #define GCIF_MASK 0x100000
60 #define GCIF_BAND_DESCRIPTION 0x200000
61
62 #define GCIF_ONLY_IF_MISSING 0x10000000
63 #define GCIF_PROCESS_BANDS 0x20000000
64
65 #define GCIF_PAM_DEFAULT (GCIF_GEOTRANSFORM | GCIF_PROJECTION | \
66 GCIF_METADATA | GCIF_GCPS | \
67 GCIF_NODATA | GCIF_CATEGORYNAMES | \
68 GCIF_MINMAX | GCIF_SCALEOFFSET | \
69 GCIF_UNITTYPE | GCIF_COLORTABLE | \
70 GCIF_COLORINTERP | GCIF_BAND_METADATA | \
71 GCIF_RAT | GCIF_MASK | \
72 GCIF_ONLY_IF_MISSING | GCIF_PROCESS_BANDS|\
73 GCIF_BAND_DESCRIPTION)
74
75 /* GDAL PAM Flags */
76 /* ERO 2011/04/13 : GPF_AUXMODE seems to be unimplemented */
77 #define GPF_DIRTY 0x01 // .pam file needs to be written on close
78 #define GPF_TRIED_READ_FAILED 0x02 // no need to keep trying to read .pam.
79 #define GPF_DISABLED 0x04 // do not try any PAM stuff.
80 #define GPF_AUXMODE 0x08 // store info in .aux (HFA) file.
81 #define GPF_NOSAVE 0x10 // do not try to save pam info.
82
83 /* ==================================================================== */
84 /* GDALDatasetPamInfo */
85 /* */
86 /* We make these things a separate structure of information */
87 /* primarily so we can modify it without altering the size of */
88 /* the GDALPamDataset. It is an effort to reduce ABI churn for */
89 /* driver plugins. */
90 /* ==================================================================== */
91 class GDALDatasetPamInfo
92 {
93 public:
94 char *pszPamFilename = nullptr;
95
96 std::vector<CPLXMLTreeCloser> m_apoOtherNodes{};
97
98 OGRSpatialReference* poSRS = nullptr;
99
100 int bHaveGeoTransform = false;
101 double adfGeoTransform[6]{0,0,0,0,0,0};
102
103 int nGCPCount = 0;
104 GDAL_GCP *pasGCPList = nullptr;
105 OGRSpatialReference* poGCP_SRS = nullptr;
106
107 CPLString osPhysicalFilename{};
108 CPLString osSubdatasetName{};
109 CPLString osAuxFilename{};
110
111 int bHasMetadata = false;
112 };
114
115 /* ******************************************************************** */
116 /* GDALPamDataset */
117 /* ******************************************************************** */
118
120 class CPL_DLL GDALPamDataset : public GDALDataset
121 {
122 friend class GDALPamRasterBand;
123
124 private:
125 int IsPamFilenameAPotentialSiblingFile();
126
127 protected:
128
129 GDALPamDataset(void);
131 int nPamFlags = 0;
132 GDALDatasetPamInfo *psPam = nullptr;
133
134 virtual CPLXMLNode *SerializeToXML( const char *);
135 virtual CPLErr XMLInit( CPLXMLNode *, const char * );
136
137 virtual CPLErr TryLoadXML(char **papszSiblingFiles = nullptr);
138 virtual CPLErr TrySaveXML();
139
140 CPLErr TryLoadAux(char **papszSiblingFiles = nullptr);
141 CPLErr TrySaveAux();
142
143 virtual const char *BuildPamFilename();
144
145 void PamInitialize();
146 void PamClear();
147
148 void SetPhysicalFilename( const char * );
149 const char *GetPhysicalFilename();
150 void SetSubdatasetName( const char *);
151 const char *GetSubdatasetName();
153
154 public:
155 ~GDALPamDataset() override;
156
157 void FlushCache(bool bAtClosing) override;
158
159 const OGRSpatialReference* GetSpatialRef() const override;
160 CPLErr SetSpatialRef(const OGRSpatialReference* poSRS) override;
161
162 CPLErr GetGeoTransform( double * ) override;
163 CPLErr SetGeoTransform( double * ) override;
164 void DeleteGeoTransform();
165
166 int GetGCPCount() override;
167 const OGRSpatialReference* GetGCPSpatialRef() const override;
168 const GDAL_GCP *GetGCPs() override;
169 using GDALDataset::SetGCPs;
170 CPLErr SetGCPs( int nGCPCount, const GDAL_GCP *pasGCPList,
171 const OGRSpatialReference* poSRS ) override;
172
173 CPLErr SetMetadata( char ** papszMetadata,
174 const char * pszDomain = "" ) override;
175 CPLErr SetMetadataItem( const char * pszName,
176 const char * pszValue,
177 const char * pszDomain = "" ) override;
178 char **GetMetadata( const char * pszDomain = "" ) override;
179 const char *GetMetadataItem( const char * pszName,
180 const char * pszDomain = "" ) override;
181
182 char **GetFileList(void) override;
183
184 void ClearStatistics() override;
185
187 virtual CPLErr CloneInfo( GDALDataset *poSrcDS, int nCloneInfoFlags );
188
189 CPLErr IBuildOverviews( const char *pszResampling,
190 int nOverviews, const int *panOverviewList,
191 int nListBands, const int *panBandList,
192 GDALProgressFunc pfnProgress,
193 void * pProgressData,
194 CSLConstList papszOptions ) override;
195
196 // "semi private" methods.
197 void MarkPamDirty() { nPamFlags |= GPF_DIRTY; }
198 GDALDatasetPamInfo *GetPamInfo() { return psPam; }
199 int GetPamFlags() { return nPamFlags; }
200 void SetPamFlags(int nValue ) { nPamFlags = nValue; }
202
203 private:
204 CPL_DISALLOW_COPY_ASSIGN(GDALPamDataset)
205 };
206
208
209 constexpr double GDAL_PAM_DEFAULT_NODATA_VALUE = 0;
210 constexpr int64_t GDAL_PAM_DEFAULT_NODATA_VALUE_INT64 = std::numeric_limits<int64_t>::min();
211 constexpr uint64_t GDAL_PAM_DEFAULT_NODATA_VALUE_UINT64 = std::numeric_limits<uint64_t>::max();
212
213 /* ==================================================================== */
214 /* GDALRasterBandPamInfo */
215 /* */
216 /* We make these things a separate structure of information */
217 /* primarily so we can modify it without altering the size of */
218 /* the GDALPamDataset. It is an effort to reduce ABI churn for */
219 /* driver plugins. */
220 /* ==================================================================== */
221 struct GDALRasterBandPamInfo {
222 GDALPamDataset *poParentDS = nullptr;
223
224 bool bNoDataValueSet = false;
225 bool bNoDataValueSetAsInt64 = false;
226 bool bNoDataValueSetAsUInt64 = false;
227
228 double dfNoDataValue = GDAL_PAM_DEFAULT_NODATA_VALUE;
229 int64_t nNoDataValueInt64 = GDAL_PAM_DEFAULT_NODATA_VALUE_INT64;
230 uint64_t nNoDataValueUInt64 = GDAL_PAM_DEFAULT_NODATA_VALUE_UINT64;
231
232 GDALColorTable *poColorTable = nullptr;
233
234 GDALColorInterp eColorInterp = GCI_Undefined;
235
236 char *pszUnitType = nullptr;
237 char **papszCategoryNames = nullptr;
238
239 double dfOffset = 0.0;
240 double dfScale = 1.0;
241
242 int bHaveMinMax = FALSE;
243 double dfMin = 0;
244 double dfMax = 0;
245
246 int bHaveStats = FALSE;
247 double dfMean = 0;
248 double dfStdDev = 0;
249
250 CPLXMLNode *psSavedHistograms = nullptr;
251
252 GDALRasterAttributeTable *poDefaultRAT = nullptr;
253
254 bool bOffsetSet = false;
255 bool bScaleSet = false;
256 };
258 /* ******************************************************************** */
259 /* GDALPamRasterBand */
260 /* ******************************************************************** */
261
263 class CPL_DLL GDALPamRasterBand : public GDALRasterBand
264 {
265 friend class GDALPamDataset;
266
267 protected:
269 virtual CPLXMLNode *SerializeToXML( const char *pszVRTPath );
270 virtual CPLErr XMLInit( CPLXMLNode *, const char * );
271
272 void PamInitialize();
273 void PamClear();
274 void PamInitializeNoParent();
275 void MarkPamDirty();
276
277 GDALRasterBandPamInfo *psPam = nullptr;
279
280 public:
281 GDALPamRasterBand();
283 explicit GDALPamRasterBand(int bForceCachedIO);
285 ~GDALPamRasterBand() override;
286
287 void SetDescription( const char * ) override;
288
289 CPLErr SetNoDataValue( double ) override;
290 CPLErr SetNoDataValueAsInt64( int64_t nNoData ) override;
291 CPLErr SetNoDataValueAsUInt64( uint64_t nNoData ) override;
292 double GetNoDataValue( int *pbSuccess = nullptr ) override;
293 int64_t GetNoDataValueAsInt64( int *pbSuccess = nullptr ) override;
294 uint64_t GetNoDataValueAsUInt64( int *pbSuccess = nullptr ) override;
295 CPLErr DeleteNoDataValue() override;
296
297 CPLErr SetColorTable( GDALColorTable * ) override;
298 GDALColorTable *GetColorTable() override;
299
300 CPLErr SetColorInterpretation( GDALColorInterp ) override;
301 GDALColorInterp GetColorInterpretation() override;
302
303 const char *GetUnitType() override;
304 CPLErr SetUnitType( const char * ) override;
305
306 char **GetCategoryNames() override;
307 CPLErr SetCategoryNames( char ** ) override;
308
309 double GetOffset( int *pbSuccess = nullptr ) override;
310 CPLErr SetOffset( double ) override;
311 double GetScale( int *pbSuccess = nullptr ) override;
312 CPLErr SetScale( double ) override;
313
314 CPLErr GetHistogram( double dfMin, double dfMax,
315 int nBuckets, GUIntBig * panHistogram,
316 int bIncludeOutOfRange, int bApproxOK,
317 GDALProgressFunc, void *pProgressData ) override;
318
319 CPLErr GetDefaultHistogram( double *pdfMin, double *pdfMax,
320 int *pnBuckets, GUIntBig ** ppanHistogram,
321 int bForce,
322 GDALProgressFunc, void *pProgressData) override;
323
324 CPLErr SetDefaultHistogram( double dfMin, double dfMax,
325 int nBuckets, GUIntBig *panHistogram ) override;
326
327 CPLErr SetMetadata( char ** papszMetadata,
328 const char * pszDomain = "" ) override;
329 CPLErr SetMetadataItem( const char * pszName,
330 const char * pszValue,
331 const char * pszDomain = "" ) override;
332
333 GDALRasterAttributeTable *GetDefaultRAT() override;
334 CPLErr SetDefaultRAT( const GDALRasterAttributeTable * ) override;
335
337 // new in GDALPamRasterBand.
338 virtual CPLErr CloneInfo( GDALRasterBand *poSrcBand, int nCloneInfoFlags );
339
340 // "semi private" methods.
341 GDALRasterBandPamInfo *GetPamInfo() { return psPam; }
343 private:
344 CPL_DISALLOW_COPY_ASSIGN(GDALPamRasterBand)
345
346 void ResetNoDataValues();
347 };
348
350
351 /* ******************************************************************** */
352 /* GDALPamMultiDim */
353 /* ******************************************************************** */
354
358 class CPL_DLL GDALPamMultiDim
359 {
360 struct Private;
361 std::unique_ptr<Private> d;
362
363 void Load();
364 void Save();
365
366 public:
367 explicit GDALPamMultiDim(const std::string& osFilename);
368 virtual ~GDALPamMultiDim();
369
370 std::shared_ptr<OGRSpatialReference> GetSpatialRef(const std::string& osArrayFullName);
371
372 void SetSpatialRef(const std::string& osArrayFullName,
373 const OGRSpatialReference* poSRS);
374
375 CPLErr GetStatistics( const std::string& osArrayFullName,
376 bool bApproxOK,
377 double *pdfMin, double *pdfMax,
378 double *pdfMean, double *pdfStdDev,
379 GUInt64* pnValidCount);
380
381 void SetStatistics( const std::string& osArrayFullName,
382 bool bApproxStats,
383 double dfMin, double dfMax,
384 double dfMean, double dfStdDev,
385 GUInt64 nValidCount );
386
387 void ClearStatistics();
388
389 void ClearStatistics( const std::string& osArrayFullName );
390 };
391
392 /* ******************************************************************** */
393 /* GDALPamMDArray */
394 /* ******************************************************************** */
395
397 class CPL_DLL GDALPamMDArray: public GDALMDArray
398 {
399 std::shared_ptr<GDALPamMultiDim> m_poPam;
400
401 protected:
402 GDALPamMDArray(const std::string& osParentName,
403 const std::string& osName,
404 const std::shared_ptr<GDALPamMultiDim>& poPam);
405
406 bool SetStatistics( bool bApproxStats,
407 double dfMin, double dfMax,
408 double dfMean, double dfStdDev,
409 GUInt64 nValidCount ) override;
410
411 public:
412 const std::shared_ptr<GDALPamMultiDim>& GetPAM() const { return m_poPam; }
413
414 CPLErr GetStatistics( bool bApproxOK, bool bForce,
415 double *pdfMin, double *pdfMax,
416 double *pdfMean, double *padfStdDev,
417 GUInt64* pnValidCount,
418 GDALProgressFunc pfnProgress, void *pProgressData ) override;
419
420 void ClearStatistics() override;
421
422 bool SetSpatialRef(const OGRSpatialReference* poSRS) override;
423
424 std::shared_ptr<OGRSpatialReference> GetSpatialRef() const override;
425 };
426
427 // These are mainly helper functions for internal use.
428 int CPL_DLL PamParseHistogram( CPLXMLNode *psHistItem,
429 double *pdfMin, double *pdfMax,
430 int *pnBuckets, GUIntBig **ppanHistogram,
431 int *pbIncludeOutOfRange, int *pbApproxOK );
432 CPLXMLNode CPL_DLL *
433 PamFindMatchingHistogram( CPLXMLNode *psSavedHistograms,
434 double dfMin, double dfMax, int nBuckets,
435 int bIncludeOutOfRange, int bApproxOK );
436 CPLXMLNode CPL_DLL *
437 PamHistogramToXMLTree( double dfMin, double dfMax,
438 int nBuckets, GUIntBig * panHistogram,
439 int bIncludeOutOfRange, int bApprox );
440
441 // For managing the proxy file database.
442 const char CPL_DLL * PamGetProxy( const char * );
443 const char CPL_DLL * PamAllocateProxy( const char * );
444 const char CPL_DLL * PamDeallocateProxy( const char * );
445 void CPL_DLL PamCleanProxyDB( void );
446
448
449 #endif /* ndef GDAL_PAM_H_INCLUDED */
GDALRasterBand::SetNoDataValue
virtual CPLErr SetNoDataValue(double dfNoData)
Set the no data value for this band.
Definition: gdalrasterband.cpp:1850
GDALMDArray::GetSpatialRef
virtual std::shared_ptr< OGRSpatialReference > GetSpatialRef() const
Return the spatial reference system object associated with the array.
Definition: gdalmultidim.cpp:2183
GDALRasterBand::GetColorTable
virtual GDALColorTable * GetColorTable()
Fetch the color table associated with band.
Definition: gdalrasterband.cpp:2374
GUInt64
GUIntBig GUInt64
Unsigned 64 bit integer type.
Definition: cpl_port.h:251
GDALRasterBand::GetUnitType
virtual const char * GetUnitType()
Return raster unit type.
Definition: gdalrasterband.cpp:2954
GDALRasterBand::DeleteNoDataValue
virtual CPLErr DeleteNoDataValue()
Remove the no data value for this band.
Definition: gdalrasterband.cpp:2052
GDALRasterBand::GetOffset
virtual double GetOffset(int *pbSuccess=nullptr)
Fetch the raster value offset.
Definition: gdalrasterband.cpp:2752
GDALRasterBand::SetColorTable
virtual CPLErr SetColorTable(GDALColorTable *poCT)
Set the raster color table.
Definition: gdalrasterband.cpp:2423
GDALRasterBand::GetDefaultHistogram
virtual CPLErr GetDefaultHistogram(double *pdfMin, double *pdfMax, int *pnBuckets, GUIntBig **ppanHistogram, int bForce, GDALProgressFunc, void *pProgressData)
Fetch default raster histogram.
Definition: gdalrasterband.cpp:3825
GDALMDArray::GetStatistics
virtual CPLErr GetStatistics(bool bApproxOK, bool bForce, double *pdfMin, double *pdfMax, double *pdfMean, double *padfStdDev, GUInt64 *pnValidCount, GDALProgressFunc pfnProgress, void *pProgressData)
Fetch statistics.
Definition: gdalmultidim.cpp:7941
GDALPamDataset
PAM dataset.
Definition: gdal_pam.h:120
cpl_minixml.h
GDALPamRasterBand
PAM raster band.
Definition: gdal_pam.h:263
OGRSpatialReference
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:157
GDALRasterBand::SetDefaultHistogram
virtual CPLErr SetDefaultHistogram(double dfMin, double dfMax, int nBuckets, GUIntBig *panHistogram)
Set default histogram.
Definition: gdalrasterband.cpp:6488
GDALRasterBand::SetUnitType
virtual CPLErr SetUnitType(const char *pszNewValue)
Set unit type.
Definition: gdalrasterband.cpp:3002
GDALRasterBand::GetColorInterpretation
virtual GDALColorInterp GetColorInterpretation()
How should this band be interpreted as color?
Definition: gdalrasterband.cpp:2282
GDALRasterBand::GetCategoryNames
virtual char ** GetCategoryNames()
Fetch the list of category names for this raster.
Definition: gdalrasterband.cpp:1561
GDALColorInterp
GDALColorInterp
Definition: gdal.h:204
GDALMajorObject::SetDescription
virtual void SetDescription(const char *)
Set object description.
Definition: gdalmajorobject.cpp:119
CPLString
Convenient string class based on std::string.
Definition: cpl_string.h:320
GDALRasterBand
A single raster band (or channel).
Definition: gdal_priv.h:1179
GDALDataset::GetMetadata
void static void char ** GetMetadata(const char *pszDomain="") override
Fetch metadata.
Definition: gdaldataset.cpp:4113
CPLXMLNode
Document node structure.
Definition: cpl_minixml.h:69
GDALMajorObject::GetMetadataItem
virtual const char * GetMetadataItem(const char *pszName, const char *pszDomain="")
Fetch single metadata item.
Definition: gdalmajorobject.cpp:343
GDALDataset::SetGCPs
virtual CPLErr SetGCPs(int nGCPCount, const GDAL_GCP *pasGCPList, const OGRSpatialReference *poGCP_SRS)
Assign GCPs.
Definition: gdaldataset.cpp:1714
GDALDataset::GetGCPs
virtual const GDAL_GCP * GetGCPs()
Fetch GCPs.
Definition: gdaldataset.cpp:1609
GDALDataset
A set of associated raster bands, usually from one file.
Definition: gdal_priv.h:342
GDALRasterBand::SetNoDataValueAsInt64
virtual CPLErr SetNoDataValueAsInt64(int64_t nNoData)
Set the no data value for this band.
Definition: gdalrasterband.cpp:1922
GDALMDArray
Class modeling a multi-dimensional array.
Definition: gdal_priv.h:2456
GDALRasterBand::SetDefaultRAT
virtual CPLErr SetDefaultRAT(const GDALRasterAttributeTable *poRAT)
Set default Raster Attribute Table.
Definition: gdalrasterband.cpp:6635
GDALMDArray::SetSpatialRef
virtual bool SetSpatialRef(const OGRSpatialReference *poSRS)
Assign a spatial reference system object to the the array.
Definition: gdalmultidim.cpp:2169
GDALDataset::ClearStatistics
virtual void ClearStatistics()
Clear statistics.
Definition: gdaldataset.cpp:8321
CSLConstList
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition: cpl_port.h:1056
GUIntBig
unsigned long long GUIntBig
Large unsigned integer type (generally 64-bit unsigned integer type).
Definition: cpl_port.h:233
GDALDataset::GetGCPSpatialRef
virtual const OGRSpatialReference * GetGCPSpatialRef() const
Get output spatial reference system for GCPs.
Definition: gdaldataset.cpp:1551
GDALDataset::SetSpatialRef
virtual CPLErr SetSpatialRef(const OGRSpatialReference *poSRS)
Set the spatial reference system for this dataset.
Definition: gdaldataset.cpp:1017
GDAL_GCP
Ground Control Point.
Definition: gdal.h:892
GDALDataset::GetGCPCount
virtual int GetGCPCount()
Get number of GCPs.
Definition: gdaldataset.cpp:1468
GCI_Undefined
@ GCI_Undefined
Definition: gdal.h:206
GDALRasterBand::SetScale
virtual CPLErr SetScale(double dfNewScale)
Set scaling ratio.
Definition: gdalrasterband.cpp:2907
GDALRasterBand::GetNoDataValue
virtual double GetNoDataValue(int *pbSuccess=nullptr)
Fetch the no data value for this band.
Definition: gdalrasterband.cpp:1665
GDALRasterBand::GetNoDataValueAsInt64
virtual int64_t GetNoDataValueAsInt64(int *pbSuccess=nullptr)
Fetch the no data value for this band.
Definition: gdalrasterband.cpp:1721
gdal_priv.h
GDALRasterBand::SetNoDataValueAsUInt64
virtual CPLErr SetNoDataValueAsUInt64(uint64_t nNoData)
Set the no data value for this band.
Definition: gdalrasterband.cpp:1994
GDALDataset::GetSpatialRef
virtual const OGRSpatialReference * GetSpatialRef() const
Fetch the spatial reference for this dataset.
Definition: gdaldataset.cpp:911
GDALDataset::SetGeoTransform
virtual CPLErr SetGeoTransform(double *padfTransform)
Set the affine transformation coefficients.
Definition: gdaldataset.cpp:1151
GDALDataset::GetFileList
virtual char ** GetFileList(void)
Fetch files forming dataset.
Definition: gdaldataset.cpp:2907
GDALRasterBand::GetDefaultRAT
virtual GDALRasterAttributeTable * GetDefaultRAT()
Fetch default Raster Attribute Table.
Definition: gdalrasterband.cpp:6587
GDALDataset::FlushCache
virtual void FlushCache(bool bAtClosing=false)
Flush all write cached data to disk.
Definition: gdaldataset.cpp:434
GDALRasterBand::GetScale
virtual double GetScale(int *pbSuccess=nullptr)
Fetch the raster value scale.
Definition: gdalrasterband.cpp:2858
GDALRasterBand::SetColorInterpretation
virtual CPLErr SetColorInterpretation(GDALColorInterp eColorInterp)
Set color interpretation of a band.
Definition: gdalrasterband.cpp:2327
GDALDataset::SetMetadataItem
CPLErr SetMetadataItem(const char *pszName, const char *pszValue, const char *pszDomain) override
Set single metadata item.
CPLErr
CPLErr
Error category.
Definition: cpl_error.h:52
GDALDataset::SetMetadata
CPLErr SetMetadata(char **papszMetadata, const char *pszDomain) override
Set metadata.
GDALRasterBand::SetCategoryNames
virtual CPLErr SetCategoryNames(char **papszNames)
Set the category names for this band.
Definition: gdalrasterband.cpp:1609
GDALRasterBand::GetHistogram
virtual CPLErr GetHistogram(double dfMin, double dfMax, int nBuckets, GUIntBig *panHistogram, int bIncludeOutOfRange, int bApproxOK, GDALProgressFunc, void *pProgressData)
Compute raster histogram.
Definition: gdalrasterband.cpp:3254
GDALDataset::GetGeoTransform
virtual CPLErr GetGeoTransform(double *padfTransform)
Fetch the affine transformation coefficients.
Definition: gdaldataset.cpp:1096
GDALRasterBand::SetMetadata
CPLErr SetMetadata(char **papszMetadata, const char *pszDomain) override
Set metadata.
GDALRasterAttributeTable
Definition: gdal_rat.h:47
GDALRasterBand::SetMetadataItem
CPLErr SetMetadataItem(const char *pszName, const char *pszValue, const char *pszDomain) override
Set single metadata item.
GDALRasterBand::SetOffset
virtual CPLErr SetOffset(double dfNewOffset)
Set scaling offset.
Definition: gdalrasterband.cpp:2801
CPL_DISALLOW_COPY_ASSIGN
#define CPL_DISALLOW_COPY_ASSIGN(ClassName)
Helper to remove the copy and assignment constructors so that the compiler will not generate the defa...
Definition: cpl_port.h:930
GDALRasterBand::GetNoDataValueAsUInt64
virtual uint64_t GetNoDataValueAsUInt64(int *pbSuccess=nullptr)
Fetch the no data value for this band.
Definition: gdalrasterband.cpp:1782
GDALColorTable
A color table / palette.
Definition: gdal_priv.h:1044
GDALMDArray::ClearStatistics
virtual void ClearStatistics()
Clear statistics.
Definition: gdalmultidim.cpp:8182