我们从Python开源项目中,提取了以下3个代码示例,用于说明如何使用osgeo.gdal.VersionInfo()。
def version(self): return Version(gdal.VersionInfo("RELEASE_NAME"))
def versionNum(self): return int(gdal.VersionInfo("VERSION_NUM")) # store the supported rasters info
def _get_ogr2ogr_version(self): """Returns version of OGR2OGR as (major,minor,release) triplet """ return int(gdal.VersionInfo()) ### LAYPAD ###