OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members

#include <otbGDALImageIO.h>

+ Inheritance diagram for otb::GDALImageIO:
+ Collaboration diagram for otb::GDALImageIO:

Public Types

typedef std::vector< std::string > GDALCreationOptionsType
 
typedef unsigned char InputPixelType
 
typedef std::vector< std::pair< int, double > > NoDataListType
 
typedef itk::SmartPointer< SelfPointer
 
typedef GDALImageIO Self
 
typedef otb::ImageIOBase Superclass
 
- Public Types inherited from otb::ImageIOBase
typedef itk::SmartPointer< SelfPointer
 
typedef ImageIOBase Self
 
typedef itk::LightProcessObject Superclass
 
enum  IOPixelType {
  UNKNOWNPIXELTYPE,
  SCALAR,
  RGB,
  RGBA,
  OFFSET,
  VECTOR,
  POINT,
  COVARIANTVECTOR,
  SYMMETRICSECONDRANKTENSOR,
  DIFFUSIONTENSOR3D,
  COMPLEX,
  FIXEDARRAY,
  MATRIX
}
 
enum  IOComponentType {
  UNKNOWNCOMPONENTTYPE,
  UCHAR,
  CHAR,
  USHORT,
  SHORT,
  UINT,
  INT,
  ULONG,
  LONG,
  FLOAT,
  DOUBLE,
  CSHORT,
  CINT,
  CFLOAT,
  CDOUBLE
}
 
enum  FileType {
  ASCII,
  Binary,
  TypeNotApplicable
}
 
enum  ByteOrder {
  BigEndian,
  LittleEndian,
  OrderNotApplicable
}
 
typedef long IndexValueType
 
typedef unsigned long SizeValueType
 
typedef std::streamoff SizeType
 
typedef vcl_size_t BufferSizeType
 
typedef std::vector< std::string > ArrayOfExtensionsType
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from otb::ImageIOBase
virtual void SetFileName (const char *_arg)
 
virtual const char * GetFileName () const
 
void SetNumberOfDimensions (unsigned int)
 
virtual unsigned int GetNumberOfDimensions () const
 
virtual void SetDimensions (unsigned int i, unsigned int dim)
 
virtual unsigned int GetDimensions (unsigned int i) const
 
virtual void SetOrigin (unsigned int i, double origin)
 
virtual double GetOrigin (unsigned int i) const
 
virtual void SetSpacing (unsigned int i, double spacing)
 
virtual double GetSpacing (unsigned int i) const
 
virtual void SetDirection (unsigned int i, std::vector< double > &direction)
 
virtual void SetDirection (unsigned int i, vnl_vector< double > &direction)
 
virtual std::vector< double > GetDirection (unsigned int i) const
 
virtual std::vector< double > GetDefaultDirection (unsigned int i) const
 
virtual void SetIORegion (itk::ImageIORegion _arg)
 
virtual const itk::ImageIORegion & GetIORegion () const
 
virtual void SetPixelType (const IOPixelType _arg)
 
virtual IOPixelType GetPixelType () const
 
virtual bool SetPixelTypeInfo (const std::type_info &ptype)
 
virtual void SetComponentType (const IOComponentType _arg)
 
virtual IOComponentType GetComponentType () const
 
virtual const std::type_info & GetComponentTypeInfo () const
 
virtual void SetNumberOfComponents (unsigned int _arg)
 
virtual const unsigned int & GetNumberOfComponents () const
 
virtual void SetUseCompression (bool _arg)
 
virtual bool GetUseCompression () const
 
virtual void UseCompressionOn ()
 
virtual void UseCompressionOff ()
 
virtual void SetUseStreamedReading (bool _arg)
 
virtual bool GetUseStreamedReading () const
 
virtual void UseStreamedReadingOn ()
 
virtual void UseStreamedReadingOff ()
 
virtual void SetUseStreamedWriting (bool _arg)
 
virtual bool GetUseStreamedWriting () const
 
virtual void UseStreamedWritingOn ()
 
virtual void UseStreamedWritingOff ()
 
virtual void SetFileType (const FileType _arg)
 
virtual FileType GetFileType () const
 
void SetFileTypeToASCII ()
 
void SetFileTypeToBinary ()
 
virtual void SetByteOrder (const ByteOrder _arg)
 
virtual ByteOrder GetByteOrder () const
 
void SetByteOrderToBigEndian ()
 
void SetByteOrderToLittleEndian ()
 
