MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / Map

Method Map

preprocessing/science/rconv/src/Map.cpp:53–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53Map::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
67Map::~Map()
68{

Callers

nothing calls this directly

Calls 2

printLastErrorFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected