diff options
| author | Rutger Broekhoff | 2026-11-30 11:47:36 +0100 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-11-30 11:47:36 +0100 |
| commit | 02475e05ccd1aa15c6a6163834f28bfebbef796f (patch) | |
| tree | 6bc6f453f07dc76f763310e1e5eade9a3e1115b7 /server/src/geo | |
| parent | 5732f6c14618f50ffaf315b93795340219a67c66 (diff) | |
| download | routemon-02475e05ccd1aa15c6a6163834f28bfebbef796f.tar.gz routemon-02475e05ccd1aa15c6a6163834f28bfebbef796f.zip | |
RWGPS webhook and such
Diffstat (limited to 'server/src/geo')
| -rw-r--r-- | server/src/geo/utm_multizonal.cppm | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/server/src/geo/utm_multizonal.cppm b/server/src/geo/utm_multizonal.cppm index 540e309..56c6481 100644 --- a/server/src/geo/utm_multizonal.cppm +++ b/server/src/geo/utm_multizonal.cppm | |||
| @@ -61,7 +61,7 @@ class from_wgs84_transforms : public multi_zone<from_wgs84_transform> | |||
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | public: | 63 | public: |
| 64 | static from_wgs84_transforms const& instance() | 64 | static auto instance() -> from_wgs84_transforms const& |
| 65 | { | 65 | { |
| 66 | static from_wgs84_transforms inst; | 66 | static from_wgs84_transforms inst; |
| 67 | return inst; | 67 | return inst; |
| @@ -214,8 +214,7 @@ private: | |||
| 214 | local_rtrees_; | 214 | local_rtrees_; |
| 215 | 215 | ||
| 216 | public: | 216 | public: |
| 217 | template <std::convertible_to<T> U> | 217 | auto insert(utm::zonable_wgs84_linestring const& ls, T arg) -> void |
| 218 | auto insert(utm::zonable_wgs84_linestring const& ls, U&& arg) -> void | ||
| 219 | { | 218 | { |
| 220 | auto zone_segments = distribute_linestring_over_zones(ls); | 219 | auto zone_segments = distribute_linestring_over_zones(ls); |
| 221 | for (auto z = utm::zone::min(); z != utm::zone::max(); z = z.next()) | 220 | for (auto z = utm::zone::min(); z != utm::zone::max(); z = z.next()) |
| @@ -225,8 +224,7 @@ public: | |||
| 225 | auto blse = bgeo::return_buffer<utm::zone_local::prim::box>( | 224 | auto blse = bgeo::return_buffer<utm::zone_local::prim::box>( |
| 226 | bgeo::return_envelope<utm::zone_local::prim::box>(ls), | 225 | bgeo::return_envelope<utm::zone_local::prim::box>(ls), |
| 227 | 30.0 /* m */); | 226 | 30.0 /* m */); |
| 228 | local_rtrees_[z].insert( | 227 | local_rtrees_[z].insert(index_value{blse, std::move(ls), arg}); |
| 229 | index_value{blse, std::move(ls), std::forward<U>(arg)}); | ||
| 230 | } | 228 | } |
| 231 | } | 229 | } |
| 232 | } | 230 | } |
| @@ -279,8 +277,7 @@ private: | |||
| 279 | local_rtrees_; | 277 | local_rtrees_; |
| 280 | 278 | ||
| 281 | public: | 279 | public: |
| 282 | template <std::convertible_to<T> U> | 280 | auto insert(utm::zonable_wgs84_point const& p, T arg) -> void |
| 283 | auto insert(utm::zonable_wgs84_point const& p, U&& arg) -> void | ||
| 284 | { | 281 | { |
| 285 | auto to_utm = from_wgs84_transforms::instance(); | 282 | auto to_utm = from_wgs84_transforms::instance(); |
| 286 | 283 | ||