virtual SizeType GetPixelStride () const
 
SizeType GetImageSizeInPixels () const
 
SizeType GetImageSizeInBytes () const
 
SizeType GetImageSizeInComponents () const
 
virtual unsigned int GetComponentSize () const
 
virtual bool SupportsDimension (unsigned long dim)
 
virtual itk::ImageIORegion GenerateStreamableReadRegionFromRequestedRegion (const itk::ImageIORegion &requested) const
 
virtual unsigned int GetActualNumberOfSplitsForWriting (unsigned int numberOfRequestedSplits, const itk::ImageIORegion &pasteRegion, const itk::ImageIORegion &largestPossibleRegion)
 
virtual itk::ImageIORegion GetSplitRegionForWriting (unsigned int ithPiece, unsigned int numberOfActualSplits, const itk::ImageIORegion &pasteRegion, const itk::ImageIORegion &largestPossibleRegion)
 
const ArrayOfExtensionsTypeGetSupportedReadExtensions () const
 
const ArrayOfExtensionsTypeGetSupportedWriteExtensions () const
 
void DoMapBuffer (void *buffer, vcl_size_t numberOfPixels, std::vector< unsigned int > &bandList)
 
virtual const std::vector< std::string > & GetAttachedFileNames () const
 
const ImageMetadataGetImageMetadata () const
 
void SetImageMetadata (ImageMetadata)
 
- Public Member Functions inherited from otb::MetadataSupplierInterface
template<>
bool GetAs (bool const &defaultValue, std::string const &path, int band) const
 
template<typename T >
GetAs (std::string const &path, int band=-1) const
 
template<typename T >
GetAs (T const &defaultValue, std::string const &path, int band=-1) const
 
template<typename T >
std::vector< T > GetAsVector (std::string const &path, char sep=' ', int size=-1, int band=-1) const
 
bool HasValue (std::string const &path, int band=-1) const
 
virtual ~MetadataSupplierInterface ()=default
 
- Public Member Functions inherited from otb::MetadataStorageInterface
void SetAs (const std::string &path, const std::string &value, int band=-1)
 
void SetAs (const std::string &path, double value, int band=-1)
 
template<typename T >
void SetAsVector (const char *path, std::vector< T > value, const char sep=' ', int band=-1)
 
template<typename T >
void SetAsVector (const std::string &path, std::vector< T > value, const char sep=' ', int band=-1)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::ImageIOBase
static std::string GetComponentTypeAsString (IOComponentType)
 
static std::string GetPixelTypeAsString (IOPixelType)
 
static std::string GetFileTypeAsString (FileType)
 
static std::string GetByteOrderAsString (ByteOrder)
 
typedef itk::SmartPointer< GDALDatasetWrapperGDALDatasetWrapperPointer
 
int m_NbBands
 
int m_CompressionLevel
 
bool m_IsIndexed
 
unsigned int m_DatasetNumber
 
GDALDatasetWrapperPointer m_Dataset
 
unsigned int m_epsgCode
 
GDALDataTypeWrapper * m_PxType
 
int m_BytePerPixel
 
bool m_FlagWriteImageInformation
 
bool m_CanStreamWrite
 
bool m_IsComplex
 
bool m_IsVectorImage
 
GDALCreationOptionsType m_CreationOptions
 
unsigned int m_NumberOfOverviews
 
std::vector< std::pair< unsigned int, unsigned int > > m_OverviewsSize
 
unsigned int m_ResolutionFactor
 
std::vector< unsigned int > m_OriginalDimensions
 
bool m_WriteRPCTags
 
NoDataListType m_NoDataList
 
virtual void SetCompressionLevel (int _arg)
 
virtual int GetCompressionLevel ()
 
virtual void SetIsComplex (bool _arg)
 
virtual bool GetIsComplex ()
 
virtual void SetIsVectorImage (bool _arg)
 
virtual bool GetIsVectorImage ()
 
virtual void SetWriteRPCTags (bool _arg)
 
virtual bool GetWriteRPCTags ()
 
void SetOptions (const GDALCreationOptionsType &opts)
 
GDALCreationOptionsType GetOptions (void)
 
void SetNoDataList (const NoDataListType &noDataList)
 
void SetOutputImagePixelType (bool isComplexInternalPixelType, bool isVectorImage) override
 
bool CanReadFile (const char *) override
 
bool CanStreamRead () override
 
void ReadImageInformation () override
 
