#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@s.nosp@m.upag.nosp@m.ro.in.nosp@m.ra.f.nosp@m.r
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
#define GDALAllRegister_COMPAT |
( |
| ) |
|
Macro for compatibility of vector drivers registering
#define GDALClose_COMPAT |
( |
|
_M_ptr | ) |
|
Macro for compatibility of data source closing
- Parameters
-
_M_ptr | Pointer to the data source to close |
#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
#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
#define GDALDataset_COMPAT |
Macro for compatibility of vector data source type
#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 |
#define GDALDriver_COMPAT |
Macro for compatibility of vector driver type
#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
#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
#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