()
| 112 | |
| 113 | |
| 114 | def gdal_version_info(): |
| 115 | ver = gdal_version() |
| 116 | m = re.match(rb"^(?P<major>\d+)\.(?P<minor>\d+)(?:\.(?P<subminor>\d+))?", ver) |
| 117 | if not m: |
| 118 | raise GDALException('Could not parse GDAL version string "%s"' % ver) |
| 119 | major, minor, subminor = m.groups() |
| 120 | return (int(major), int(minor), subminor and int(subminor)) |
| 121 | |
| 122 | |
| 123 | GDAL_VERSION = gdal_version_info() |
no test coverage detected