void Read (void *buffer) override
 
virtual void ReadVolume (void *buffer)
 
bool GetSubDatasetInfo (std::vector< std::string > &names, std::vector< std::string > &desc)
 
bool GDALPixelTypeIsComplex ()
 
bool CanWriteFile (const char *) override
 
bool CanStreamWrite () override
 
void WriteImageInformation () override
 
void Write (const void *buffer) override
 
bool GetAvailableResolutions (std::vector< unsigned int > &res)
 
bool GetResolutionInfo (std::vector< unsigned int > &res, std::vector< std::string > &desc)
 
unsigned int GetOverviewsCount () override
 
std::vector< std::string > GetOverviewsInfo () override
 
std::string GetGdalPixelTypeAsString () const
 
int GetNbBands () const override
 
std::string GetResourceFile (std::string const &s="") const override
 
std::vector< std::string > GetResourceFiles () const override
 
std::string GetMetadataValue (std::string const &path, bool &hasValue, int band=-1) const override
 
void SetMetadataValue (const char *path, const char *value, int band=-1) override
 
void SetEpsgCode (const unsigned int wellKnownCRS)
 
unsigned int GetNumberOf (std::string const &) const override
 
unsigned int GetAttributId (std::string const &, std::string const &) const override
 
 GDALImageIO ()
 
 ~GDALImageIO () override
 
void KeywordlistToMetadata (ImageMetadataBase::Keywordlist, int band=-1)
 
void GDALMetadataToKeywordlist (const char *const *, ImageMetadataBase::Keywordlist &)
 
void GDALMetadataReadRPC ()
 
void GDALMetadataWriteRPC (GDALDataset *)
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void InternalReadImageInformation ()
 
void InternalWriteImageInformation (const void *buffer)
 
 GDALImageIO (const Self &)=delete
 
void operator= (const Self &)=delete
 
std::string GetGdalWriteImageFileName (const std::string &gdalDriverShortName, const std::string &filename) const
 
std::string FilenameToGdalDriverShortName (const std::string &name) const
 
bool GetOriginFromGMLBox (std::vector< double > &origin)
 
bool CreationOptionContains (std::string partialOption) const
 
void ExportMetadata ()
 
void ImportMetadata ()
 
bool GDALInfoReportCorner (const char *corner_name, double x, double y, double &dfGeoX, double &dfGeoY) const
 

Additional Inherited Members

- Public Attributes inherited from otb::MetadataSupplierInterface
const std::array< std::string, 3 > FALSES = {"0", "false", "False"}
 
const std::array< std::string, 3 > TRUES = {"1", "true", "True"}
 
- Protected Member Functions inherited from otb::ImageIOBase
 ImageIOBase ()
 
 ~ImageIOBase () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
virtual void Reset (const bool freeDynamic=true)
 
void Resize (const unsigned int numDimensions, const unsigned int *dimensions)
 
virtual unsigned int GetPixelSize () const
 
void ComputeStrides ()
 
SizeType GetComponentStride () const
 
SizeType GetRowStride () const
 
SizeType GetSliceStride () const
 
void WriteBufferAsASCII (std::ostream &os, const void *buffer, IOComponentType ctype, SizeType numberOfBytesToWrite)
 
void ReadBufferAsASCII (std::istream &os, void *buffer, IOComponentType ctype, SizeType numberOfBytesToBeRead)
 
bool ReadBufferAsBinary (std::istream &os, void *buffer, SizeType numberOfBytesToBeRead)
 
void AddSupportedReadExtension (const char *extension)
 
void AddSupportedWriteExtension (const char *extension)
 
virtual unsigned int GetActualNumberOfSplitsForWritingCanStreamWrite (unsigned int numberOfRequestedSplits, const itk::ImageIORegion &pasteRegion) const
 
virtual itk::ImageIORegion GetSplitRegionForWritingCanStreamWrite (unsigned int ithPiece, unsigned int numberOfActualSplits, const itk::ImageIORegion &pasteRegion) const
 
- Protected Attributes inherited from otb::ImageIOBase
IOPixelType m_PixelType
 
IOComponentType m_ComponentType
 
ByteOrder m_ByteOrder
 
FileType m_FileType
 
bool m_Initialized
 
std::string m_FileName
 
unsigned int m_NumberOfComponents
 
unsigned int m_NumberOfDimensions
 
bool m_UseCompression
 
bool m_UseStreamedReading
 
