![]() |
TerraLib 4.1
|
Provides a Nearest Neighbour interpolation method for coverages. More...
#include <TeCoverageInterpolatorNN.h>
Public Member Functions | |
| virtual void | setDecoder (TeCoverageDecoder< T > *decoder) |
| Set the decoder. | |
| virtual void | evaluate (const TeCoord2D &position, std::vector< double > &value) |
| Retrieve the coverage value at an arbitrary location. | |
| virtual void | evaluate (TeRaster &raster, const int rasterBand, const int coverageDimension, const TeBox &box=TeBox()) |
| Fill a region of a raster with interpolated coverage data. | |
Protected Member Functions | |
| virtual TeGeomValuePair< T > | nearestNeighbour (const TeCoord2D &position, double radius=0) |
| Find nearest generic geometry-value pair. | |
| double | distanceToGeom (const TeCoord2D &position, TePoint point) |
| Evaluate distance from a position to a point. | |
| double | distanceToGeom (const TeCoord2D &position, TeLine2D line) |
| Evaluate distance from a position to a line. | |
| double | distanceToGeom (const TeCoord2D &position, TePolygon poly) |
| Evaluate distance from a position to a polygon. | |
Protected Attributes | |
| double | initialNeighbourhoodRadius_ |
| The initial radius used for interpolation. | |
Provides a Nearest Neighbour interpolation method for coverages.
| double TeCoverageInterpolatorNN< T >::distanceToGeom | ( | const TeCoord2D & | position, |
| TePoint | point | ||
| ) | [inline, protected] |
Evaluate distance from a position to a point.
| double TeCoverageInterpolatorNN< T >::distanceToGeom | ( | const TeCoord2D & | position, |
| TePolygon | poly | ||
| ) | [inline, protected] |
Evaluate distance from a position to a polygon.
| double TeCoverageInterpolatorNN< T >::distanceToGeom | ( | const TeCoord2D & | position, |
| TeLine2D | line | ||
| ) | [inline, protected] |
Evaluate distance from a position to a line.
| virtual void TeCoverageInterpolatorNN< T >::evaluate | ( | const TeCoord2D & | position, |
| std::vector< double > & | value | ||
| ) | [inline, virtual] |
Retrieve the coverage value at an arbitrary location.
| position | the arbitrary location to be evaluated |
| the | value vector, to be filled by this method |
Implements TeCoverageInterpolator< T >.
| virtual void TeCoverageInterpolatorNN< T >::evaluate | ( | TeRaster & | raster, |
| const int | rasterBand, | ||
| const int | coverageDimension, | ||
| const TeBox & | box = TeBox() |
||
| ) | [inline, virtual] |
Fill a region of a raster with interpolated coverage data.
| raster | the raster to be filled with coverage data |
| rasterBand | the raster band to be filled |
| coverageDimension | the coverage dimension to be evaluated |
| box | defines the raster region to be filled |
Implements TeCoverageInterpolator< T >.
| virtual TeGeomValuePair<T> TeCoverageInterpolatorNN< T >::nearestNeighbour | ( | const TeCoord2D & | position, |
| double | radius = 0 |
||
| ) | [inline, protected, virtual] |
Find nearest generic geometry-value pair.
| position | an arbitrary location |
| radius | the size of the neighbourhood to be checked initially. |
| virtual void TeCoverageInterpolatorNN< T >::setDecoder | ( | TeCoverageDecoder< T > * | decoder | ) | [inline, virtual] |
Set the decoder.
| decoder | the coverage decoder |
Reimplemented from TeCoverageInterpolator< T >.
double TeCoverageInterpolatorNN< T >::initialNeighbourhoodRadius_ [protected] |
The initial radius used for interpolation.