| 664 | {{{ |
| 665 | def 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 | |
| 700 | def 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 | |