bool m_UseStreamedWriting
 
itk::ImageIORegion m_IORegion
 
std::vector< SizeValueTypem_Dimensions
 
std::vector< double > m_Spacing
 
std::vector< double > m_Origin
 
std::vector< std::vector< double > > m_Direction
 
std::vector< SizeTypem_Strides
 
std::vector< std::string > m_AttachedFileNames
 
ImageMetadata m_Imd
 
std::vector< unsigned int > m_BandList
 

Detailed Description

ImageIO object for reading and writing images with GDAL.

This ImageIO uses GDAL interface to read/write images. The origin and spacing are translated from/to GDAL geotransform matrix (even in the case of a sensor image). It means that extracts from sensor images are well supported. Typical sensor images in OTB have a spacing of [1,1] and an origin at [0.5,0.5] (when there is no GDAL geotransform, GDAL physical space is identical to GDAL index space).

Note that the geotransform matrix supports any rotated physical space whereas OTB doesn't.

Warning : the index coordinate system used in GDAL is attached to the corner of the top left pixel, whereas in OTB, the index coordinate system is attached to the centre of the top-left pixel. It means that the origin coefficients read from the GDAL geotransform are the location of the top-left pixel corner. This is why this location has to be shifted by half a pixel to be used as an OTB origin. In a nutshell, OTB images read/written by this ImageIO have the same physical space as GDAL physical space : a given point of image has the same physical location in OTB and in GDAL.

The streaming read is implemented.

Definition at line 77 of file otbGDALImageIO.h.

Member Typedef Documentation

◆ GDALCreationOptionsType

typedef std::vector<std::string> otb::GDALImageIO::GDALCreationOptionsType

Definition at line 90 of file otbGDALImageIO.h.

◆ GDALDatasetWrapperPointer

GDAL parameters.

Definition at line 313 of file otbGDALImageIO.h.

◆ InputPixelType

typedef unsigned char otb::GDALImageIO::InputPixelType

Definition at line 83 of file otbGDALImageIO.h.

◆ NoDataListType

typedef std::vector<std::pair<int, double> > otb::GDALImageIO::NoDataListType

Definition at line 92 of file otbGDALImageIO.h.

◆ Pointer

typedef itk::SmartPointer<Self> otb::GDALImageIO::Pointer

Definition at line 88 of file otbGDALImageIO.h.

◆ Self

Standard class typedefs.

Definition at line 86 of file otbGDALImageIO.h.

◆ Superclass

Definition at line 87 of file otbGDALImageIO.h.

Constructor & Destructor Documentation

◆ GDALImageIO() [1/2]

otb::GDALImageIO::GDALImageIO ( )
protected

Constructor. Spacing is set to [1,1] and origin to [0.5,0.5] as it would correspond to an image without geotransform

◆ ~GDALImageIO()

otb::GDALImageIO::~GDALImageIO ( )
overrideprotected

Destructor.

◆ GDALImageIO() [2/2]

otb::GDALImageIO::GDALImageIO ( const Self )
privatedelete

GDAL parameters.

Member Function Documentation

◆ CanReadFile()

bool otb::GDALImageIO::CanReadFile ( const char *  )
overridevirtual

Determine the file type. Returns true if this ImageIO can read the file specified.

Implements otb::ImageIOBase.

◆ CanStreamRead()

bool otb::GDALImageIO::CanStreamRead ( )
inlineoverridevirtual

Determine the file type. Returns true if the ImageIO can stream read the specified file

Reimplemented from otb::ImageIOBase.

Definition at line 155 of file otbGDALImageIO.h.

◆ CanStreamWrite()

bool otb::GDALImageIO::CanStreamWrite ( )
overridevirtual

Determine the file type. Returns true if the ImageIO can stream write the specified file

Reimplemented from otb::ImageIOBase.

◆ CanWriteFile()

bool otb::GDALImageIO::CanWriteFile ( const char *  )
overridevirtual

Determine the file type. Returns true if this ImageIO can read the file specified.

Implements otb::ImageIOBase.

◆ CreateAnother()

virtual::itk::LightObject::Pointer otb::GDALImageIO::CreateAnother ( void  ) const

◆ CreationOptionContains()

bool otb::GDALImageIO::CreationOptionContains ( std::string  partialOption) const
private

Test whether m_CreationOptions has an option

Parameters
partialOptionThe beginning of a creation option (for example "QUALITY=")

◆ ExportMetadata()

