88 int main(
int argc,
char *argv[])
108 if (importName == exportName)
111 <<
"Output file " << exportName <<
" would overwrite input file."
144 ? dictPath/coordinateSystems::typeName
160 coordinateSystems::typeName,
174 <<
"Cannot open coordinateSystems file\n "
185 label csId = csLst.find(csName);
189 <<
"Cannot find -from " << csName <<
nl
190 <<
"available coordinateSystems: " << csLst.toc() <<
nl
201 label csId = csLst.find(csName);
205 <<
"Cannot find -to " << csName <<
nl
206 <<
"available coordinateSystems: " << csLst.toc() <<
nl
218 <<
"Only allowed '-from' or '-to' option at the moment."
235 Info<<
" -scaleIn " << scaleIn <<
endl;
236 surf.scalePoints(scaleIn);
240 if (fromCsys.
valid())
242 Info<<
" -from " << fromCsys().name() <<
endl;
244 surf.movePoints(tpf());
249 Info<<
" -to " << toCsys().name() <<
endl;
251 surf.movePoints(tpf());
257 Info<<
" -scaleOut " << scaleOut <<
endl;
258 surf.scalePoints(scaleOut);
261 Info<<
"writing " << exportName;
262 surf.write(exportName);