gsdtoolsui.tooldescriptors

Exectools tool descriptors for gsdtools .

Classes

BaseGdalToolDescriptor(executable[, args, ...]) Base class for GDAL tool descriprors.
HistogramRequest([hmin, hmax, nbuckets, ...])
Ras2vecDescriptor([cwd, env, ...]) Descriptor for ras2vec tool.
StatsDescriptor([cwd, env, stdout_handler, ...]) Descriptor for gsdstats tool.
class gsdtoolsui.tooldescriptors.Ras2vecDescriptor(cwd=None, env=None, stdout_handler=None, stderr_handler=None)[source]

Bases: gsdview.gdalbackend.gdalexectools.BaseGdalToolDescriptor

Descriptor for ras2vec tool.

Parameters:
  • cwd – program working directory
  • env – environment dictionary
  • envmerge – if set to True (default) it is the env dictionaty is used to update the system environment
  • stdout_handlerOutputHandler for the stdout of the tool
  • stderr_handler – +OutputHandler* for the stderr of the tool
abspath = None

Store absolute path in bounding box feature description.

cmdline(*args, **kwargs)[source]
corners = None

Generate markers for bounding box corners.

gcps = None

Generate an additional layer for GCPs.

class gsdtoolsui.tooldescriptors.StatsDescriptor(cwd=None, env=None, stdout_handler=None, stderr_handler=None)[source]

Bases: gsdview.gdalbackend.gdalexectools.BaseGdalToolDescriptor

Descriptor for gsdstats tool.

Parameters:
  • cwd – program working directory
  • env – environment dictionary
  • envmerge – if set to True (default) it is the env dictionaty is used to update the system environment
  • stdout_handlerOutputHandler for the stdout of the tool
  • stderr_handlerOutputHandler for the stderr of the tool
approxok = None

Allow approximate statistics computation.

If set then statistics may be computed based on overviews or a subset of all tiles (default: False)

band = None

Compute statistics for a specific raster band.

Default: all bands are precessed.

cmdline(*args, **kwargs)[source]
hist[source]

Histogram request.

Histogram request objects allow to specifie parameters for historams computarion or disable histogram computation at all.

If set to a non null value the histogram computation is enabled:

desctiptot.hist = True

the above code is equivalent to:

desctiptot.hist.computehistogram = True

Use histogram request object attributes to speficy custom parameters for historam comutation:

desctiptot.hist.hmin = - 0.5
desctiptot.hist.hmax = 3000.5
desctiptot.hist.nbuckets = 101
desctiptot.hist.include_out_of_range = True

To disable histocram computation set it hist to False:

desctiptot.hist = False

Setting hist to None disable histogram computation and perform a fiull reset of the histogram requast object:

desctiptot.hist = None
minmaxonly = None

Only print minimum and maximum on the same line

nostats = None

Disable statistics computation (default: False)

outfile = None

Write results to FILE.

quiet = None

Suppress progress messages.

srcwin = None

Specify source window in image coordinates.

Default: the entire image is processed.

Get GSDView at SourceForge.net. Fast, secure and Free Open Source software downloads

Previous topic

gsdtoolsui.info

Next topic

metadata

This Page