| 51 | |
| 52 | |
| 53 | Map::Map(std::string const& targetCoordSystem) |
| 54 | { |
| 55 | if (!(pj_lonlat = pj_init_plus("+proj=lonlat +datum=WGS84 +units=km +no_defs"))) { |
| 56 | printLastError(); |
| 57 | } |
| 58 | if (!(pj_mesh = pj_init_plus(targetCoordSystem.c_str()))) { |
| 59 | printLastError(); |
| 60 | } |
| 61 | |
| 62 | if (pj_mesh->to_meter != 1.0 || pj_mesh->vto_meter != 1.0) { |
| 63 | std::cout << "Warning: The MCS does not use meter as length unit. Note that area and sliprate will be saved in m^2 and m/s so prepare for trouble." << std::endl; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | Map::~Map() |
| 68 | { |
nothing calls this directly
no test coverage detected