#include <gdal.h>
Go to the source code of this file.
- Author
- Jean-Christophe FABRE jean-.nosp@m.chri.nosp@m.stoph.nosp@m.e.fa.nosp@m.bre@i.nosp@m.nra..nosp@m.fr
This file contains macros to help ensuring compatibility between GDAL version 1.xx and 2.xx of this library. These macros mainly apply to vector part (OGR) of the library 
◆ GDALAllRegister_COMPAT
      
        
          | #define GDALAllRegister_COMPAT | ( |  | ) |  | 
      
 
Macro for compatibility of vector drivers registering 
 
 
◆ GDALClose_COMPAT
      
        
          | #define GDALClose_COMPAT | ( |  | _M_ptr | ) |  | 
      
 
Macro for compatibility of data source closing 
- Parameters
- 
  
    | _M_ptr | Pointer to the data source to close |  
 
 
 
◆ GDALCopy_COMPAT
      
        
          | #define GDALCopy_COMPAT | ( |  | _M_driver, | 
        
          |  |  |  | _M_srcptr, | 
        
          |  |  |  | _M_destpath | 
        
          |  | ) |  |  | 
      
 
Macro for compatibility of vector data copy 
- Parameters
- 
  
    | _M_driver | Driver to use for the copy |  | _M_srcptr | Data source to copy |  | _M_destpath | Path to the copied file(s) |  
 
- Returns
- a pointer to a GDALDataset_COMPAT data source for the newly copied files 
 
 
◆ GDALCreate_COMPAT
      
        
          | #define GDALCreate_COMPAT | ( |  | _M_driver, | 
        
          |  |  |  | _M_path | 
        
          |  | ) |  |  | 
      
 
Macro for compatibility of vector data creation 
- Parameters
- 
  
    | _M_driver | Driver to use for the creation |  | _M_path | Path to the file(s) to create |  
 
- Returns
- a pointer to a GDALDataset_COMPAT data source for the newly created files 
 
 
◆ GDALDataset_COMPAT
      
        
          | #define GDALDataset_COMPAT | 
      
 
Macro for compatibility of vector data source type 
 
 
◆ GDALDelete_COMPAT
      
        
          | #define GDALDelete_COMPAT | ( |  | _M_driver, | 
        
          |  |  |  | _M_path | 
        
          |  | ) |  |  | 
      
 
Macro for compatibility of physical deletion of vector data 
- Parameters
- 
  
    | _M_driver | Driver to use for the deletion |  | _M_path | Path to the file(s) to delete |  
 
 
 
◆ GDALDriver_COMPAT
      
        
          | #define GDALDriver_COMPAT | 
      
 
Macro for compatibility of vector driver type 
 
 
◆ GDALFlush_COMPAT
      
        
          | #define GDALFlush_COMPAT | ( |  | _M_dataset | ) |  | 
      
 
Macro for compatibility of syncing/flushing a dataset to disk 
- Parameters
- 
  
  
 
 
◆ GDALGetDriverByName_COMPAT
      
        
          | #define GDALGetDriverByName_COMPAT | ( |  | _M_name | ) |  | 
      
 
Macro for compatibility of getting a driver by its name 
- Parameters
- 
  
    | _M_name | Name of the driver |  
 
- Returns
- a pointer to a GDALDriver_COMPAT driver, NULL if not found 
 
 
◆ GDALGetDriverName_COMPAT
      
        
          | #define GDALGetDriverName_COMPAT | ( |  | _M_driver | ) |  | 
      
 
Macro for compatibility of getting a the name of the driver from a driver object 
- Parameters
- 
  
    | _M_driver | The driver object |  
 
- Returns
- the name of the driver 
 
 
◆ GDALOFTInteger64_COMPAT
      
        
          | #define GDALOFTInteger64_COMPAT | 
      
 
Macro for compatibility of Integer64 and Integer64List type 
 
 
◆ GDALOFTIntegerList64_COMPAT
      
        
          | #define GDALOFTIntegerList64_COMPAT | 
      
 
 
◆ GDALOpenRO_COMPAT
      
        
          | #define GDALOpenRO_COMPAT | ( |  | _M_path | ) |  | 
      
 
Macro for compatibility of vector data opening (in read only mode) 
- Parameters
- 
  
    | _M_path | Path to the file(s) to open |  
 
- Returns
- a pointer to a GDALDataset_COMPAT data source 
 
 
◆ GDALOpenRW_COMPAT
      
        
          | #define GDALOpenRW_COMPAT | ( |  | _M_path | ) |  | 
      
 
Macro for compatibility of vector data opening (in read-write mode) 
- Parameters
- 
  
    | _M_path | Path to the file(s) to open |  
 
- Returns
- a pointer to a GDALDataset_COMPAT data source