|
| constexpr T | at (const Location &location) const noexcept override |
| | Value for grid at given Location.
|
| |
|
template<class P > |
| constexpr T | at (const Position< P > &position) const noexcept |
| |
| | ~ConstantGrid ()=default |
| | Value for grid at given Location.
|
| |
|
| ConstantGrid (const ConstantGrid &rhs) noexcept=delete |
| |
|
| ConstantGrid (ConstantGrid &&rhs) noexcept=delete |
| |
|
ConstantGrid & | operator= (const ConstantGrid &rhs) noexcept=delete |
| |
|
ConstantGrid & | operator= (ConstantGrid &&rhs) noexcept=delete |
| |
| | ConstantGrid (const MathSize cell_size, const Idx rows, const Idx columns, const V nodata_input, const T nodata_value, const MathSize xllcorner, const MathSize yllcorner, const MathSize xurcorner, const MathSize yurcorner, string &&proj4, vector< T > &&data) |
| | Constructor.
|
| |
| | ConstantGrid (const MathSize cell_size, const Idx rows, const Idx columns, const V nodata_input, const T nodata_value, const MathSize xllcorner, const MathSize yllcorner, const string &proj4, const T &initialization_value) noexcept |
| | Constructor.
|
| |
| | GridData (const MathSize cell_size, const Idx rows, const Idx columns, const T nodata_input, const T nodata_value, const MathSize xllcorner, const MathSize yllcorner, const MathSize xurcorner, const MathSize yurcorner, string &&proj4, const vector< T > &&data) |
| | Constructor.
|
| |
| | GridData (const GridData &rhs) |
| | Copy constructor.
|
| |
| | GridData (GridData &&rhs) noexcept |
| | Move constructor.
|
| |
| GridData & | operator= (const GridData &rhs) noexcept |
| | Copy assignment.
|
| |
| GridData & | operator= (GridData &&rhs) noexcept |
| | Move assignment.
|
| |
| size_t | size () const |
| | Size of data structure storing values.
|
| |
| string | saveToFileWithoutRetry (const string &dir, const string &base_name, std::function< R(T value)> convert, const R no_data) const |
| | Save GridMap contents to file based on settings.
|
| |
| string | saveToFileWithRetry (const string &dir, const string &base_name, std::function< R(T value)> convert, const R no_data) const |
| | Save GridMap contents to file based on settings.
|
| |
| string | saveToFile (const string &dir, const string &base_name, std::function< R(T value)> convert, const R no_data) const |
| | Save GridMap contents to file based on settings.
|
| |
| string | saveToFile (const string &dir, const string &base_name, std::function< R(T value)> convert) const |
| | Save GridMap contents to file based on settings.
|
| |
| string | saveToFile (const string &dir, const string &base_name) const |
| | Save GridMap contents to file based on settings.
|
| |
| constexpr Idx | rows () const noexcept |
| | Number of rows in the GridBase.
|
| |
| constexpr Idx | columns () const noexcept |
| | Number of columns in the GridBase.
|
| |
| constexpr T | nodataInput () const noexcept |
| | Value used for grid locations that have no data.
|
| |
| constexpr T | nodataValue () const noexcept |
| | Value representing no data.
|
| |
|
T | at (const Position< P > &position) const |
| |
| virtual void | set (const Location &location, T value)=0 |
| | Set value for grid at given Location.
|
| |
|
void | set (const Position< P > &position, const T value) |
| |
| | GridBase (GridBase &&rhs) noexcept=default |
| | Move constructor.
|
| |
| | GridBase (const GridBase &rhs)=default |
| | Copy constructor.
|
| |
| GridBase & | operator= (const GridBase &rhs)=default |
| | Copy assignment.
|
| |
| GridBase & | operator= (GridBase &&rhs) noexcept=default |
| | Move assignment.
|
| |
| constexpr MathSize | cellSize () const noexcept |
| | Cell size used for GridBase.
|
| |
| constexpr FullIdx | calculateRows () const noexcept |
| | Number of rows in the GridBase.
|
| |
| constexpr FullIdx | calculateColumns () const noexcept |
| | Number of columns in the GridBase.
|
| |
| constexpr MathSize | xllcorner () const noexcept |
| | Lower left corner X coordinate in meters.
|
| |
| constexpr MathSize | yllcorner () const noexcept |
| | Lower left corner Y coordinate in meters.
|
| |
| constexpr MathSize | xurcorner () const noexcept |
| | Upper right corner X coordinate in meters.
|
| |
| constexpr MathSize | yurcorner () const noexcept |
| | Upper right corner Y coordinate in meters.
|
| |
| constexpr const string & | proj4 () const noexcept |
| | Proj4 string defining coordinate system for this grid. Must be a UTM projection.
|
| |
| | GridBase (MathSize cell_size, MathSize xllcorner, MathSize yllcorner, MathSize xurcorner, MathSize yurcorner, string &&proj4) noexcept |
| | Constructor.
|
| |
|
| GridBase () noexcept |
| | Default constructor.
|
| |
| void | createPrj (const string &dir, const string &base_name) const |
| | Create .prj file in directory with base name for file.
|
| |
| unique_ptr< Coordinates > | findCoordinates (const topo::Point &point, bool flipped) const |
| | Find Coordinates for Point.
|
| |
| unique_ptr< FullCoordinates > | findFullCoordinates (const topo::Point &point, bool flipped) const |
| | Find FullCoordinates for Point.
|
| |
|
| tuple< Idx, Idx, Idx, Idx > | dataBounds () const override |
| |
| string | saveToAsciiFile (const string &dir, const string &base_name, std::function< R(T value)> convert, const R no_data) const |
| | Save GridMap contents to .asc file.
|
| |
| string | saveToTiffFile (const string &dir, const string &base_name, std::function< R(T value)> convert, const R no_data) const |
| | Save GridMap contents to .tif file.
|
| |
| | Grid (const MathSize cell_size, const Idx rows, const Idx columns, const T nodata_input, const T nodata_value, const MathSize xllcorner, const MathSize yllcorner, const MathSize xurcorner, const MathSize yurcorner, string &&proj4) noexcept |
| | Constructor.
|
| |
| | Grid (const GridBase &grid_info, T no_data) noexcept |
| | Construct based on GridBase and no data value.
|
| |
template<class T, class V = T>
class fs::data::ConstantGrid< T, V >
A GridData<T, V, const vector<T>> that cannot change once initialized.
- Template Parameters
-
| T | The initialization value type. |
| V | The initialized value type. |