[Proj] wgs point (lat-lon 'NMEA' to N-E 'metric') "was (lat-lon
'degres' to N-E 'metric')"
Hamish
hamish_nospam at yahoo.com
Wed Mar 28 00:53:36 EST 2007
Eric Miller wrote:
> Lots of people have written interfaces for NMEA compliant devices.
> Unless you're doing it for educational reasons, you might have a look
> at the GPS software listed on freegis.org.
specifically Gpsd: http://gpsd.berlios.de
as for
> 4051.1749 N --> 40 51.1749 N --> 40.852915 N
if data is fixed width you might add "cut" to awk,
lat_deg=`echo "$input" | cut -c1-2`
lat_min=`echo "$input" | cut -c3-9`
lat_hem=`echo "$input" | cut -c11`
lat_dm="${lat_deg}d${lat_min}${lat_hem}"
$ echo $lat_dm
40d51.1749N
which proj might be happy with.
Hamish
More information about the Proj
mailing list