Module: GdalServiceLib

Library for GDAL related operations

Source:

Methods

(method) CalculateAveragePixelValue(ds:, polygonGeometry:)

Calculate the average pixel value of a raster dataset within a polygon geometry

Parameters:
Name Type Description
ds:

The raster dataset

polygonGeometry:

The polygon geometry

Source:

(method) CalculateMedian(xArr:, yArr:, totalCount:)

Calculate the median value of a an array of values

Parameters:
Name Type Description
xArr:

The array of values

yArr:

The array of frequencies

totalCount:

The total count

Source:

(method) CreateStatistics(ga:, ra:, noDataValue:, hasNoDataValue:, formulaIndex:, scaleFactor:)

Create statistics for a raster dataset

Parameters:
Name Type Description
ga:

The geometry array

ra:

The raster array

noDataValue:

The no data value

hasNoDataValue:

The flag indicating if the no data value is present

formulaIndex:

The formula index

scaleFactor:

The scale factor

Source:

(method) FindNthValue(xArr:, yArr:, n:)

Find the Nth value in an array

Parameters:
Name Type Description
xArr:

The array of values

yArr:

The array of frequencies

n:

The index

Source:

(method) GdalInit()

Initialize GDAL

Source:

(method) exp1(x:)

Implementation of the exp1 transformation algorithm

Parameters:
Name Type Description
x:

The input value

Source:

(method) findFormulaIndex(formula:)

Find the index of a formula in the list of supported formulas

Parameters:
Name Type Description
formula:

The formula

Source:

(method) findScaleFactorAndFormulaIndex(formula:, scaleFactor:, formulaIndex:)

Find the scale factor and formula index for a given formula

Parameters:
Name Type Description
formula:

The formula

scaleFactor:

The scale factor

formulaIndex:

The formula index

Source: