|
boat
C++23 geospatial library
|
Classes | |
| struct | kind< T > |
| struct | catalog |
| struct | command |
| struct | source |
| struct | layer |
| struct | column |
| struct | index_key |
| struct | table |
| struct | bbox |
| struct | order_key |
| struct | page |
| struct | band |
| struct | raster |
| struct | id |
| class | query |
| struct | rowset |
| struct | variant |
| struct | kind |
| struct | kind< std::string > |
| struct | kind< blob > |
Typedefs | |
| using | null = std::monostate |
| using | variant_base = std::variant<null, int64_t, double, std::string, blob> |
Functions | |
| void | read (variant const &in, geometry::ogc auto &out) |
| Reads WKB from a blob; NULL resets the geometry. | |
| void | write (variant &out, geometry::ogc auto const &in) |
| Stores WKB in a blob. | |
| template<class T> requires requires { read(in, out.emplace()); } | |
| void | read (variant const &in, std::optional< T > &out) |
| NULL becomes std::nullopt. | |
| template<class T> requires requires { write(out, *in); } | |
| void | write (variant &out, std::optional< T > const &in) |
| std::nullopt becomes NULL. | |
| template<class Clock, class Duration> | |
| void | read (variant const &in, std::chrono::time_point< Clock, Duration > &out) |
| template<class Clock, class Duration> | |
| void | write (variant &out, std::chrono::time_point< Clock, Duration > in) |
| Uses microsecond precision without a time-zone suffix. | |
| auto & | operator<< (ostream auto &out, rowset const &in) |
| auto & | operator<< (ostream auto &out, table const &in) |
| auto & | operator<< (ostream auto &out, raster const &in) |
| bool | has_coord_sys (column const &col) |
| auto | indices (table const &tbl) |
| geometry::matrix | affine (raster const &r) |
| Maps pixels to spatial coordinates. | |
| template<class T> | |
| table | to_table () |
| rowset | to_rowset (std::ranges::input_range auto &&r) |
| Uses aggregate field names as column names. | |
| template<std::convertible_to< variant_base > T> | |
| void | read (variant const &in, T &out) |
| void | write (variant &out, std::convertible_to< variant_base > auto const &in) |
| template<class T> requires requires(T val) { read(var, val); } | |
| T | get (variant const &var) |
| variant | to_variant (auto const &val) |
Variables | |
| template<class T> | |
| constexpr auto | view |
| Columns must match the field count and order; scalars need one column. | |
| using boat::db::null = std::monostate |
| using boat::db::variant_base = std::variant<null, int64_t, double, std::string, blob> |
|
inline |
Maps pixels to spatial coordinates.
| T boat::db::get | ( | variant const & | var | ) |
|
inline |
|
inline |
| auto & boat::db::operator<< | ( | ostream auto & | out, |
| raster const & | in ) |
| auto & boat::db::operator<< | ( | ostream auto & | out, |
| rowset const & | in ) |
| auto & boat::db::operator<< | ( | ostream auto & | out, |
| table const & | in ) |
| void boat::db::read | ( | variant const & | in, |
| geometry::ogc auto & | out ) |
Reads WKB from a blob; NULL resets the geometry.
| void boat::db::read | ( | variant const & | in, |
| std::chrono::time_point< Clock, Duration > & | out ) |
Parses "YYYY-MM-DD HH:MM:SS[.ffffff]" without time-zone conversion. NULL becomes the clock epoch; excess fractional digits are ignored.
| void boat::db::read | ( | variant const & | in, |
| std::optional< T > & | out ) |
NULL becomes std::nullopt.
| void boat::db::read | ( | variant const & | in, |
| T & | out ) |
NULL becomes T{}.
| std::bad_variant_access | if the stored type is incompatible. |
| rowset boat::db::to_rowset | ( | std::ranges::input_range auto && | r | ) |
Uses aggregate field names as column names.
| table boat::db::to_table | ( | ) |
| variant boat::db::to_variant | ( | auto const & | val | ) |
| void boat::db::write | ( | variant & | out, |
| geometry::ogc auto const & | in ) |
Stores WKB in a blob.
| void boat::db::write | ( | variant & | out, |
| std::chrono::time_point< Clock, Duration > | in ) |
Uses microsecond precision without a time-zone suffix.
| void boat::db::write | ( | variant & | out, |
| std::convertible_to< variant_base > auto const & | in ) |
| void boat::db::write | ( | variant & | out, |
| std::optional< T > const & | in ) |
std::nullopt becomes NULL.
|
constexpr |
Columns must match the field count and order; scalars need one column.