Skip to contents

gdal_version() returns runtime version information.

Usage

gdal_version()

Value

Character vector of length four containing:

  • "–version" - one line version message, e.g., “GDAL 3.6.3, released 2023/03/12”

  • "GDAL_VERSION_NUM" - formatted as a string, e.g., “3060300” for GDAL 3.6.3.0

  • "GDAL_RELEASE_DATE" - formatted as a string, e.g., “20230312”

  • "GDAL_RELEASE_NAME" - e.g., “3.6.3”

Examples

gdal_version()
#> [1] "GDAL 3.4.1, released 2021/12/27" "3040100"                        
#> [3] "20211227"                        "3.4.1"