Geekout On A Sunny Day
I've been using GRASS for about two years now, mostly playing around with maps of Sals. I have the trail network mapped out pretty well at this point, and recently figured out how to use GPX files of trail networks in my Garmin, having them them show up on the map like any other road, so naturally I wanted to do that with my Sals map on GRASS...
In the past I have been able to get the GRASS trails saved as GPX files, but the process involved jumping through a lot of hoops - I had to convert my data from the coordinate system I'm using on my personal map, to the standard one used by GPS units, then output that to a GPX file as output, converting from GRASS's internal format along the way. (There is actually a command in GRASS that would do all of this in a single step, but it never worked. Doh!)
Two nights ago I was messing with my map yet again, and wanted to generate a newer GPX file, and I got so totally frustrated by all the hoop-jumping and broken commands I couldn't think of anything else. Today's my Friday off, so as soon as I got up this morning I opened up the file for the offending command (a shell script called "v.out.gpsbabel"), took it apart and found the problem.
Turns out that the script massages the data by piping it through some sed commands, and this script, like so many scripts before it, had foundered on the rock of regular expressions. Two minutes figuring out what was supposed to happen, a schnipsel here and there, and now the thing works like a charm! I played with it for a while, but I only really had a half-minute task for it to do, and it was a bit anticlimactic after all that work.
I tapped the keyboard listlessly for a while, trying to recapture my fading high, then went out for a haircut. Now I'm hanging with Anne in a new (to me) coffee shop on New Street. (Anne wouldn't care, she's "blogging" old-school with pen and paper, but our regular coffee-shop hangout has had a lot of wireless problems lately, so we've been branching out.)
Another geeky discovery: I was clicking idly through phone's settings, and found that the Droid supports tethering, so I can access the Internet with the laptop, without needing a wi-fi connection. Sweet! -- but it's another anticlimax, because the wi-fi here at The Wise Bean is pretty decent. And so's the coffee...
No comments:
Post a Comment