OTB  9.0.0
Orfeo Toolbox
Public Types | List of all members
otb::ogr::DataSource::Modes Struct Reference

#include <otbOGRDataSourceWrapper.h>

Public Types

enum  type {
  Invalid,
  Read,
  Overwrite,
  Update_LayerOverwrite,
  Update_LayerUpdate,
  Update_LayerCreateOnly,
  MAX__
}
 

Detailed Description

I/O modes for DataSources.

Note
Read/Write mode should have been read | write, but actually OGR data source are always at least in read mode.

Definition at line 121 of file otbOGRDataSourceWrapper.h.

Member Enumeration Documentation

◆ type

Enumerator
Invalid 
Read 

Open data source in read-only mode.

Overwrite 

Open data source in overwrite mode

           Data source is deleted if it exists
           and a new data source is created
           Warning : this can delete a whole database
                     if the existing datasource contains a list of layers 
Update_LayerOverwrite 

Open data source in update mode with layers being overwritten

                       When requesting a layer, it is opened in overwrite mode
                       with OVERWRITE=YES creation option.
                       If the layer does not exists, it is created on the fly 
Update_LayerUpdate 

Open data source in update mode with layers being updated

                    New geometries are added to existing layers.
                    If the layer does not exists, it is created on the fly 
Update_LayerCreateOnly 

Open data source in update mode with layers being created only

                        This option prevents the loss of data.
                        One can open an existing database with existing layer, and
                        and add new layers to it.
                        Only non-existing layers can be requested 
MAX__ 

Definition at line 123 of file otbOGRDataSourceWrapper.h.


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