Python osgeo.gdal.VersionInfo() Examples

The following are code examples for showing how to use osgeo.gdal.VersionInfo(). They are extracted from open source Python projects. You can vote up the examples you like or vote down the ones you don't like. You can also save this page to your account.

Example 1
Project: QGIS-applications   Author: liaduarte   File: GdalTools_utils.py    (license) View Source Project 5 votes vote down vote up
def version(self):
      return Version(gdal.VersionInfo("RELEASE_NAME")) 
Example 2
Project: QGIS-applications   Author: liaduarte   File: GdalTools_utils.py    (license) View Source Project 5 votes vote down vote up
def versionNum(self):
      return int(gdal.VersionInfo("VERSION_NUM"))

  # store the supported rasters info 
Example 3
Project: layman   Author: CCSS-CZ   File: dbman.py    (license) View Source Project 5 votes vote down vote up
def _get_ogr2ogr_version(self):
        """Returns version of OGR2OGR as (major,minor,release) triplet
        """
        return int(gdal.VersionInfo())

    ### LAYPAD ###