void otb::GDALImageIO::ExportMetadata ( )
private

Dump the ImageMetadata content into GDAL metadata

◆ FilenameToGdalDriverShortName()

std::string otb::GDALImageIO::FilenameToGdalDriverShortName ( const std::string &  name) const
private

GDAL parameters.

◆ GDALInfoReportCorner()

bool otb::GDALImageIO::GDALInfoReportCorner ( const char *  corner_name,
double  x,
double  y,
double &  dfGeoX,
double &  dfGeoY 
) const
private

GDAL parameters.

◆ GDALMetadataReadRPC()

void otb::GDALImageIO::GDALMetadataReadRPC ( )
protected

Parses the RPC from the GDAL Metadata

◆ GDALMetadataToKeywordlist()

void otb::GDALImageIO::GDALMetadataToKeywordlist ( const char *const *  ,
ImageMetadataBase::Keywordlist  
)
protected

Parses a GDAL Metadata string list to fill a Keywordlist

◆ GDALMetadataWriteRPC()

void otb::GDALImageIO::GDALMetadataWriteRPC ( GDALDataset *  )
protected

Write the RPC to the GDAL Metadata

◆ GDALPixelTypeIsComplex()

bool otb::GDALImageIO::GDALPixelTypeIsComplex ( )

Get if the pixel type in the file is complex or not (GDAL side)

◆ GetAttributId()

unsigned int otb::GDALImageIO::GetAttributId ( std::string const &  ,
std::string const &   
) const
inlineoverridevirtual

If multiple keys have the same path, gives the position of the one with value value

Implements otb::MetadataSupplierInterface.

Definition at line 238 of file otbGDALImageIO.h.

◆ GetAvailableResolutions()

bool otb::GDALImageIO::GetAvailableResolutions ( std::vector< unsigned int > &  res)

Get all resolutions possible from the file dimensions

◆ GetCompressionLevel()

virtual int otb::GDALImageIO::GetCompressionLevel ( )
virtual

GDAL parameters.

◆ GetGdalPixelTypeAsString()

std::string otb::GDALImageIO::GetGdalPixelTypeAsString ( ) const

Returns gdal pixel type as string

◆ GetGdalWriteImageFileName()

std::string otb::GDALImageIO::GetGdalWriteImageFileName ( const std::string &  gdalDriverShortName,
const std::string &  filename 
) const
private

Determine real file name to write the image

◆ GetIsComplex()

virtual bool otb::GDALImageIO::GetIsComplex ( )
virtual

GDAL parameters.

◆ GetIsVectorImage()

virtual bool otb::GDALImageIO::GetIsVectorImage ( )
virtual

GDAL parameters.

◆ GetMetadataValue()

std::string otb::GDALImageIO::GetMetadataValue ( std::string const &  path,
bool &  hasValue,
int  band = -1 
) const
overridevirtual

Get metadata item in GDALDataset, domain can specified as "domain/key"

Implements otb::MetadataSupplierInterface.

◆ GetNameOfClass()

virtual const char* otb::GDALImageIO::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from otb::ImageIOBase.

◆ GetNbBands()

int otb::GDALImageIO::GetNbBands ( ) const
overridevirtual

GDAL parameters.

Implements otb::MetadataSupplierInterface.

◆ GetNumberOf()

unsigned int otb::GDALImageIO::GetNumberOf ( std::string const &  ) const
inlineoverridevirtual

Get the number of keys starting with path

Implements otb::MetadataSupplierInterface.

Definition at line 231 of file otbGDALImageIO.h.

◆ GetOptions()

GDALCreationOptionsType otb::GDALImageIO::GetOptions ( void  )
inline

GDAL parameters.

Definition at line 128 of file otbGDALImageIO.h.

◆ GetOriginFromGMLBox()

bool otb::GDALImageIO::GetOriginFromGMLBox ( std::vector< double > &  origin)
private

Parse a GML box from a Jpeg2000 file and get the origin

◆ GetOverviewsCount()

unsigned int otb::GDALImageIO::GetOverviewsCount ( )
overridevirtual

Get number of available overviews in the file Return 0 if no overviews available Currently this overview count is only based on the first band If no pre-computed overviews are available we provide the overview count based on size division by 2

Implements otb::ImageIOBase.

◆ GetOverviewsInfo()

std::vector<std::string> otb::GDALImageIO::GetOverviewsInfo ( )
overridevirtual

Get description about overviews available into the file specified

