NGen
Loading...
Searching...
No Matches
proj.hpp
1#ifndef NGEN_GEOPACKAGE_PROJ_HPP
2#define NGEN_GEOPACKAGE_PROJ_HPP
3
4#include <boost/geometry/srs/projection.hpp>
5#include <unordered_map>
6
7namespace ngen {
8namespace srs {
9
10namespace bg = boost::geometry;
11
12struct epsg
13{
14 using srs_type = bg::srs::dpar::parameters<double>;
15
16 enum {
17 wgs84 = 4326,
19 mercator = 3857
20 };
21
22 static srs_type get(uint32_t srid);
23
24 private:
25 using def_type = std::unordered_map<int, srs_type>;
26 static const def_type defs_;
27};
28
29} // namespace srs
30} // namespace ngen
31
32#endif // NGEN_GEOPACKAGE_PROJ_HPP
Definition DomainLayer.hpp:9
Definition proj.hpp:13
@ wgs84
Definition proj.hpp:17
@ mercator
Definition proj.hpp:19
@ conus_albers
Definition proj.hpp:18
static const def_type defs_
Definition proj.hpp:26
std::unordered_map< int, srs_type > def_type
Definition proj.hpp:25
bg::srs::dpar::parameters< double > srs_type
Definition proj.hpp:14
static srs_type get(uint32_t srid)
Definition proj.cpp:12