| 137 | } |
| 138 | |
| 139 | F2CPath 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 | |
| 149 | void Transform::transformToUTM(F2CField& field, bool is_etrs89_opt) { |
| 150 | std::string field_crs = field.getCRS(); |