Implements otb::ImageIOBase.

◆ GetResolutionInfo()

bool otb::GDALImageIO::GetResolutionInfo ( std::vector< unsigned int > &  res,
std::vector< std::string > &  desc 
)

Get Info about all resolution possible from the file dimensions

◆ GetResourceFile()

std::string otb::GDALImageIO::GetResourceFile ( std::string const &  s = "") const
overridevirtual

Get main image file

Implements otb::MetadataSupplierInterface.

◆ GetResourceFiles()

std::vector<std::string> otb::GDALImageIO::GetResourceFiles ( ) const
overridevirtual

GDAL parameters.

Reimplemented from otb::MetadataSupplierInterface.

◆ GetSubDatasetInfo()

bool otb::GDALImageIO::GetSubDatasetInfo ( std::vector< std::string > &  names,
std::vector< std::string > &  desc 
)

Get Info about all subDataset in hdf file

◆ GetWriteRPCTags()

virtual bool otb::GDALImageIO::GetWriteRPCTags ( )
virtual

GDAL parameters.

◆ ImportMetadata()

void otb::GDALImageIO::ImportMetadata ( )
private

Import the ImageMetadata content from GDAL metadata

◆ InternalReadImageInformation()

void otb::GDALImageIO::InternalReadImageInformation ( )
protected

Read all information on the image

◆ InternalWriteImageInformation()

void otb::GDALImageIO::InternalWriteImageInformation ( const void *  buffer)
protected

Write all information on the image

◆ KeywordlistToMetadata()

void otb::GDALImageIO::KeywordlistToMetadata ( ImageMetadataBase::Keywordlist  ,
int  band = -1 
)
protected

Set the metadata from a Keywordlist

◆ New()

static Pointer otb::GDALImageIO::New ( )
static

Method for creation through the object factory.

◆ operator=()

void otb::GDALImageIO::operator= ( const Self )
privatedelete

GDAL parameters.

◆ PrintSelf()

void otb::GDALImageIO::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

GDAL parameters.

◆ Read()

void otb::GDALImageIO::Read ( void *  buffer)
overridevirtual

Reads the data from disk into the memory buffer provided.

Implements otb::ImageIOBase.

◆ ReadImageInformation()

void otb::GDALImageIO::ReadImageInformation ( )
overridevirtual

Set the spacing and dimension information for the set filename.

Implements otb::ImageIOBase.

◆ ReadVolume()

virtual void otb::GDALImageIO::ReadVolume ( void *  buffer)
virtual

Reads 3D data from multiple files assuming one slice per file.

◆ SetCompressionLevel()

virtual void otb::GDALImageIO::SetCompressionLevel ( int  _arg)
virtual

Set/Get the level of compression for the output images. 0-9; 0 = none, 9 = maximum.

◆ SetEpsgCode()

void otb::GDALImageIO::SetEpsgCode ( const unsigned int  wellKnownCRS)

Set the projection system from EPSG code

◆ SetIsComplex()

virtual void otb::GDALImageIO::SetIsComplex ( bool  _arg)
virtual

Set/Get whether the pixel type (otb side) is complex

◆ SetIsVectorImage()

virtual void otb::GDALImageIO::SetIsVectorImage ( bool  _arg)
virtual

Set/Get whether the pixel type (otb side) is Vector or Scalar

◆ SetMetadataValue()

void otb::GDALImageIO::SetMetadataValue ( const char *  path,
const char *  value,
int  band = -1 
)
overridevirtual

Set metadata item in GDALDataset, domain can specified as prefix of the path, like "domain/key"

Implements otb::MetadataStorageInterface.

◆ SetNoDataList()

void otb::GDALImageIO::SetNoDataList ( const NoDataListType noDataList)
inline

Set NoDataList

Definition at line 134 of file otbGDALImageIO.h.

◆ SetOptions()

void otb::GDALImageIO::SetOptions ( const GDALCreationOptionsType opts)
inline

Set/Get the options

Definition at line 123 of file otbGDALImageIO.h.

◆ SetOutputImagePixelType()

void otb::GDALImageIO::SetOutputImagePixelType ( bool  isComplexInternalPixelType,
bool  isVectorImage 
)
inlineoverridevirtual

Provide hist about the output container to deal with complex pixel type

Implements otb::ImageIOBase.

Definition at line 141 of file otbGDALImageIO.h.

◆ SetWriteRPCTags()

