The base class with information for a grid of data with geographic coordinates.
More...
|
|
| GridBase (GridBase &&rhs) noexcept=default |
| |
|
| GridBase (const GridBase &rhs)=default |
| |
|
GridBase & | operator= (const GridBase &rhs)=default |
| |
|
GridBase & | operator= (GridBase &&rhs) noexcept=default |
| |
| constexpr MathSize | cellSize () const noexcept |
| | Cell size used for GridBase.
|
| |
|
constexpr FullIdx | calculateHeight () const noexcept |
| |
|
constexpr FullIdx | calculateWidth () const noexcept |
| |
| constexpr MathSize | xllcorner () const noexcept |
| | Lower left corner X coordinate in metres.
|
| |
| constexpr MathSize | yllcorner () const noexcept |
| | Lower left corner Y coordinate in metres.
|
| |
| constexpr MathSize | xurcorner () const noexcept |
| | Upper right corner X coordinate in metres.
|
| |
| constexpr MathSize | yurcorner () const noexcept |
| | Upper right corner Y coordinate in metres.
|
| |
| 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, const string_view proj4) noexcept |
| | Constructor.
|
| |
| void | createPrj (const string_view dir, const string_view base_name) const |
| | Create .prj file in directory with base name for file.
|
| |
| std::optional< Coordinates > | findCoordinates (const Point &point, bool flipped) const |
| | Find Coordinates for Point.
|
| |
| std::optional< FullCoordinates > | findFullCoordinates (const Point &point, bool flipped) const |
| | Find FullCoordinates for Point.
|
| |
|
bool | validate (const Point &point) const |
| |
|
string | saveToTiffFileInt (const Idx width, const Idx height, const tuple< Idx, Idx, Idx, Idx > bounds, const string_view dir, const string_view base_name, const uint16_t bits_per_sample, const bool is_unsigned, std::function< int(const XYIdx &)> value_at, const int nodata_as_int) const |
| |
|
string | saveToTiffFileFloat (const Idx width, const Idx height, const tuple< Idx, Idx, Idx, Idx > bounds, const string_view dir, const string_view base_name, std::function< double(const XYIdx &)> value_at, const int nodata_as_int) const |
| |
The base class with information for a grid of data with geographic coordinates.