transformation.hpp 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2017-2020, Oracle and/or its affiliates.
  3. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  4. // Use, modification and distribution is subject to the Boost Software License,
  5. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #ifndef BOOST_GEOMETRY_SRS_TRANSFORMATION_HPP
  8. #define BOOST_GEOMETRY_SRS_TRANSFORMATION_HPP
  9. #include <string>
  10. #include <type_traits>
  11. #include <boost/range/size.hpp>
  12. #include <boost/throw_exception.hpp>
  13. #include <boost/geometry/algorithms/convert.hpp>
  14. #include <boost/geometry/core/coordinate_dimension.hpp>
  15. #include <boost/geometry/core/static_assert.hpp>
  16. #include <boost/geometry/geometries/point.hpp>
  17. #include <boost/geometry/geometries/multi_point.hpp>
  18. #include <boost/geometry/geometries/linestring.hpp>
  19. #include <boost/geometry/geometries/ring.hpp>
  20. #include <boost/geometry/geometries/segment.hpp>
  21. #include <boost/geometry/srs/projection.hpp>
  22. #include <boost/geometry/srs/projections/grids.hpp>
  23. #include <boost/geometry/srs/projections/impl/pj_transform.hpp>
  24. #include <boost/geometry/views/detail/indexed_point_view.hpp>
  25. namespace boost { namespace geometry
  26. {
  27. namespace projections { namespace detail
  28. {
  29. template <typename T1, typename T2>
  30. inline bool same_object(T1 const& , T2 const& )
  31. {
  32. return false;
  33. }
  34. template <typename T>
  35. inline bool same_object(T const& o1, T const& o2)
  36. {
  37. return boost::addressof(o1) == boost::addressof(o2);
  38. }
  39. template
  40. <
  41. typename PtIn,
  42. typename PtOut,
  43. bool SameUnits = std::is_same
  44. <
  45. typename geometry::detail::cs_angular_units<PtIn>::type,
  46. typename geometry::detail::cs_angular_units<PtOut>::type
  47. >::value
  48. >
  49. struct transform_geometry_point_coordinates
  50. {
  51. static inline void apply(PtIn const& in, PtOut & out, bool /*enable_angles*/)
  52. {
  53. geometry::set<0>(out, geometry::get<0>(in));
  54. geometry::set<1>(out, geometry::get<1>(in));
  55. }
  56. };
  57. template <typename PtIn, typename PtOut>
  58. struct transform_geometry_point_coordinates<PtIn, PtOut, false>
  59. {
  60. static inline void apply(PtIn const& in, PtOut & out, bool enable_angles)
  61. {
  62. if (enable_angles)
  63. {
  64. geometry::set_from_radian<0>(out, geometry::get_as_radian<0>(in));
  65. geometry::set_from_radian<1>(out, geometry::get_as_radian<1>(in));
  66. }
  67. else
  68. {
  69. geometry::set<0>(out, geometry::get<0>(in));
  70. geometry::set<1>(out, geometry::get<1>(in));
  71. }
  72. }
  73. };
  74. template <typename Geometry, typename CT>
  75. struct transform_geometry_point
  76. {
  77. using point_type = geometry::point_type_t<Geometry>;
  78. using type = geometry::model::point
  79. <
  80. typename select_most_precise
  81. <
  82. geometry::coordinate_type_t<point_type>,
  83. CT
  84. >::type,
  85. geometry::dimension<point_type>::type::value,
  86. geometry::coordinate_system_t<point_type>
  87. >;
  88. template <typename PtIn, typename PtOut>
  89. static inline void apply(PtIn const& in, PtOut & out, bool enable_angles)
  90. {
  91. transform_geometry_point_coordinates<PtIn, PtOut>::apply(in, out, enable_angles);
  92. projections::detail::copy_higher_dimensions<2>(in, out);
  93. }
  94. };
  95. template <typename Geometry, typename CT>
  96. struct transform_geometry_range_base
  97. {
  98. struct convert_strategy
  99. {
  100. convert_strategy(bool enable_angles)
  101. : m_enable_angles(enable_angles)
  102. {}
  103. template <typename PtIn, typename PtOut>
  104. void apply(PtIn const& in, PtOut & out)
  105. {
  106. transform_geometry_point<Geometry, CT>::apply(in, out, m_enable_angles);
  107. }
  108. bool m_enable_angles;
  109. };
  110. template <typename In, typename Out>
  111. static inline void apply(In const& in, Out & out, bool enable_angles)
  112. {
  113. // Change the order and/or closure if needed
  114. // In - arbitrary geometry
  115. // Out - either Geometry or std::vector
  116. // So the order and closure of In and Geometry shoudl be compared
  117. // std::vector's order is assumed to be the same as of Geometry
  118. geometry::detail::conversion::range_to_range::apply(in, out,
  119. convert_strategy(enable_angles));
  120. }
  121. };
  122. template
  123. <
  124. typename Geometry,
  125. typename CT,
  126. typename Tag = geometry::tag_t<Geometry>
  127. >
  128. struct transform_geometry
  129. {};
  130. template <typename Point, typename CT>
  131. struct transform_geometry<Point, CT, point_tag>
  132. : transform_geometry_point<Point, CT>
  133. {};
  134. template <typename Segment, typename CT>
  135. struct transform_geometry<Segment, CT, segment_tag>
  136. {
  137. typedef geometry::model::segment
  138. <
  139. typename transform_geometry_point<Segment, CT>::type
  140. > type;
  141. template <typename In, typename Out>
  142. static inline void apply(In const& in, Out & out, bool enable_angles)
  143. {
  144. apply<0>(in, out, enable_angles);
  145. apply<1>(in, out, enable_angles);
  146. }
  147. private:
  148. template <std::size_t Index, typename In, typename Out>
  149. static inline void apply(In const& in, Out & out, bool enable_angles)
  150. {
  151. geometry::detail::indexed_point_view<In const, Index> in_pt(in);
  152. geometry::detail::indexed_point_view<Out, Index> out_pt(out);
  153. transform_geometry_point<Segment, CT>::apply(in_pt, out_pt, enable_angles);
  154. }
  155. };
  156. template <typename MultiPoint, typename CT>
  157. struct transform_geometry<MultiPoint, CT, multi_point_tag>
  158. : transform_geometry_range_base<MultiPoint, CT>
  159. {
  160. typedef model::multi_point
  161. <
  162. typename transform_geometry_point<MultiPoint, CT>::type
  163. > type;
  164. };
  165. template <typename LineString, typename CT>
  166. struct transform_geometry<LineString, CT, linestring_tag>
  167. : transform_geometry_range_base<LineString, CT>
  168. {
  169. typedef model::linestring
  170. <
  171. typename transform_geometry_point<LineString, CT>::type
  172. > type;
  173. };
  174. template <typename Ring, typename CT>
  175. struct transform_geometry<Ring, CT, ring_tag>
  176. : transform_geometry_range_base<Ring, CT>
  177. {
  178. typedef model::ring
  179. <
  180. typename transform_geometry_point<Ring, CT>::type,
  181. geometry::point_order<Ring>::value == clockwise,
  182. geometry::closure<Ring>::value == closed
  183. > type;
  184. };
  185. template
  186. <
  187. typename OutGeometry,
  188. typename CT,
  189. bool EnableTemporary = ! std::is_same
  190. <
  191. typename select_most_precise
  192. <
  193. geometry::coordinate_type_t<OutGeometry>,
  194. CT
  195. >::type,
  196. geometry::coordinate_type_t<OutGeometry>
  197. >::value
  198. >
  199. struct transform_geometry_wrapper
  200. {
  201. typedef transform_geometry<OutGeometry, CT> transform;
  202. typedef typename transform::type type;
  203. template <typename InGeometry>
  204. transform_geometry_wrapper(InGeometry const& in, OutGeometry & out, bool input_angles)
  205. : m_out(out)
  206. {
  207. transform::apply(in, m_temp, input_angles);
  208. }
  209. type & get() { return m_temp; }
  210. void finish() { geometry::convert(m_temp, m_out); } // this is always copy 1:1 without changing the order or closure
  211. private:
  212. type m_temp;
  213. OutGeometry & m_out;
  214. };
  215. template
  216. <
  217. typename OutGeometry,
  218. typename CT
  219. >
  220. struct transform_geometry_wrapper<OutGeometry, CT, false>
  221. {
  222. typedef transform_geometry<OutGeometry, CT> transform;
  223. typedef OutGeometry type;
  224. transform_geometry_wrapper(OutGeometry const& in, OutGeometry & out, bool input_angles)
  225. : m_out(out)
  226. {
  227. if (! same_object(in, out))
  228. transform::apply(in, out, input_angles);
  229. }
  230. template <typename InGeometry>
  231. transform_geometry_wrapper(InGeometry const& in, OutGeometry & out, bool input_angles)
  232. : m_out(out)
  233. {
  234. transform::apply(in, out, input_angles);
  235. }
  236. OutGeometry & get() { return m_out; }
  237. void finish() {}
  238. private:
  239. OutGeometry & m_out;
  240. };
  241. template <typename CT>
  242. struct transform_range
  243. {
  244. template
  245. <
  246. typename Proj1, typename Par1,
  247. typename Proj2, typename Par2,
  248. typename RangeIn, typename RangeOut,
  249. typename Grids
  250. >
  251. static inline bool apply(Proj1 const& proj1, Par1 const& par1,
  252. Proj2 const& proj2, Par2 const& par2,
  253. RangeIn const& in, RangeOut & out,
  254. Grids const& grids1, Grids const& grids2)
  255. {
  256. // NOTE: this has to be consistent with pj_transform()
  257. bool const input_angles = !par1.is_geocent && par1.is_latlong;
  258. transform_geometry_wrapper<RangeOut, CT> wrapper(in, out, input_angles);
  259. bool res = true;
  260. try
  261. {
  262. res = pj_transform(proj1, par1, proj2, par2, wrapper.get(), grids1, grids2);
  263. }
  264. catch (projection_exception const&)
  265. {
  266. res = false;
  267. }
  268. catch(...)
  269. {
  270. BOOST_RETHROW
  271. }
  272. wrapper.finish();
  273. return res;
  274. }
  275. };
  276. template <typename Policy>
  277. struct transform_multi
  278. {
  279. template
  280. <
  281. typename Proj1, typename Par1,
  282. typename Proj2, typename Par2,
  283. typename MultiIn, typename MultiOut,
  284. typename Grids
  285. >
  286. static inline bool apply(Proj1 const& proj1, Par1 const& par1,
  287. Proj2 const& proj2, Par2 const& par2,
  288. MultiIn const& in, MultiOut & out,
  289. Grids const& grids1, Grids const& grids2)
  290. {
  291. if (! same_object(in, out))
  292. range::resize(out, boost::size(in));
  293. return apply(proj1, par1, proj2, par2,
  294. boost::begin(in), boost::end(in),
  295. boost::begin(out),
  296. grids1, grids2);
  297. }
  298. private:
  299. template
  300. <
  301. typename Proj1, typename Par1,
  302. typename Proj2, typename Par2,
  303. typename InIt, typename OutIt,
  304. typename Grids
  305. >
  306. static inline bool apply(Proj1 const& proj1, Par1 const& par1,
  307. Proj2 const& proj2, Par2 const& par2,
  308. InIt in_first, InIt in_last, OutIt out_first,
  309. Grids const& grids1, Grids const& grids2)
  310. {
  311. bool res = true;
  312. for ( ; in_first != in_last ; ++in_first, ++out_first )
  313. {
  314. if ( ! Policy::apply(proj1, par1, proj2, par2, *in_first, *out_first, grids1, grids2) )
  315. {
  316. res = false;
  317. }
  318. }
  319. return res;
  320. }
  321. };
  322. template
  323. <
  324. typename Geometry,
  325. typename CT,
  326. typename Tag = geometry::tag_t<Geometry>
  327. >
  328. struct transform
  329. : not_implemented<Tag>
  330. {};
  331. template <typename Point, typename CT>
  332. struct transform<Point, CT, point_tag>
  333. {
  334. template
  335. <
  336. typename Proj1, typename Par1,
  337. typename Proj2, typename Par2,
  338. typename PointIn, typename PointOut,
  339. typename Grids
  340. >
  341. static inline bool apply(Proj1 const& proj1, Par1 const& par1,
  342. Proj2 const& proj2, Par2 const& par2,
  343. PointIn const& in, PointOut & out,
  344. Grids const& grids1, Grids const& grids2)
  345. {
  346. // NOTE: this has to be consistent with pj_transform()
  347. bool const input_angles = !par1.is_geocent && par1.is_latlong;
  348. transform_geometry_wrapper<PointOut, CT> wrapper(in, out, input_angles);
  349. typedef typename transform_geometry_wrapper<PointOut, CT>::type point_type;
  350. point_type * ptr = boost::addressof(wrapper.get());
  351. std::pair<point_type *, point_type *> range = std::make_pair(ptr, ptr + 1);
  352. bool res = true;
  353. try
  354. {
  355. res = pj_transform(proj1, par1, proj2, par2, range, grids1, grids2);
  356. }
  357. catch (projection_exception const&)
  358. {
  359. res = false;
  360. }
  361. catch(...)
  362. {
  363. BOOST_RETHROW
  364. }
  365. wrapper.finish();
  366. return res;
  367. }
  368. };
  369. template <typename MultiPoint, typename CT>
  370. struct transform<MultiPoint, CT, multi_point_tag>
  371. : transform_range<CT>
  372. {};
  373. template <typename Segment, typename CT>
  374. struct transform<Segment, CT, segment_tag>
  375. {
  376. template
  377. <
  378. typename Proj1, typename Par1,
  379. typename Proj2, typename Par2,
  380. typename SegmentIn, typename SegmentOut,
  381. typename Grids
  382. >
  383. static inline bool apply(Proj1 const& proj1, Par1 const& par1,
  384. Proj2 const& proj2, Par2 const& par2,
  385. SegmentIn const& in, SegmentOut & out,
  386. Grids const& grids1, Grids const& grids2)
  387. {
  388. // NOTE: this has to be consistent with pj_transform()
  389. bool const input_angles = !par1.is_geocent && par1.is_latlong;
  390. transform_geometry_wrapper<SegmentOut, CT> wrapper(in, out, input_angles);
  391. typedef typename geometry::point_type
  392. <
  393. typename transform_geometry_wrapper<SegmentOut, CT>::type
  394. >::type point_type;
  395. point_type points[2];
  396. geometry::detail::assign_point_from_index<0>(wrapper.get(), points[0]);
  397. geometry::detail::assign_point_from_index<1>(wrapper.get(), points[1]);
  398. std::pair<point_type*, point_type*> range = std::make_pair(points, points + 2);
  399. bool res = true;
  400. try
  401. {
  402. res = pj_transform(proj1, par1, proj2, par2, range, grids1, grids2);
  403. }
  404. catch (projection_exception const&)
  405. {
  406. res = false;
  407. }
  408. catch(...)
  409. {
  410. BOOST_RETHROW
  411. }
  412. geometry::detail::assign_point_to_index<0>(points[0], wrapper.get());
  413. geometry::detail::assign_point_to_index<1>(points[1], wrapper.get());
  414. wrapper.finish();
  415. return res;
  416. }
  417. };
  418. template <typename Linestring, typename CT>
  419. struct transform<Linestring, CT, linestring_tag>
  420. : transform_range<CT>
  421. {};
  422. template <typename MultiLinestring, typename CT>
  423. struct transform<MultiLinestring, CT, multi_linestring_tag>
  424. : transform_multi<transform_range<CT> >
  425. {};
  426. template <typename Ring, typename CT>
  427. struct transform<Ring, CT, ring_tag>
  428. : transform_range<CT>
  429. {};
  430. template <typename Polygon, typename CT>
  431. struct transform<Polygon, CT, polygon_tag>
  432. {
  433. template
  434. <
  435. typename Proj1, typename Par1,
  436. typename Proj2, typename Par2,
  437. typename PolygonIn, typename PolygonOut,
  438. typename Grids
  439. >
  440. static inline bool apply(Proj1 const& proj1, Par1 const& par1,
  441. Proj2 const& proj2, Par2 const& par2,
  442. PolygonIn const& in, PolygonOut & out,
  443. Grids const& grids1, Grids const& grids2)
  444. {
  445. bool r1 = transform_range
  446. <
  447. CT
  448. >::apply(proj1, par1, proj2, par2,
  449. geometry::exterior_ring(in),
  450. geometry::exterior_ring(out),
  451. grids1, grids2);
  452. bool r2 = transform_multi
  453. <
  454. transform_range<CT>
  455. >::apply(proj1, par1, proj2, par2,
  456. geometry::interior_rings(in),
  457. geometry::interior_rings(out),
  458. grids1, grids2);
  459. return r1 && r2;
  460. }
  461. };
  462. template <typename MultiPolygon, typename CT>
  463. struct transform<MultiPolygon, CT, multi_polygon_tag>
  464. : transform_multi
  465. <
  466. transform
  467. <
  468. typename boost::range_value<MultiPolygon>::type,
  469. CT,
  470. polygon_tag
  471. >
  472. >
  473. {};
  474. }} // namespace projections::detail
  475. namespace srs
  476. {
  477. /*!
  478. \brief Representation of projection
  479. \details Either dynamic or static projection representation
  480. \ingroup projection
  481. \tparam Proj1 default_dynamic or static projection parameters
  482. \tparam Proj2 default_dynamic or static projection parameters
  483. \tparam CT calculation type used internally
  484. */
  485. template
  486. <
  487. typename Proj1 = srs::dynamic,
  488. typename Proj2 = srs::dynamic,
  489. typename CT = double
  490. >
  491. class transformation
  492. {
  493. typedef typename projections::detail::promote_to_double<CT>::type calc_t;
  494. public:
  495. // Both static and default constructed
  496. transformation()
  497. {}
  498. // First dynamic, second static and default constructed
  499. template
  500. <
  501. typename Parameters1,
  502. std::enable_if_t
  503. <
  504. std::is_same<Proj1, srs::dynamic>::value
  505. && projections::dynamic_parameters<Parameters1>::is_specialized,
  506. int
  507. > = 0
  508. >
  509. explicit transformation(Parameters1 const& parameters1)
  510. : m_proj1(parameters1)
  511. {}
  512. // First static, second static and default constructed
  513. explicit transformation(Proj1 const& parameters1)
  514. : m_proj1(parameters1)
  515. {}
  516. // Both dynamic
  517. template
  518. <
  519. typename Parameters1, typename Parameters2,
  520. std::enable_if_t
  521. <
  522. std::is_same<Proj1, srs::dynamic>::value
  523. && std::is_same<Proj2, srs::dynamic>::value
  524. && projections::dynamic_parameters<Parameters1>::is_specialized
  525. && projections::dynamic_parameters<Parameters2>::is_specialized,
  526. int
  527. > = 0
  528. >
  529. transformation(Parameters1 const& parameters1,
  530. Parameters2 const& parameters2)
  531. : m_proj1(parameters1)
  532. , m_proj2(parameters2)
  533. {}
  534. // First dynamic, second static
  535. template
  536. <
  537. typename Parameters1,
  538. std::enable_if_t
  539. <
  540. std::is_same<Proj1, srs::dynamic>::value
  541. && projections::dynamic_parameters<Parameters1>::is_specialized,
  542. int
  543. > = 0
  544. >
  545. transformation(Parameters1 const& parameters1,
  546. Proj2 const& parameters2)
  547. : m_proj1(parameters1)
  548. , m_proj2(parameters2)
  549. {}
  550. // First static, second dynamic
  551. template
  552. <
  553. typename Parameters2,
  554. std::enable_if_t
  555. <
  556. std::is_same<Proj2, srs::dynamic>::value
  557. && projections::dynamic_parameters<Parameters2>::is_specialized,
  558. int
  559. > = 0
  560. >
  561. transformation(Proj1 const& parameters1,
  562. Parameters2 const& parameters2)
  563. : m_proj1(parameters1)
  564. , m_proj2(parameters2)
  565. {}
  566. // Both static
  567. transformation(Proj1 const& parameters1,
  568. Proj2 const& parameters2)
  569. : m_proj1(parameters1)
  570. , m_proj2(parameters2)
  571. {}
  572. template <typename GeometryIn, typename GeometryOut>
  573. bool forward(GeometryIn const& in, GeometryOut & out) const
  574. {
  575. return forward(in, out, transformation_grids<detail::empty_grids_storage>());
  576. }
  577. template <typename GeometryIn, typename GeometryOut>
  578. bool inverse(GeometryIn const& in, GeometryOut & out) const
  579. {
  580. return inverse(in, out, transformation_grids<detail::empty_grids_storage>());
  581. }
  582. template <typename GeometryIn, typename GeometryOut, typename GridsStorage>
  583. bool forward(GeometryIn const& in, GeometryOut & out,
  584. transformation_grids<GridsStorage> const& grids) const
  585. {
  586. BOOST_GEOMETRY_STATIC_ASSERT(
  587. (projections::detail::same_tags<GeometryIn, GeometryOut>::value),
  588. "Not supported combination of Geometries.",
  589. GeometryIn, GeometryOut);
  590. return projections::detail::transform
  591. <
  592. GeometryOut,
  593. calc_t
  594. >::apply(m_proj1.proj(), m_proj1.proj().params(),
  595. m_proj2.proj(), m_proj2.proj().params(),
  596. in, out,
  597. grids.src_grids,
  598. grids.dst_grids);
  599. }
  600. template <typename GeometryIn, typename GeometryOut, typename GridsStorage>
  601. bool inverse(GeometryIn const& in, GeometryOut & out,
  602. transformation_grids<GridsStorage> const& grids) const
  603. {
  604. BOOST_GEOMETRY_STATIC_ASSERT(
  605. (projections::detail::same_tags<GeometryIn, GeometryOut>::value),
  606. "Not supported combination of Geometries.",
  607. GeometryIn, GeometryOut);
  608. return projections::detail::transform
  609. <
  610. GeometryOut,
  611. calc_t
  612. >::apply(m_proj2.proj(), m_proj2.proj().params(),
  613. m_proj1.proj(), m_proj1.proj().params(),
  614. in, out,
  615. grids.dst_grids,
  616. grids.src_grids);
  617. }
  618. template <typename GridsStorage>
  619. inline transformation_grids<GridsStorage> initialize_grids(GridsStorage & grids_storage) const
  620. {
  621. transformation_grids<GridsStorage> result(grids_storage);
  622. using namespace projections::detail;
  623. pj_gridlist_from_nadgrids(m_proj1.proj().params(),
  624. result.src_grids);
  625. pj_gridlist_from_nadgrids(m_proj2.proj().params(),
  626. result.dst_grids);
  627. return result;
  628. }
  629. private:
  630. projections::proj_wrapper<Proj1, CT> m_proj1;
  631. projections::proj_wrapper<Proj2, CT> m_proj2;
  632. };
  633. } // namespace srs
  634. }} // namespace boost::geometry
  635. #endif // BOOST_GEOMETRY_SRS_TRANSFORMATION_HPP