Package osgeo :: Package utils :: Module gdal_merge :: Class file_info |
[hide private]
[frames] | no frames]

# Class file_info

source code

A class holding information about a GDAL file.

Instance Methods | [hide private]
__init__(self) x.__init__(...) initializes x; see help(type(x)) for signature | source code
init_from_name(self, filename) Initialize file_info from filename | source code
report(self) | source code
copy_into(self, t_fh, s_band=1, t_band=1, nodata_arg=None, verbose=0) Copy this files image into target file. | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self) (Constructor) | source code
x.__init__(...) initializes x; see help(type(x)) for signature Overrides: object.__init__ (inherited documentation)

### init_from_name(self, filename) | source code
Initialize file_info from filename filename -- Name of file to read. Returns 1 on success or 0 if the file can't be opened.

### copy_into(self, t_fh, s_band=1, t_band=1, nodata_arg=None, verbose=0) | source code
Copy this files image into target file. This method will compute the overlap area of the file_info objects file, and the target gdal.Dataset object, and copy the image data for the common window area. It is assumed that the files are in a compatible projection ... no checking or warping is done. However, if the destination file is a different resolution, or different image pixel type, the appropriate resampling and conversions will be done (using normal GDAL promotion/demotion rules). t_fh -- gdal.Dataset object for the file into which some or all of this file may be copied. Returns 1 on success (or if nothing needs to be copied), and zero one failure.