[GRASS5] Re: s.in.garmin in GRASS 5.7

On Thu, 8 Apr 2004, Hamish wrote:

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?

Paul

> 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

...

> as a replacement for m.proj2 in 5.7

...

...not sure if there's anything I should be doing here?

Nope, purely informational.

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.

Great. We can make a g.parser wrapper around it & less work for us.

Should that be PROJ_PARAMS="`g.proj -jf`" above, as there will be
spaces in the g.proj output?

Yes it should.

Hamish