W3C home > Mailing lists > Public > www-archive@w3.org > April 2009

sanitizing cardio trainer tracks for sharing?

From: Dan Connolly <connolly@w3.org>
Date: Tue, 21 Apr 2009 14:07:13 -0500
To: Dan Brickley <danbri@danbri.org>, Tim Berners-Lee <timbl@w3.org>, Norman Walsh <ndw@nwalsh.com>
Cc: www-archive <www-archive@w3.org>
Message-Id: <1240340833.7316.33.camel@pav.lan>
I have some cardio training tracks; I want to publish them,
but with all the points within about 200 meters of my house
elided for privacy.

I put together this Makefile stanza:

---8<---
HOME_LAT=30.1234
HOME_LON=-90.1234
NEIGHBORHOOD_RADIUS=200M
cardio_20apr_pub.gpx: CardioTrainer_Apr-20-2009_03-20PM.gpx
	$(GPSBABEL) -i gpx -f $< \
		-x radius,distance=$(NEIGHBORHOOD_RADIUS),lat=$(HOME_LAT),lon=
$(HOME_LON),exclude \
		-o gpx -F $@

---8<---

(The actual LAT/LON that I'm using are different; I'd rather
not include them in this message to www-archive.)

And this converts it from gpx format to KML format:
---8<---
.gpx.kml:
	$(GPSBABEL) -i gpx -o kml $< $@
cardio_20apr_pub.kml: cardio_20apr_pub.gpx

---8<---

But when I look at the resulting .kml in Google Earth,
all the points are there, even the ones within 200 M of
my house.

Clues? help?


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
gpg D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
Received on Tuesday, 21 April 2009 19:07:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:18:21 GMT