summaryrefslogtreecommitdiffstats
path: root/server/src/geo/utm_multizonal.cppm
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/geo/utm_multizonal.cppm')
-rw-r--r--server/src/geo/utm_multizonal.cppm11
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
63public: 63public:
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
216public: 216public:
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
281public: 279public:
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