Utility library to use GDAL virtual format in GSDView
Functions
| Element(tag, **extra[, attrib]) | |
| SubElement(parent, tag, **extra[, attrib]) | |
| changeVrtBandDataType(tree, derived_datatype) | Change data type of #rbInd VrtRasterBand (0 for all) |
| del_band_statistics(band) | |
| del_dataset_statistics(dataset) | |
| dummy_window_type() | |
| firwin(N, cutoff[, width, window]) | FIR Filter Design using windowed ideal filter method. |
| fixDerivedRasterband(tree, pixfunc[, rbInd, ...]) | It puts in the correct format the derived rasterband in the xml structure. |
| fromstring(text) | |
| xml_to_string(element[, encoding]) |
Classes
| Kernel([size, norm_cutoff, width, ...]) | Kernel for filtering defined with its matrix of coefficients. |
| Point([xpoint, ypoint]) | Bidimensional point |
| Rect([point, size]) | Rectangle defined by its upper-left point and size |
| Size([xsize, ysize]) | Bidimensional size |
| VrtAveragedSource([src_filename, ...]) | The AveragedSource is derived from the SimpleSource and shares |
| VrtComplexSource([src_filename, ...]) | The ComplexSource is derived from the SimpleSource, but |
| VrtKernelFilteredSource([src_filename, ...]) | This is a pixel source derived from the Simple Source, but it also |
| VrtSimpleSource([src_filename, ...]) | The SimpleSource indicates that raster data should be read from |
Kernel for filtering defined with its matrix of coefficients.
It evaluates the coefficients of the required FIR filter
| Attributes : |
|---|
It returns the coefficients matrix with size x size dimensions
Bidimensional point
| Attributes : |
|---|
Rectangle defined by its upper-left point and size
| Attributes : |
|---|
Bidimensional size
| Attributes : |
|---|
The ComplexSource is derived from the SimpleSource, but it provides support to rescale and offset the range of the source values.
When transforming the source values the operations are executed in the following order:
Example:
<ComplexSource>
<SourceFilename relativeToVRT="1">utm.tif</SourceFilename>
<SourceBand>1</SourceBand>
<ScaleOffset>0</ScaleOffset>
<ScaleRatio>1</ScaleRatio>
<ColorTableComponent>1</ColorTableComponent>
<LUT>0:0,2345.12:64,56789.5:128,2364753.02:255</LUT>
<NODATA>0</NODATA>
<SrcRect xOff="0" yOff="0" xSize="512" ySize="512"/>
<DstRect xOff="0" yOff="0" xSize="512" ySize="512"/>
</ComplexSource>
This is a pixel source derived from the Simple Source, but it also passes the data through a simple filtering kernel.
The size must always be an odd number, and the Coefs must have Size * Size entries separated by spaces.
Example:
<KernelFilteredSource>
<SourceFilename>utm.tif</SourceFilename>
<SourceBand>1</SourceBand>
<Kernel normalized="1">
<Size>3</Size>
<Coefs>0.11111111 0.11111111 0.11111111
0.11111111 0.11111111 0.11111111
0.11111111 0.11111111 0.11111111</Coefs>
</Kernel>
</KernelFilteredSource>
The SimpleSource indicates that raster data should be read from a separate dataset, indicating the dataset, and band to be read from, and how the data should map into this bands raster space.
Example:
<SimpleSource>
<SourceFilename relativeToVRT="1">utm.tif</SourceFilename>
<SourceBand>1</SourceBand>
<SourceProperties RasterXSize="512" RasterYSize="512"
DataType="Byte"
BlockXSize="128" BlockYSize="128"/>
<SrcRect xOff="0" yOff="0" xSize="512" ySize="512"/>
<DstRect xOff="0" yOff="0" xSize="512" ySize="512"/>
</SimpleSource>
It puts in the correct format the derived rasterband in the xml structure.
| Attributes : |
|---|