GPS_PROJ_PARAMS="+..." <whatever the UTM params the GPS outputs>
PROJ_PARAMS=`g.proj -jf`
cs2cs "$GPS_PROJ_PARAMS" +to "$PROJ_PARAMS" < ${TMP}_P_raw > ${TMP}_P
Hamish
[cc Paul for the replacement method for m.proj2 in 5.7]
...not sure if there's anything I should be doing here? Good to see the -j
option for g.proj is useful. Also we can rely on cs2cs being available
with 5.7 as PROJ.4 is a mandatory requirement.
Should that be PROJ_PARAMS="`g.proj -jf`" above, as there will be spaces
in the g.proj output?