[Tilesathome] Zappy weirdness?
Matthias Julius
lists at julius-net.net
Thu Aug 16 17:40:45 BST 2007
spaetz <osm at sspaeth.de> writes:
> Wouldn't it be more efficient to fix up the planet generator? I'm not
> going to touch ruby code, but that's how steve's export looks like:
>
> $mysql.query "select id, latitude, longitude, timestamp, tags from current_nodes where visible = 1 order by id #{pageSQL(page)}" do |rows|
> rows.each do |row|
> yield row[0].to_i, row[1].to_f, row[2].to_f, read_timestamp(row[3]), read_tags(row[4])
>
> So it seems, it simply takes whatever the database hands us. should we
> use something for mysql like the format function
> "http://dev.mysql.com/doc/refman/5.0/en/string-functions.html" to pass
> us proper numbers? Or is there some ruby magic to output numbers in
> the right format?
I think it is the Right Way to return floats here. The string
formatting should be done where the XML is written. This should be
the place where the method is called where the above code is from.
Matthias
More information about the Tilesathome
mailing list