|
boat
C++23 geospatial library
|
Classes | |
| struct | d2 |
Concepts | |
| concept | tagged |
| concept | srs_spec |
| concept | box |
| concept | dynamic |
| concept | linestring |
| concept | multi |
| concept | multi_point |
| concept | point |
| concept | polygon |
| concept | same_tag |
| concept | single |
| concept | curve |
| concept | projection_or_transformation |
| concept | ogc99 |
Typedefs | |
| using | mat_forward |
| template<class T> | |
| using | tag = boost::geometry::tag<T>::type |
| using | cartesian = d2<boost::geometry::cs::cartesian> |
| using | geographic = d2<boost::geometry::cs::geographic<boost::geometry::degree>> |
| using | matrix = boost::qvm::mat<double, 3, 3> |
| using | srs_variant = std::variant<srs::epsg, srs::proj4> |
| template<class T> | |
| using | d2_of = d2<typename boost::geometry::coordinate_system<T>::type> |
Functions | |
| template<point T> | |
| T | add_value (T geom, double value) |
| template<box T> | |
| auto | box_area_interpolate (T const &mbr, size_t num_points) |
| template<box T> | |
| multi_point auto | box_border_interpolate (T const &mbr, size_t num_points) |
| auto | buffer (double distance, size_t num_points) |
| template<box T> | |
| polygon auto | to_polygon (T const &geom) |
| geographic::point | wrap (geographic::point const &p) |
| Normalizes longitude and latitude across the antimeridian and poles. | |
| geographic::point | add_meters (geographic::point const &p, double eastward, double northward) |
| geographic::grid | geographic_interpolate (int width, int height, matrix const &mat, srs_spec auto const &crs, size_t num_points) |
| Approximates a raster footprint with points from a fixed global grid. | |
| matrix | affine (int width, int height, cartesian::segment const &mid_pixel) |
| Maps pixel coordinates to spatial coordinates. | |
| matrix | affine (int width, int height, cartesian::box const &mbr) |
| Maps pixel coordinates to spatial coordinates. | |
| auto | ortho (geographic::point const &v) |
| Orthographic SRS centered at v. | |
| srs_variant | to_srs_variant (auto const &meta) |
| Prefers a positive epsg code to proj4; throws if neither is available. | |
| auto | transformation (srs_spec auto const &a, srs_spec auto const &b) |
| Creates a transformation from source a to target b. | |
| auto | transformation (srs_spec auto const &v) |
| Creates a transformation from WGS 84 longitude/latitude to v. | |
| template<projection_or_transformation T> | |
| auto | srs_forward (T const &v) |
| template<projection_or_transformation T> | |
| auto | srs_inverse (T const &v) |
| auto | mat_inverse (matrix const &v) |
| template<tagged T1, same_tag< T1 > T2, class Strategy> | |
| bool | transform (T1 const &geom1, T2 &geom2, Strategy const &strategy) |
| auto | transform (auto const &... strategies) |
| Composes strategies and returns std::nullopt if a transformation fails. | |
Variables | |
| constexpr auto | meter |
| Approximate degrees per meter of latitude, or longitude at a given latitude. | |
| constexpr auto | minmax |
| template<class T> | |
| constexpr bool | has_tag = !std::is_same_v<tag<T>, void> |
| template<class... Ts> | |
| constexpr bool | has_tag< std::variant< Ts... > > = (has_tag<Ts> && ...) |
| template<class T> | |
| constexpr bool | is_srs_spec = std::is_constructible_v<srs::projection<>, T> |
| template<class... Ts> | |
| constexpr bool | is_srs_spec< std::variant< Ts... > > = (is_srs_spec<Ts> && ...) |
| template<class T> | |
| constexpr auto | variant_index_v = variant_index<typename d2_of<T>::variant, T>() |
| using boat::geometry::cartesian = d2<boost::geometry::cs::cartesian> |
| using boat::geometry::d2_of = d2<typename boost::geometry::coordinate_system<T>::type> |
| using boat::geometry::geographic = d2<boost::geometry::cs::geographic<boost::geometry::degree>> |
| using boat::geometry::matrix = boost::qvm::mat<double, 3, 3> |
| using boat::geometry::srs_variant = std::variant<srs::epsg, srs::proj4> |
| using boat::geometry::tag = boost::geometry::tag<T>::type |
|
inline |
| T boat::geometry::add_value | ( | T | geom, |
| double | value ) |
|
inline |
Maps pixel coordinates to spatial coordinates.
|
inline |
Maps pixel coordinates to spatial coordinates.
| auto boat::geometry::box_area_interpolate | ( | T const & | mbr, |
| size_t | num_points ) |
| multi_point auto boat::geometry::box_border_interpolate | ( | T const & | mbr, |
| size_t | num_points ) |
|
inline |
| geographic::grid boat::geometry::geographic_interpolate | ( | int | width, |
| int | height, | ||
| matrix const & | mat, | ||
| srs_spec auto const & | crs, | ||
| size_t | num_points ) |
Approximates a raster footprint with points from a fixed global grid.
|
inline |
|
inline |
Orthographic SRS centered at v.
| auto boat::geometry::srs_forward | ( | T const & | v | ) |
| auto boat::geometry::srs_inverse | ( | T const & | v | ) |
| polygon auto boat::geometry::to_polygon | ( | T const & | geom | ) |
|
inline |
Prefers a positive epsg code to proj4; throws if neither is available.
| auto boat::geometry::transform | ( | auto const &... | strategies | ) |
Composes strategies and returns std::nullopt if a transformation fails.
| bool boat::geometry::transform | ( | T1 const & | geom1, |
| T2 & | geom2, | ||
| Strategy const & | strategy ) |
| auto boat::geometry::transformation | ( | srs_spec auto const & | a, |
| srs_spec auto const & | b ) |
Creates a transformation from source a to target b.
| auto boat::geometry::transformation | ( | srs_spec auto const & | v | ) |
Creates a transformation from WGS 84 longitude/latitude to v.
|
inline |
Normalizes longitude and latitude across the antimeridian and poles.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Approximate degrees per meter of latitude, or longitude at a given latitude.
|
constexpr |
|
constexpr |