#include <dtmsampler.h>
◆ DTMSampler() [1/2]
| mesh::DTMSampler::DTMSampler |
( |
| ) |
|
◆ ~DTMSampler()
| mesh::DTMSampler::~DTMSampler |
( |
| ) |
|
◆ DTMSampler() [2/2]
| mesh::DTMSampler::DTMSampler |
( |
const DTMSampler & |
| ) |
|
|
delete |
◆ close()
| void mesh::DTMSampler::close |
( |
| ) |
|
◆ crsWkt()
| QString mesh::DTMSampler::crsWkt |
( |
| ) |
const |
Native CRS WKT of the raster (empty if the file had none).
◆ errorMsg()
| QString mesh::DTMSampler::errorMsg |
( |
| ) |
const |
|
inline |
◆ isOpen()
| bool mesh::DTMSampler::isOpen |
( |
| ) |
const |
|
noexcept |
◆ open()
| bool mesh::DTMSampler::open |
( |
const QString & |
path, |
|
|
int |
band = 1 |
|
) |
| |
Open a raster by path. Returns false on failure (set errorMsg).
- Parameters
-
| path | GDAL-readable path (GeoTIFF, ASC, NetCDF, etc.). |
| band | 1-based band index (most DTMs are single-band; default 1). |
◆ operator=()
◆ pixelSize()
| double mesh::DTMSampler::pixelSize |
( |
| ) |
const |
Mean absolute pixel size in raster-CRS units (0 when closed). Callers resampling along a path use this to pick a step that follows the DEM without oversampling it.
◆ sample()
Sample one coordinate (in raster CRS). Returns NaN on out-of-bounds or NoData.
◆ sampleBulk()
| QVector< double > mesh::DTMSampler::sampleBulk |
( |
const QVector< QPointF > & |
pts | ) |
const |
Sample many points; result.size() == pts.size().
The documentation for this class was generated from the following files:
- /home/runner/work/openswmm.gui/openswmm.gui/include/mesh/dtmsampler.h
- /home/runner/work/openswmm.gui/openswmm.gui/src/mesh/dtmsampler.cpp