From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Advice needed. Use links or blocks? Date: Thu, 02 Sep 2010 23:22:52 -0400 Message-ID: <12255.1283484172@gamaville.dokosmarshall.org> References: <878w3jzn49.fsf@gmx.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=53760 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrMrf-0008Di-Qa for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 23:22:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrMre-0004Tm-BZ for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 23:22:55 -0400 Received: from vms173001pub.verizon.net ([206.46.173.1]:49597) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrMre-0004Te-7N for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 23:22:54 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L8500ACGIQ4NET0@vms173001.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 22:22:52 -0500 (CDT) In-reply-to: Message from Sebastian Rose of "Fri, 03 Sep 2010 02:28:38 +0200." <878w3jzn49.fsf@gmx.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: nicholas.dokos@hp.com, Emacs-orgmode mailing list Sebastian Rose wrote: > the attached file fetches background tiles from openstreetmap.org for > me, and produces SVG images of tracks I ran. Unfortunately, I cannot > find a good way to use that code in an automated way. > > What I'd like to do, is to have the coords in my training diary, and > produce the images on demand. When I publish the diary to HTML, I want > the coords to be replaced with a link to the image. > > Here is an example of the coords (just two), as I save them in my diary: > > '((9.707136154065665 52.3705158282501)(9.711406230817374 52.37525815071791)) > > > And this is, how the function to produce the images is used: > > (osm-draw-track > ;; Fantasy-track in Brisbane: > '((152.968 -27.533) (152.968 -27.546) (152.974 -27.537)) > "Track_in_Brisbane" > 8) > > > > Should I go for a special link type: > > [[track:((152.968 -27.533) (152.968 -27.546))][2010-09-03 in Brisbane]] > > ?? > > > Right now, I produce a lisp file, that produces all those images using > `osm-draw-tracks' and add simple links. But this is inconvenient and > prone to error (forgotten tracks)... > Very cool indeed. I am certainly not an expert but I thought I'd remind you of a vaguely similar idea that Julien Danjou implemented with his org-location-google-maps.el: he stores the location in the LOCATION property of an entry. Maybe a TRACK property, possibly accompanied by an ID that will link to the SVG as an attachment and act as a cache? And other fields can be added at will (name, date, completion time, amount of water drunk :-) etc.) Nick