gsdview.gdalbackend.gdalptc
Custom ptc components for GDAL.
Functions
Classes
| GdalAddOverviewDescriptor([cwd, env, ...]) |
Descriptor of gdaladdo tool |
| GdalOutputHandler([loggername, statusbar, ...]) |
Handler for the GDAL simple progress report to terminal. |
| Qt4OutputHandler(loggername[, statusbar, ...]) |
Qt4 Output Handler |
-
class gsdview.gdalbackend.gdalptc.GdalAddOverviewDescriptor(cwd=None, env=None, isextraenv=True, stdout_handler=None, stderr_handler=None)
Descriptor of gdaladdo tool
Create an overview of an image.
- executable: full path of the tool executableor just the tool
program name if it is in the system search path
- cwd: program working directory
- env: environment
- stdout_handler: the OutputHandler for the stdout of the tool
- stderr_handler: the OutputHandler for the stderr of the tool
-
cmdline(*args)
- Create the command to generate the overview.
-
resampling_algorithm
- resampling algorithm for gdaladdo
-
reset_defaults()
-
class gsdview.gdalbackend.gdalptc.GdalOutputHandler(loggername='externaltool', statusbar=None, progressbar=None, blinker=None)
Handler for the GDAL simple progress report to terminal.
This progress reporter prints simple progress report to the terminal
window. The progress report generally looks something like this:
“0...10...20...30...40...50...60...70...80...90...100 - done.”
Every 2.5% of progress another number or period is emitted.
-
handle_progress(data)
-
reset()
-
class gsdview.gdalbackend.gdalptc.PyGdalOutputHandler(loggername='externaltool', statusbar=None, progressbar=None, blinker=None)
- Return cutom extra env according to GDAL user settings.
-
gsdview.gdalbackend.gdalptc.update_descriptor_from_settings(descriptor, settings)