From: Michael Orlitzky Date: Wed, 21 Oct 2009 05:42:16 +0000 (-0400) Subject: Added a space between the road name and its tlid. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=5a969daed7f14f10a3a80b823be5a108696399b7;p=dead%2Fcensus-tools.git Added a space between the road name and its tlid. Fixed the query to actually return KML. --- diff --git a/bin/lines2kml b/bin/lines2kml index 9a4b6d3..bba63b2 100755 --- a/bin/lines2kml +++ b/bin/lines2kml @@ -72,7 +72,7 @@ if (options.state != None): statefp = "'%s'" % options.state lines_query = """ -SELECT gid, tlid, fullname, the_geom +SELECT gid, tlid, fullname, ST_AsKml(the_geom) FROM tiger_lines WHERE statefp=%s """ % statefp @@ -91,7 +91,7 @@ for row in rows: # Some streets don't have a fullname. fullname = 'Unknown' - name = KML.Name(fullname + '(' + str(row[1]) + ')') + name = KML.Name(fullname + ' (' + str(row[1]) + ')') placemark.children.append(name) geometry = KML.RawText(row[3])