MCPcopy Create free account
hub / github.com/Fields2Cover/Fields2Cover / transformPath

Method transformPath

src/fields2cover/utils/transformation.cpp:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139F2CPath Transform::transformPath(const F2CPath& path,
140 const std::string& coord_sys_from, const std::string& coord_sys_to) {
141 auto new_path = path;
142 auto coords = generateCoordTransf(coord_sys_from, coord_sys_to);
143 for (auto&& s : new_path) {
144 s.point->transform(coords.get());
145 }
146 return new_path;
147}
148
149void Transform::transformToUTM(F2CField& field, bool is_etrs89_opt) {
150 std::string field_crs = field.getCRS();

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
transformMethod · 0.45

Tested by

no test coverage detected