diff options
Diffstat (limited to 'server/src/datex2.cppm')
| -rw-r--r-- | server/src/datex2.cppm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/src/datex2.cppm b/server/src/datex2.cppm index 9c75013..ae66631 100644 --- a/server/src/datex2.cppm +++ b/server/src/datex2.cppm | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | module; | 1 | module; |
| 2 | 2 | ||
| 3 | #include <boost/geometry/algorithms/is_empty.hpp> | ||
| 4 | #include <boost/geometry/srs/epsg.hpp> | 3 | #include <boost/geometry/srs/epsg.hpp> |
| 5 | #include <boost/geometry/srs/transformation.hpp> | 4 | #include <boost/geometry/srs/transformation.hpp> |
| 6 | 5 | ||
| @@ -9,7 +8,7 @@ module; | |||
| 9 | export module routemon:datex2; | 8 | export module routemon:datex2; |
| 10 | 9 | ||
| 11 | import std; | 10 | import std; |
| 12 | import :geo; | 11 | import :geo.utm; |
| 13 | import :time; | 12 | import :time; |
| 14 | import :util; | 13 | import :util; |
| 15 | 14 | ||
| @@ -23,14 +22,15 @@ export struct road_closure | |||
| 23 | { | 22 | { |
| 24 | std::weak_ptr<situation> parent; | 23 | std::weak_ptr<situation> parent; |
| 25 | std::optional<time::period_seq> validity; | 24 | std::optional<time::period_seq> validity; |
| 26 | std::vector<geo::point> relevant_points = {}; | 25 | std::vector<geo::utm::zonable_wgs84_point> relevant_points = {}; |
| 27 | std::vector<std::shared_ptr<geo::linestring>> relevant_line_strings = {}; | 26 | std::vector<std::shared_ptr<geo::utm::zonable_wgs84_linestring>> |
| 27 | relevant_line_strings = {}; | ||
| 28 | }; | 28 | }; |
| 29 | 29 | ||
| 30 | export struct situation | 30 | export struct situation |
| 31 | { | 31 | { |
| 32 | std::string id; | 32 | std::string id; |
| 33 | std::optional<geo::point> location = | 33 | std::optional<geo::utm::zonable_wgs84_point> location = |
| 34 | std::nullopt; // as shown on the map, not used for querying | 34 | std::nullopt; // as shown on the map, not used for querying |
| 35 | std::vector<std::string> comments = {}; | 35 | std::vector<std::string> comments = {}; |
| 36 | std::vector<std::shared_ptr<road_closure>> road_closures = {}; | 36 | std::vector<std::shared_ptr<road_closure>> road_closures = {}; |
| @@ -47,7 +47,7 @@ export class loader | |||
| 47 | // ETRS 89 (EPSG:4258) -> WGS 84 (EPSG:4326) | 47 | // ETRS 89 (EPSG:4258) -> WGS 84 (EPSG:4326) |
| 48 | bgeo::srs:: | 48 | bgeo::srs:: |
| 49 | transformation<bgeo::srs::static_epsg<4258>, bgeo::srs::static_epsg<4326>> | 49 | transformation<bgeo::srs::static_epsg<4258>, bgeo::srs::static_epsg<4326>> |
| 50 | etrs89_to_wgs84_{}; | 50 | etrs89_to_wgs84_ = {}; |
| 51 | 51 | ||
| 52 | std::multiset<std::string> warnings_; | 52 | std::multiset<std::string> warnings_; |
| 53 | 53 | ||