virtual void otb::GDALImageIO::SetWriteRPCTags ( bool  _arg)
virtual

Set/get whether the driver will write RPC tags to TIFF

◆ Write()

void otb::GDALImageIO::Write ( const void *  buffer)
overridevirtual

Writes the data to disk from the memory buffer provided. Make sure that the IORegion has been set properly.

Implements otb::ImageIOBase.

◆ WriteImageInformation()

void otb::GDALImageIO::WriteImageInformation ( )
overridevirtual

Writes the spacing and dimensions of the image. Assumes SetFileName has been called with a valid file name.

Implements otb::ImageIOBase.

Member Data Documentation

◆ m_BytePerPixel

int otb::GDALImageIO::m_BytePerPixel
private

Number of bytes per pixel

Definition at line 319 of file otbGDALImageIO.h.

◆ m_CanStreamWrite

bool otb::GDALImageIO::m_CanStreamWrite
private

GDAL parameters.

Definition at line 324 of file otbGDALImageIO.h.

◆ m_CompressionLevel

int otb::GDALImageIO::m_CompressionLevel
protected

Buffer Determines the level of compression for written files. Range 0-9; 0 = none, 9 = maximum , default = 4

Definition at line 282 of file otbGDALImageIO.h.

◆ m_CreationOptions

GDALCreationOptionsType otb::GDALImageIO::m_CreationOptions
private

Creation Options

Definition at line 336 of file otbGDALImageIO.h.

◆ m_Dataset

GDALDatasetWrapperPointer otb::GDALImageIO::m_Dataset
private

GDAL parameters.

Definition at line 314 of file otbGDALImageIO.h.

◆ m_DatasetNumber

unsigned int otb::GDALImageIO::m_DatasetNumber
protected

Dataset index to extract (starting at 0)

Definition at line 287 of file otbGDALImageIO.h.

◆ m_epsgCode

unsigned int otb::GDALImageIO::m_epsgCode
private

GDAL parameters.

Definition at line 315 of file otbGDALImageIO.h.

◆ m_FlagWriteImageInformation

bool otb::GDALImageIO::m_FlagWriteImageInformation
private

GDAL parameters.

Definition at line 323 of file otbGDALImageIO.h.

◆ m_IsComplex

bool otb::GDALImageIO::m_IsComplex
private

Whether the pixel type (otb side, not gdal side) is complex this information has to be provided by the reader

Definition at line 328 of file otbGDALImageIO.h.

◆ m_IsIndexed

bool otb::GDALImageIO::m_IsIndexed
protected

GDAL parameters.

Definition at line 284 of file otbGDALImageIO.h.

◆ m_IsVectorImage

bool otb::GDALImageIO::m_IsVectorImage
private

Whether the pixel type (otb side, not gdal side) is Vector this information has to be provided by the reader

Definition at line 332 of file otbGDALImageIO.h.

◆ m_NbBands

int otb::GDALImageIO::m_NbBands
protected

Number of bands of the image

Definition at line 275 of file otbGDALImageIO.h.

◆ m_NoDataList

NoDataListType otb::GDALImageIO::m_NoDataList
private

GDAL parameters.

Definition at line 361 of file otbGDALImageIO.h.

◆ m_NumberOfOverviews

unsigned int otb::GDALImageIO::m_NumberOfOverviews
private

Number of Overviews in the file

Definition at line 340 of file otbGDALImageIO.h.

◆ m_OriginalDimensions

std::vector<unsigned int> otb::GDALImageIO::m_OriginalDimensions
private

Original dimension of the input image

Definition at line 353 of file otbGDALImageIO.h.

◆ m_OverviewsSize

std::vector<std::pair<unsigned int, unsigned int> > otb::GDALImageIO::m_OverviewsSize
private

Size of the different overviews of the file

Definition at line 344 of file otbGDALImageIO.h.

◆ m_PxType

GDALDataTypeWrapper* otb::GDALImageIO::m_PxType
private

GDAL parameters.

Definition at line 317 of file otbGDALImageIO.h.

◆ m_ResolutionFactor

unsigned int otb::GDALImageIO::m_ResolutionFactor
private

Resolution factor

Definition at line 348 of file otbGDALImageIO.h.

◆ m_WriteRPCTags

bool otb::GDALImageIO::m_WriteRPCTags
private

True if RPC tags should be exported

Definition at line 358 of file otbGDALImageIO.h.


The documentation for this class was generated from the following file: