Changes between Version 5 and Version 6 of rfc59.1_utilities_as_a_library


Ignore:
Timestamp:
Jan 13, 2016, 7:15:51 AM (8 years ago)
Author:
Even Rouault
Comment:

Mention GDALBuildVRT()

Legend:

Unmodified
Added
Removed
Modified
  • rfc59.1_utilities_as_a_library

    v5 v6  
    662662}}}
    663663
     664{{{
     665def BuildVRTOptions(options = [],
     666                    resolution = None,
     667                    outputBounds = None,
     668                    xRes = None, yRes = None,
     669                    targetAlignedPixels = None,
     670                    separate = None,
     671                    bandList = None,
     672                    addAlpha = None,
     673                    resampleAlg = None,
     674                    outputSRS = None,
     675                    allowProjectionDifference = None,
     676                    srcNodata = None,
     677                    VRTNodata = None,
     678                    hideNodata = None,
     679                    callback = None, callback_data = None):
     680    """ Create a BuildVRTOptions() object that can be passed to gdal.BuildVRT()
     681        Keyword arguments are :
     682          options --- can be be an array of strings, a string or let empty and filled from other keywords..
     683          resolution --- 'highest', 'lowest', 'average', 'user'.
     684          outputBounds --- output bounds as (minX, minY, maxX, maxY) in target SRS.
     685          xRes, yRes --- output resolution in target SRS.
     686          targetAlignedPixels --- whether to force output bounds to be multiple of output resolution.
     687          separate --- whether each source file goes into a separate stacked band in the VRT band.
     688          bandList --- array of band numbers (index start at 1).
     689          addAlpha --- whether to add an alpha mask band to the VRT when the source raster have none.
     690          resampleAlg --- resampling mode.
     691          outputSRS --- assigned output SRS.
     692          allowProjectionDifference --- whether to accept input datasets have not the same projection. Note: they will *not* be reprojected.
     693          srcNodata --- source nodata value(s).
     694          VRTNodata --- nodata values at the VRT band level.
     695          hideNodata --- whether to make the VRT band not report the NoData value.
     696          callback --- callback method.
     697          callback_data --- user data for callback.
     698    """
     699
     700def BuildVRT(destName, srcDSOrSrcDSTab, **kwargs):
     701    """ Build a VRT from a list of datasets.
     702        Arguments are :
     703          destName --- Output dataset name
     704          srcDSOrSrcDSTab --- an array of Dataset objects or filenames, or a Dataset object or a filename
     705        Keyword arguments are :
     706          options --- return of gdal.InfoOptions(), string or array of strings
     707          other keywords arguments of gdal.BuildVRTOptions()
     708        If options is provided as a gdal.BuildVRTOptions() object, other keywords are ignored. """
     709}}}
     710
    664711== Utilities ==
    665712
     
    687734
    688735gdal.Rasterize method is tested in [http://svn.osgeo.org/gdal/trunk/autotest/utilities/test_gdal_rasterize_lib.py test_gdal_rasterize_lib.py].
     736
     737gdal.BuildVRT method is tested in [http://svn.osgeo.org/gdal/trunk/autotest/utilities/test_gdalbuildvrt_lib.py test_gdalbuildvrt_lib.py].
    689738
    690739== Compatibility Issues ==