<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>nelsonslog</title>
	<atom:link href="http://nelsonslog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nelsonslog.wordpress.com</link>
	<description>Nelson&#039;s personal work journal</description>
	<lastBuildDate>Tue, 21 Feb 2012 00:43:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nelsonslog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>nelsonslog</title>
		<link>http://nelsonslog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nelsonslog.wordpress.com/osd.xml" title="nelsonslog" />
	<atom:link rel='hub' href='http://nelsonslog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>OSM &#8220;interesting&#8221; columns</title>
		<link>http://nelsonslog.wordpress.com/2012/02/21/osm-interesting-columns/</link>
		<comments>http://nelsonslog.wordpress.com/2012/02/21/osm-interesting-columns/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 00:43:03 +0000</pubDate>
		<dc:creator>nelsonminar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nelsonslog.wordpress.com/?p=674</guid>
		<description><![CDATA[To better understand the OSM schema, I did a bunch of queries to find out which columns in which tables actually contained meaningful data. Kind of like the query about highway types I did, but for every single column. Then I went through by hand and copied out the &#8220;interesting&#8221; columns, ones that seemed to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=674&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To better understand the OSM schema, I did a bunch of queries to find out which columns in which tables actually contained meaningful data. Kind of like <a href="http://nelsonslog.wordpress.com/2012/02/18/openstreetmap-schema-griping/">the query about highway types</a> I did, but for every single column. Then I went through by hand and copied out the &#8220;interesting&#8221; columns, ones that seemed to have a lot of data.</p>
<p>Here&#8217;s a big list by table, then column, then  the distribution of the values in that column. SF Metro only. One thing that&#8217;s clear; even in SF the data&#8217;s not complete enough to be an unbiased sample. For instance you can&#8217;t tell from OSM how many Jewish synagogues there are vs. how many Christian churches, the data&#8217;s just not complete enough.</p>
<p><pre class="brush: plain;">
Table planet_osm_line has 62256 rows

aeroway
99% 62093 None
 0% 143 taxiway
 0% 16 runway
 0% 3 apron

bridge
96% 60376 None
 3% 1872 yes

foot
96% 60024 None
 3% 2060 yes
 0% 117 permissive

highway
46% 29165 residential
14% 8897 service
10% 6307 None
 8% 5252 footway
 3% 1870 motorway_link
 2% 1841 tertiary
 2% 1765 secondary
 1% 1150 motorway
 1% 1113 unclassified
 1% 1063 path

man_made
98% 61560 None
 0% 618 pier
 0% 62 pipeline
 0% 12 breakwater

oneway
85% 52927 None
14% 9163 yes
 0% 74 no

railway
97% 60397 None
 1% 787 rail
 0% 322 tram
 0% 314 subway
 0% 166 spur
 0% 79 platform
 0% 68 disused
 0% 58 abandoned
 0% 42 light_rail
 0% 19 monorail

route
98% 61516 None
 0% 420 bicycle
 0% 122 road
 0% 73 subway
 0% 39 tram
 0% 29 scenic
 0% 23 bus
 0% 18 ferry
 0% 8 hiking
 0% 4 railway

service
91% 56958 None
 5% 3588 parking_aisle
 1% 956 driveway
 0% 321 spur
 0% 191 alley
 0% 121 siding

tunnel
99% 62024 None
 0% 227 yes

waterway
97% 60497 None
 2% 1317 stream
 0% 345 canal
 0% 74 drain
 0% 12 river
 0% 7 dam
Table planet_osm_polygon has 39872 rows

aeroway
99% 39841 None
 0% 17 apron
 0% 9 terminal
 0% 3 aerodrome
 0% 1 serodrome
 0% 1 boundary

amenity
92% 36797 None
 5% 2098 parking
 1% 416 school
 0% 81 restaurant
 0% 71 place_of_worship
 0% 51 fast_food
 0% 30 library
 0% 27 hospital
 0% 25 bank
 0% 19 toilets

building
60% 24237 yes
19% 7585 None
12% 5165 residential
 5% 2196 house
 0% 228 school
 0% 106 tank
 0% 55 apartments
 0% 54 retail
 0% 35 garages
 0% 34 terrace

leisure
94% 37581 None
 2% 875 pitch
 2% 847 park
 0% 177 playground
 0% 113 common
 0% 71 swimming_pool
 0% 47 golf_course
 0% 47 garden
 0% 31 sports_centre
 0% 24 track
Table planet_osm_point has 30916 rows

aeroway
99% 30763 None
 0% 107 gate
 0% 36 helipad
 0% 8 aerodrome
 0% 1 seaplane_base
 0% 1 checkin

amenity
73% 22602 None
 3% 1225 restaurant
 3% 997 place_of_worship
 3% 945 school
 2% 687 fire_hydrant
 1% 500 post_box
 1% 421 cafe
 0% 266 fast_food
 0% 263 bench
 0% 256 parking

highway
68% 21209 None
13% 4047 turning_circle
 5% 1850 traffic_signals
 4% 1534 crossing
 3% 979 bus_stop
 2% 903 stop
 0% 189 motorway_junction
 0% 184 mini_roundabout

leisure
97% 30131 None
 1% 524 park
 0% 151 playground
 0% 27 sports_centre
 0% 13 garden
 0% 10 slipway
 0% 9 designated smoking area
 0% 8 common
 0% 8 swimming_pool
 0% 8 picnic_table

man_made
99% 30620 None
 0% 100 water_tower
 0% 85 tower
 0% 30 crane
 0% 22 pier
 0% 12 monitoring_station
 0% 10 water_tank
 0% 6 mine
 0% 5 survey_point
 0% 4 lighthouse

natural
99% 30718 None
 0% 86 peak
 0% 44 bay
 0% 28 beach
 0% 18 tree
 0% 8 wood
 0% 7 spring
 0% 4 wetland
 0% 2 cave_entrance
 0% 1 cliff

power
93% 28782 None
 6% 2038 tower
 0% 90 pole
 0% 3 sub_station
 0% 2 station
 0% 1 generator

railway
97% 30282 None
 0% 260 level_crossing
 0% 168 tram_stop
 0% 63 subway_entrance
 0% 60 station
 0% 54 switch
 0% 21 crossing
 0% 4 turntable
 0% 3 buffer_stop
 0% 1 stop

religion
96% 29948 None
 3% 937 christian
 0% 14 jewish
 0% 12 buddhist
 0% 3 muslim
 0% 1 unitarian
 0% 1 scientologist
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonslog.wordpress.com/674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonslog.wordpress.com/674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonslog.wordpress.com/674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonslog.wordpress.com/674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonslog.wordpress.com/674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonslog.wordpress.com/674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonslog.wordpress.com/674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonslog.wordpress.com/674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonslog.wordpress.com/674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonslog.wordpress.com/674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonslog.wordpress.com/674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonslog.wordpress.com/674/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonslog.wordpress.com/674/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonslog.wordpress.com/674/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=674&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonslog.wordpress.com/2012/02/21/osm-interesting-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1c0e0c3b1a5147ae7742a76b93a2225?s=96&#38;d=retro&#38;r=R" medium="image">
			<media:title type="html">nelsonminar</media:title>
		</media:content>
	</item>
		<item>
		<title>OSM unclassified lines, etc</title>
		<link>http://nelsonslog.wordpress.com/2012/02/20/osm-unclassified-lines-etc/</link>
		<comments>http://nelsonslog.wordpress.com/2012/02/20/osm-unclassified-lines-etc/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 20:09:54 +0000</pubDate>
		<dc:creator>nelsonminar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nelsonslog.wordpress.com/?p=669</guid>
		<description><![CDATA[I had a little todo item today, &#8220;Edit OpenStreetMap&#8221;. Thought it&#8217;d be fun to try out the editor. After 10 minutes I declare failure with Potlatch; the Flash app on the main server is so terribly slow as to be unusable. I need to read the Beginner&#8217;s Guide and other editing options. After a bit of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=669&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had a little todo item today, &#8220;Edit OpenStreetMap&#8221;. Thought it&#8217;d be fun to try out the editor. After 10 minutes I declare failure with <a href="http://wiki.openstreetmap.org/wiki/Potlatch">Potlatch</a>; the Flash app on the main server is so terribly slow as to be unusable. I need to read the <a href="http://wiki.openstreetmap.org/wiki/Beginners%27_guide">Beginner&#8217;s Guide</a> and <a href="http://wiki.openstreetmap.org/wiki/Editing">other editing options</a>.</p>
<p>After a bit of patience, Potlatch loaded usefully. I ended up <a href="http://www.openstreetmap.org/browse/changeset/10744502">editing the map</a> to put a name on the <a href="http://sfrecpark.org/documents/612DuncanCastro.pdf">tiny little Duncan-Castro park</a>. I hope I did this right, the UI for adding a name to a park is not clear. I ended up using the Advanced view to add a name=Duncan-Castro field to the list for <a href="http://www.openstreetmap.org/browse/way/85689113">the way</a>.</p>
<p>My big plan was to edit one of the 6000+ entries in the SF Metro extract that have no &#8220;highway&#8221; tagged on them. Turns out that&#8217;s not necessary; they tend to be other features, like creeks or county boundaries or stuff. D&#8217;oh.</p>
<p>I did find one entry for an uncategorized &#8220;Center Street&#8221; in SF, osm_id 8489931. But there&#8217;s so many other overlapping &#8220;Center Streets&#8221; in the database I think the fact this one is untagged is not a problem.</p>
<p><pre class="brush: sql;">
select
  name,
  ST_Length(ST_Transform(way, 2163))/1609 as miles
from planet_osm_line
where
  highway is null
order by miles desc;

&quot;Golden Gate National Recreation Area&quot;;50.114480677903
&quot;&quot;;50.1127120036684
&quot;San Francisco&quot;;50.1127120036684
&quot;San Mateo County&quot;;49.8960294825062
&quot;&quot;;49.6164354346274
&quot;Alameda County&quot;;49.5445744035326
&quot;&quot;;49.3526266530211
&quot;San Francisco County&quot;;49.3158064558191
&quot;&quot;;49.2591797769354
&quot;&quot;;49.2302041734416
&quot;&quot;;49.2049183432214
&quot;&quot;;49.1809376585467
&quot;&quot;;49.0948344172935
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonslog.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonslog.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonslog.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonslog.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonslog.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonslog.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonslog.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonslog.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonslog.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonslog.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonslog.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonslog.wordpress.com/669/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonslog.wordpress.com/669/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonslog.wordpress.com/669/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=669&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonslog.wordpress.com/2012/02/20/osm-unclassified-lines-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1c0e0c3b1a5147ae7742a76b93a2225?s=96&#38;d=retro&#38;r=R" medium="image">
			<media:title type="html">nelsonminar</media:title>
		</media:content>
	</item>
		<item>
		<title>Playing with OSM data, in TileMill</title>
		<link>http://nelsonslog.wordpress.com/2012/02/18/playing-with-osm-data-in-tilemill/</link>
		<comments>http://nelsonslog.wordpress.com/2012/02/18/playing-with-osm-data-in-tilemill/#comments</comments>
		<pubDate>Sat, 18 Feb 2012 21:58:50 +0000</pubDate>
		<dc:creator>nelsonminar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nelsonslog.wordpress.com/?p=666</guid>
		<description><![CDATA[I revisted my earlier OSM experiment only using TileMill instead of QuantumGIS to make the map. TileMill has much nicer output, particularly if you want to ship a set of slippy map tiles or frame out specific high quality images / prints. It&#8217;s also more of a textual programming kind of paradigm, which I like better. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=666&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I revisted my <a href="http://nelsonslog.wordpress.com/2012/02/12/playing-with-osm-data/">earlier OSM experiment</a> only using TileMill instead of QuantumGIS to make the map. TileMill has much nicer output, particularly if you want to ship a set of slippy map tiles or frame out specific high quality images / prints. It&#8217;s also more of a textual programming kind of paradigm, which I like better. OTOH TileMill also has very specific limits on what it&#8217;s capable of doing; it&#8217;s not a generic GIS toolset.</p>
<p>It was pretty easy; the hardest part was remembering the weird way to filter a table with select in TileMill; their PostGIS support is a bit idiosyncratic. Also it guessed wrong on the SRS for my tracks; they&#8217;re in WGS84 but it was trying to draw them as if they were in Google Mercator, way out of scale. That seems like a bug.</p>
<p>Anyway, I remade my map of my walks around SF, here&#8217;s an image and some code.</p>
<p><a href="http://nelsonslog.files.wordpress.com/2012/02/low-contrast-street_353e36.png"><img class="aligncenter size-full wp-image-667" title="walks in Tilemill" src="http://nelsonslog.files.wordpress.com/2012/02/low-contrast-street_353e36.png?w=450&#038;h=544" alt="" width="450" height="544" /></a></p>
<p><pre class="brush: plain;">

        &quot;table&quot;: &quot;(select * from planet_osm_polygon\n where leisure = 'park'\n  and geometrytype(\&quot;way\&quot;) in ('POLYGON', 'MULTIPOLYGON')\n) as parks&quot;,
        &quot;table&quot;: &quot;(select * from planet_osm_line\n where \&quot;railway\&quot; is null\n) as road&quot;,

@road: #444444;
@border: #222222;
@park: rgb(196, 243, 170);
@water: #b8dee6;
@bg: #ffffff;
@track: rgb(237,101,22);

Map { background-color: @water; }

#sanfrancisco {
  polygon-opacity:1;
  polygon-fill:@bg;
  line-width: 2;
  line-color: @border;
}

#tracks {
  line-color: @track;
  line-width: 3.0;
}
#road {
  line-color: @road;
  [highway='motorway'] { line-width: 3.0; }
  [highway='motorway_link'] { line-width: 2.0; }
  [highway='footway'] { line-width: 0.7; line-color: lighten(@road, 20%); }
}
#parks {
  line-color: @border;
  line-width: 1.0;
  polygon-opacity: 1;
  polygon-fill: @park;
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonslog.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonslog.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonslog.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonslog.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonslog.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonslog.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonslog.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonslog.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonslog.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonslog.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonslog.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonslog.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonslog.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonslog.wordpress.com/666/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=666&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonslog.wordpress.com/2012/02/18/playing-with-osm-data-in-tilemill/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1c0e0c3b1a5147ae7742a76b93a2225?s=96&#38;d=retro&#38;r=R" medium="image">
			<media:title type="html">nelsonminar</media:title>
		</media:content>

		<media:content url="http://nelsonslog.files.wordpress.com/2012/02/low-contrast-street_353e36.png" medium="image">
			<media:title type="html">walks in Tilemill</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenStreetMap schema griping</title>
		<link>http://nelsonslog.wordpress.com/2012/02/18/openstreetmap-schema-griping/</link>
		<comments>http://nelsonslog.wordpress.com/2012/02/18/openstreetmap-schema-griping/#comments</comments>
		<pubDate>Sat, 18 Feb 2012 21:33:30 +0000</pubDate>
		<dc:creator>nelsonminar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nelsonslog.wordpress.com/2012/02/18/openstreetmap-schema-griping/</guid>
		<description><![CDATA[OpenStreetMap is all kinds of awesome, but boy the data schema is a mess. planet_osm_roads doesn&#8217;t really contain all the roads, you want planet_osm_line. (Yes, one name is singular, one is plural). planet_osm_line sure contains a lot of lines, what are they all? The &#8220;highway&#8221; column tells you. here&#8217;s the most popular types of &#8220;highway&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=662&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>OpenStreetMap is all kinds of awesome, but boy the data schema is a mess. planet_osm_roads doesn&#8217;t really contain all the roads, you want planet_osm_line. (Yes, one name is singular, one is plural). planet_osm_line sure contains a lot of lines, what are they all? The &#8220;highway&#8221; column tells you. here&#8217;s the most popular types of &#8220;highway&#8221; in the San Francisco metro extract.</p>
<p><pre class="brush: sql;">

select
  count(*) as cnt, highway
from planet_osm_line
group by highway
order by cnt desc;

  cnt  |        highway        
-------+-----------------------
 29165 | residential
  8897 | service
  6307 | 
  5252 | footway
  1870 | motorway_link
  1841 | tertiary
  1765 | secondary
  1150 | motorway
  1113 | unclassified
  1063 | path
   959 | track
   890 | primary
   712 | steps
   594 | cycleway
   191 | trunk
   150 | primary_link
   116 | pedestrian
    65 | trunk_link
    44 | construction
    39 | road
    35 | secondary_link
    24 | tertiary_link
     3 | footway_unconstructed
     2 | raceway
     2 | proposed
     2 | bridleway
     1 | service; residential
     1 | platform
     1 | crossing
     1 | living_street
     1 | abandoned
(31 rows)

</pre></p>
<p>It&#8217;s not terrible; things that are correctly classified really are. But &#8220;all roads&#8221; requires identifying several classes, there&#8217;s some ambiguity, and some stuff clearly doesn&#8217;t belong there. Still the data exists and is free, so I shouldn&#8217;t complain too much!</p>
<p>(Migurski&#8217;s High Road is a set of SQL views that present a cleaner schema of roads. But just roads, nothing else.)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonslog.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonslog.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonslog.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonslog.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonslog.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonslog.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonslog.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonslog.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonslog.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonslog.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonslog.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonslog.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonslog.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonslog.wordpress.com/662/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=662&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonslog.wordpress.com/2012/02/18/openstreetmap-schema-griping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1c0e0c3b1a5147ae7742a76b93a2225?s=96&#38;d=retro&#38;r=R" medium="image">
			<media:title type="html">nelsonminar</media:title>
		</media:content>
	</item>
		<item>
		<title>Playing with OSM data</title>
		<link>http://nelsonslog.wordpress.com/2012/02/12/playing-with-osm-data/</link>
		<comments>http://nelsonslog.wordpress.com/2012/02/12/playing-with-osm-data/#comments</comments>
		<pubDate>Sun, 12 Feb 2012 19:17:26 +0000</pubDate>
		<dc:creator>nelsonminar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nelsonslog.wordpress.com/?p=641</guid>
		<description><![CDATA[I&#8217;m playing with OpenStreetMap data in PostGIS, drawing maps in QGIS. No serious cartography, mind you, just trying to get a feel for the data. I&#8217;m starting with Mike Migurski&#8217;s metro extracts, the .osm.bz2 file for San Francisco Import that into PostGIS, which gives this schema which describes these map features. osm2pgsql -d walks --style /usr/share/osm2pgsql/default.style [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=641&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m playing with OpenStreetMap data in PostGIS, drawing maps in QGIS. No serious cartography, mind you, just trying to get a feel for the data. I&#8217;m starting with Mike Migurski&#8217;s <a href="http://metro.teczno.com/">metro extracts</a>, the .osm.bz2 file for San Francisco</p>
<p>Import that into PostGIS, which gives <a href="http://wiki.openstreetmap.org/wiki/Osm2pgsql/schema">this schema</a> which describes these <a href="http://wiki.openstreetmap.org/wiki/Map_Features">map features</a>.</p>
<pre>osm2pgsql -d walks --style /usr/share/osm2pgsql/default.style san-francisco.osm.bz2</pre>
<p>For the SF metro, there&#8217;s 8000 roads, 40,000 polygons, 31,000 points, and 62,000 lines. You can import all these tables directly from pgsql into QGIS and render them for a basic view. The lines contain the street grid; roads contains just the larger highways, etc.</p>
<p>QGIS makes it easy to explore the tables. When you add a new PostGIS layer and choose a table, you can then choose specific fields and sample their values. Exploring around you can find that &#8220;leisure=park&#8221; is an interesting subset of polygons, for instance.</p>
<p>Roads are terribly complicated, so to simplify I tried using Migurski&#8217;s <a href="https://github.com/migurski/HighRoad">High Road</a>. It creates custom views with names like &#8220;planet_osm_line_z14&#8243; where just roads relevant at that zoom level are present. Also some fancy stuff to make drawing casings vs. road surfaces easier. z15plus is the big set of all roads (170,000); _big is 24000 roads and _small is the other 144,000 lines (footpaths and such). Unfortunately QGIS can&#8217;t use the High Road views; details in <a href="https://github.com/migurski/HighRoad/issues/4">this issue I filed</a>.</p>
<p>I was able to use the <a href="https://raw.github.com/migurski/HighRoad/master/views.pgsql">High Road code</a> as a guide for categorizing road by size, though. The &#8220;highway&#8221; field is the key one. It&#8217;s a messy schema, there&#8217;s about 7 synonyms for &#8220;street&#8221;.</p>
<p>Here&#8217;s a map of the walks I&#8217;ve taken in my neighborhood, with streets and parks.</p>
<p><a href="http://nelsonslog.files.wordpress.com/2012/02/quantum-gis-1-7-3-wroclaw-walks.jpg"><img class="aligncenter size-full wp-image-643" title="Quantum GIS 1.7.3-Wroclaw - walks" src="http://nelsonslog.files.wordpress.com/2012/02/quantum-gis-1-7-3-wroclaw-walks.jpg?w=450&#038;h=528" alt="" width="450" height="528" /></a></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonslog.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonslog.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonslog.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonslog.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonslog.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonslog.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonslog.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonslog.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonslog.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonslog.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonslog.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonslog.wordpress.com/641/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonslog.wordpress.com/641/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonslog.wordpress.com/641/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=641&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonslog.wordpress.com/2012/02/12/playing-with-osm-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1c0e0c3b1a5147ae7742a76b93a2225?s=96&#38;d=retro&#38;r=R" medium="image">
			<media:title type="html">nelsonminar</media:title>
		</media:content>

		<media:content url="http://nelsonslog.files.wordpress.com/2012/02/quantum-gis-1-7-3-wroclaw-walks.jpg" medium="image">
			<media:title type="html">Quantum GIS 1.7.3-Wroclaw - walks</media:title>
		</media:content>
	</item>
		<item>
		<title>Scraping GPX files out of RunKeeper into Postgres and QGIS</title>
		<link>http://nelsonslog.wordpress.com/2012/02/12/scraping-gpx-files-out-of-runkeeper-into-postgres-and-qgis/</link>
		<comments>http://nelsonslog.wordpress.com/2012/02/12/scraping-gpx-files-out-of-runkeeper-into-postgres-and-qgis/#comments</comments>
		<pubDate>Sun, 12 Feb 2012 03:29:47 +0000</pubDate>
		<dc:creator>nelsonminar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nelsonslog.wordpress.com/?p=635</guid>
		<description><![CDATA[I&#8217;ve been using RunKeeper to track my walking. I wanted to work with the 40+ GPS tracks they&#8217;ve logged for me and didn&#8217;t want to download them one at a time. Some quick notes on how to scrape them all out. Log into the website in your browser and go to your Activities page. It [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=635&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using RunKeeper to track my walking. I wanted to work with the 40+ GPS tracks they&#8217;ve logged for me and didn&#8217;t want to download them one at a time. Some quick notes on how to scrape them all out.</p>
<ol>
<li>Log into the website in your browser and go to your Activities page. It has a URL like http://runkeeper.com/user/USERNAME/activity/70000177</li>
<li>Save that big HTML page to a file named activities.html</li>
<li>Capture the IDs of all your activities from that page with a regexp like this:<br />
printMatches  &#8217;link=&#8221;/user/USERNAME/activity/([0-9]+)&#8217;&lt; activities.html &gt; ids</li>
<li>You can now download a GPX for that ID with a URL like http://runkeeper.com/download/activity?activityId=70000177&amp;downloadType=gpx. However, the download requires a URL, at least if your activities are private.</li>
<li>Look in your browser for your JSESSIONID cookie. That&#8217;ll stand in for a login.</li>
<li>Use wget with that cookie. Here&#8217;s my little shell script to get them all</li>
</ol>
<p><pre class="brush: plain;">
cat ids | while read id; do
  wget --no-cookies \
       --header 'Cookie: JSESSIONID=C~2BF2D2156284732CE8D8BDA900000000' \
       -O $id.gpx \
       &quot;http://runkeeper.com/download/activity?activityId=&quot;$id&quot;&amp;downloadType=gpx&quot;;
done
</pre></p>
<p>Set up a PostGIS database with all the data</p>
<ol>
<li>createdb walks</li>
<li>psql -d walks -f postgis.sql</li>
<li>psql -d walks -f spatial_ref_sys.sql</li>
<li>psql -d walks -f postgis_comments.sql</li>
<li>for f in *gpx; do echo $f; ogr2ogr -append -f &#8220;PostgreSQL&#8221; PG:dbname=walks $f; done</li>
</ol>
<p>ogr2ogr will create a fancy schema for you that contains every field ever seen in a GPX file. For RunKeeper data, the salient things are:</p>
<ul>
<li>tracks.wkb_geometry: one row per track, multiline string</li>
<li>track_points: one row per point with a point, elevation, timestamp, etc.</li>
</ul>
<p>QGIS did a fine job rendering the tracks table for me. I also pulled in a raster OSM map for a base layer from http://wms.latlon.org/.</p>
<p>Here&#8217;s a quicky query to get the length of a track in miles. Need to understand the ST_Transform better, also join to something else to get proper data about each imported track.</p>
<pre>select name, ST_Length(ST_Transform(wkb_geometry, 2163)) /1609 as miles from tracks order by name;</pre>
<p>A quicky view to simplify the tracks a bit, plus a query that compares the length of the original and simplified views.</p>
<pre>create or replace view simple as
select
 ogc_fid,
 ST_Simplify(wkb_geometry,0.00005) as track,
 name
from tracks;

select
  tracks.name,
  ST_Length(ST_Transform(simple.track, 2163)) /1609 as miles,
  ST_Length(ST_Transform(tracks.wkb_geometry, 2163)) /1609 as miles
from simple inner join tracks
on simple.name = tracks.name order by name;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonslog.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonslog.wordpress.com/635/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonslog.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonslog.wordpress.com/635/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonslog.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonslog.wordpress.com/635/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonslog.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonslog.wordpress.com/635/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonslog.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonslog.wordpress.com/635/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonslog.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonslog.wordpress.com/635/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonslog.wordpress.com/635/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonslog.wordpress.com/635/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=635&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonslog.wordpress.com/2012/02/12/scraping-gpx-files-out-of-runkeeper-into-postgres-and-qgis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1c0e0c3b1a5147ae7742a76b93a2225?s=96&#38;d=retro&#38;r=R" medium="image">
			<media:title type="html">nelsonminar</media:title>
		</media:content>
	</item>
		<item>
		<title>Multimarkdown reference</title>
		<link>http://nelsonslog.wordpress.com/2012/02/11/multimarkdown-reference/</link>
		<comments>http://nelsonslog.wordpress.com/2012/02/11/multimarkdown-reference/#comments</comments>
		<pubDate>Sat, 11 Feb 2012 23:44:57 +0000</pubDate>
		<dc:creator>nelsonminar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nelsonslog.wordpress.com/?p=632</guid>
		<description><![CDATA[I&#8217;ve finally got an editing tool that does enough with Markdown to be useful: Notational Velocity. No WYSIWYG, but the live preview is pretty great. Shockingly there&#8217;s no really concise quick reference to all of Multimarkdown; it&#8217;s full of ugly complex stuff. The Human Markdown Reference is pretty good, but I made my own. Header [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=632&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally got an editing tool that does enough with Markdown to be useful: Notational Velocity. No WYSIWYG, but the live preview is pretty great. Shockingly there&#8217;s no really concise quick reference to all of Multimarkdown; it&#8217;s full of ugly complex stuff. The <a href="http://labs.metanation.com/human-markdown-reference/">Human Markdown Reference</a> is pretty good, but I made my own.</p>
<p><pre class="brush: plain;">

# Header 1
## Header 2
### Header 3

Text can be _italics_ or **bold** or `fixed width`.

&gt; This is a blockquote.

*  lists are
*  implicitly formed

We can make [basic links](http://www.somebits.com). You can also do this [Stupid link style][1].

[1]: http://www.google.com/

    code samples come
    by indenting four spaces
    
| Features | Advanced? |
- | -
Tables | Yes
Paragraphs | No

----

Multi-markdown link: &lt;http://fletcherpenney.net/multimarkdown&gt;
</pre></p>
<h1 id="header1">Header 1</h1>
<h2 id="header2">Header 2</h2>
<h3 id="header3">Header 3</h3>
<p>Text can be <em>italics</em> or <strong>bold</strong> or <code>fixed width</code>.</p>
<blockquote>
<p>This is a blockquote.</p>
</blockquote>
<ul>
<li>lists are</li>
<li>implicitly formed</li>
</ul>
<p>We can make <a href="http://www.somebits.com">basic links</a>. You can also do this <a href="http://www.google.com/">Stupid link style</a>.</p>
<pre><code>code samples come
by indenting four spaces</code></pre>
<table>
<col />
<col />
<thead>
<tr>
<th>Features</th>
<th>Advanced?</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tables</td>
<td>Yes</td>
</tr>
<tr>
<td>Paragraphs</td>
<td>No</td>
</tr>
</tbody>
</table>
<hr />
<p>Multi-markdown link: <a href="http://fletcherpenney.net/multimarkdown">http://fletcherpenney.net/multimarkdown</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonslog.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonslog.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonslog.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonslog.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonslog.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonslog.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonslog.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonslog.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonslog.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonslog.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonslog.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonslog.wordpress.com/632/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonslog.wordpress.com/632/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonslog.wordpress.com/632/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=632&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonslog.wordpress.com/2012/02/11/multimarkdown-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1c0e0c3b1a5147ae7742a76b93a2225?s=96&#38;d=retro&#38;r=R" medium="image">
			<media:title type="html">nelsonminar</media:title>
		</media:content>
	</item>
		<item>
		<title>GeekTools to show iTunes current song</title>
		<link>http://nelsonslog.wordpress.com/2012/02/11/geektools-to-show-itunes-current-song/</link>
		<comments>http://nelsonslog.wordpress.com/2012/02/11/geektools-to-show-itunes-current-song/#comments</comments>
		<pubDate>Sat, 11 Feb 2012 19:09:05 +0000</pubDate>
		<dc:creator>nelsonminar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nelsonslog.wordpress.com/?p=630</guid>
		<description><![CDATA[I wanted to display the current song playing on my desktop using GeekTools. I found some info on accomplishing this with AppleScript here. Pretty straightforward, but their script is clever in that I think it only runs if iTunes is running. I modified the script a bit, here&#8217;s what I have:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=630&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wanted to display the current song playing on my desktop using GeekTools. I found some info on accomplishing this with AppleScript <a href="http://www.keynote2keynote.com/2007/04/10/ultimate-geektool-setup-pimp-your-desktop-part-2/">here</a>. Pretty straightforward, but their script is clever in that I think it only runs if iTunes is running. I modified the script a bit, here&#8217;s what I have:</p>
<p><pre class="brush: plain;">
tell application &quot;System Events&quot;
	set powerCheck to ((application processes whose (name is equal to &quot;iTunes&quot;)) count)
	if powerCheck = 0 then
		return &quot;&quot;
	end if
end tell
tell application &quot;iTunes&quot;
	try
		set playerstate to (get player state)
	end try
	if playerstate = stopped then
		return &quot;Stopped&quot;
	end if
	set trackID to the current track
	set trackName to the name of trackID
	set artistName to the artist of trackID
	set albumName to the album of trackID
	set totalData to artistName &amp; &quot;
&quot; &amp; albumName &amp; &quot;
&quot; &amp; trackName
	return totalData
end tell

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonslog.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonslog.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonslog.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonslog.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonslog.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonslog.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonslog.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonslog.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonslog.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonslog.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonslog.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonslog.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonslog.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonslog.wordpress.com/630/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=630&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonslog.wordpress.com/2012/02/11/geektools-to-show-itunes-current-song/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1c0e0c3b1a5147ae7742a76b93a2225?s=96&#38;d=retro&#38;r=R" medium="image">
			<media:title type="html">nelsonminar</media:title>
		</media:content>
	</item>
		<item>
		<title>Coffee</title>
		<link>http://nelsonslog.wordpress.com/2012/02/11/coffee/</link>
		<comments>http://nelsonslog.wordpress.com/2012/02/11/coffee/#comments</comments>
		<pubDate>Sat, 11 Feb 2012 15:50:13 +0000</pubDate>
		<dc:creator>nelsonminar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nelsonslog.wordpress.com/?p=628</guid>
		<description><![CDATA[All the Internet sources I read say coffee is best brewed at 195F – 205F. This fancy new Keurig cup brewer I got maxes out at 192F, the &#8220;optimal temperature&#8221; according to them. Most home drip makers struggle to get to 190F.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=628&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>All the Internet sources I read say coffee is best brewed at 195F – 205F. This fancy new Keurig cup brewer I got maxes out at 192F, the &#8220;optimal temperature&#8221; according to them. Most home drip makers struggle to get to 190F.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonslog.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonslog.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonslog.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonslog.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonslog.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonslog.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonslog.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonslog.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonslog.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonslog.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonslog.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonslog.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonslog.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonslog.wordpress.com/628/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=628&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonslog.wordpress.com/2012/02/11/coffee/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1c0e0c3b1a5147ae7742a76b93a2225?s=96&#38;d=retro&#38;r=R" medium="image">
			<media:title type="html">nelsonminar</media:title>
		</media:content>
	</item>
		<item>
		<title>Work in progress graphs</title>
		<link>http://nelsonslog.wordpress.com/2012/02/08/work-in-progress-graphs/</link>
		<comments>http://nelsonslog.wordpress.com/2012/02/08/work-in-progress-graphs/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 02:12:08 +0000</pubDate>
		<dc:creator>nelsonminar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nelsonslog.wordpress.com/?p=622</guid>
		<description><![CDATA[Some basic graphs of my house&#8217;s energy usage. Linear and radial view of the month of January; average and samples &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=622&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some basic graphs of my house&#8217;s energy usage. Linear and radial view of the month of January; average and samples</p>
<p><a href="http://nelsonslog.files.wordpress.com/2012/02/energy-graph-11.png"><img class="aligncenter size-full wp-image-625" title="Energy Graph-1" src="http://nelsonslog.files.wordpress.com/2012/02/energy-graph-11.png?w=450&#038;h=284" alt="" width="450" height="284" /></a></p>
<p>&nbsp;</p>
<p><a href="http://nelsonslog.files.wordpress.com/2012/02/energy-graph1.png"><img class="aligncenter size-full wp-image-626" title="Energy Graph" src="http://nelsonslog.files.wordpress.com/2012/02/energy-graph1.png?w=450&#038;h=470" alt="" width="450" height="470" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonslog.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonslog.wordpress.com/622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonslog.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonslog.wordpress.com/622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonslog.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonslog.wordpress.com/622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonslog.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonslog.wordpress.com/622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonslog.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonslog.wordpress.com/622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonslog.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonslog.wordpress.com/622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonslog.wordpress.com/622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonslog.wordpress.com/622/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonslog.wordpress.com&amp;blog=18192625&amp;post=622&amp;subd=nelsonslog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonslog.wordpress.com/2012/02/08/work-in-progress-graphs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a1c0e0c3b1a5147ae7742a76b93a2225?s=96&#38;d=retro&#38;r=R" medium="image">
			<media:title type="html">nelsonminar</media:title>
		</media:content>

		<media:content url="http://nelsonslog.files.wordpress.com/2012/02/energy-graph-11.png" medium="image">
			<media:title type="html">Energy Graph-1</media:title>
		</media:content>

		<media:content url="http://nelsonslog.files.wordpress.com/2012/02/energy-graph1.png" medium="image">
			<media:title type="html">Energy Graph</media:title>
		</media:content>
	</item>
	</channel>
</rss>
