Talk:Party render

From OpenStreetMap Wiki
Jump to navigation Jump to search

TegRender

It might also be interesting to generalize this idea a bit and use it on uploaded GPX files that are sharing the same tag. Then it can be used to quickly check a coverage of a city, or as originally intended for parties via SpecificMappingParty tags. --Stefanb 14:08, 14 October 2007 (BST)

Projection

The projection used in this isn't nice for high latitudes (such as where I live), Mercator is fine in JOSM though. Bruce89 17:56, 14 October 2007 (BST)

Can someone check the projection code -- I'm convinced it's wrong, but haven't actually gone through checking it yet. Ojw 18:10, 14 October 2007 (BST) (e.g. it probably shouldn't scale the image by the dLat/dLon ratio now that they're arranged to be the same number of kilometers)

Output formats

Hi, might it be possible to export the video as animated SVG file? So it might be used for postprocessing in other artworks and so on? --!i! 20:05, 14 August 2009 (UTC)

Hacks

Some Nokia Sports Tracker tracks have non-standard timestamps, so for video.py around line 214

   try:
       time = mktime(strptime(self.timeText, "%Y-%m-%dT%H:%M:%SZ"))
   except ValueError:
       self.timeText = self.timeText[0:18] + "Z"
       time = mktime(strptime(self.timeText, "%Y-%m-%dT%H:%M:%SZ"))

gets around this.

to remove the fractional part of seconds in vi use this command:
%s/.\([0-9]\{2,2\}\)<\/t/\:1Z<\/t

--EdoM (lets talk about it) 10:42, 11 February 2008 (UTC)

to fix the dot in the OSMtracker timestamp use this
%s/.\([0-9]\{2,2\}\)Z/:\1Z

Problems

I've tried this, but got this message;

paul@kubuntu-m300:~/python/party_render$ python render.py
Traceback (most recent call last):
  File "render.py", line 41, in <module>
    class CityPlotter(saxutils.DefaultHandler):
AttributeError: 'module' object has no attribute 'DefaultHandler'

This is with Kubuntu 7.10 (running on 2.6.22.14-generic) and python 2.5.1. I've installed pymedia but don't hink it matters for render.py. Anyone have any ideas ?? --Paulhurleyuk 21:25, 6 March 2008 (UTC)

-- I've done a little digging, methinks maybe Default Handler could be replaced with ContentHandler, or maybe I haven't installed pyXML. Will hceck and repost ... --Paulhurleyuk 16:38, 18 March 2008 (UTC)

--Yeah, woops. Hadn't installed the python xml libs... Now I have it works ! Wha-d-ya know ! --Paulhurleyuk 22:50, 20 March 2008 (UTC)

I have the DefaultHandler error message on Ubuntu Hardy, and the python-xml tools are installed. I'm stuck. Matthewg42 12:31, 7 August 2008 (UTC)


c:\ python video.py
...
t: 99.3%, 60 points
t: 100.0%, 60 points
Pausing...
Downloading map:
http://dev.openstreetmap.org/~ojw/bbox/?W=12.148305&S=53.761952&E=12.224470&N=53
.806952&width=600&height=600
Traceback (most recent call last):
  File "C:\Dokumente und Einstellungen\Matthias\Desktop\partyrender\video.py", l
ine 545, in <module>
    TracklogPlotter.drawTracklogs(secondsPerFrame, fade)
  File "C:\Dokumente und Einstellungen\Matthias\Desktop\partyrender\video.py", l
ine 384, in drawTracklogs
    self.fadeToMapImage()
  File "C:\Dokumente und Einstellungen\Matthias\Desktop\partyrender\video.py", l
ine 406, in fadeToMapImage
    mapSurface = cairo.ImageSurface.create_from_png("map.png")
MemoryError

Using Python 2.5, PyCairo 1.42, PyGame 1.91 PyMedia 1.373 und WinXP SP2 with 1GB RAM. Why are the tiles unloadable? I have just one GPX in the same folder as video.py. The temporyry Map file was created but the temporary map.png is unreadable! --!i! 14:32, 14 August 2009 (UTC)

When gazeteer download fails

Maybe someone could write instructions on how to create a file by hand just to add the 2 or 3 major towns in the area? Ojw 11:30, 10 January 2009 (UTC)

Wishlist

  • print timebase (Number of seconds of real time) to speed up/slow down the generated animation if I dislike it
  • deal with UTF8 special characters e.g. german ä,ö,ü,....
  • adjust colors (background, trackcolours,...)

--!i! 17:26, 14 September 2009 (UTC)

  • specify legend font size;
  • choose legend symbols (squares vs circles);
  • have a border around legend symbols (helps when placing legend on the black are w/o traces);
  • allow to sort legend entries in arbitrary order

--Richlv 12:59, 24 August 2010 (BST)

longer legend cut off

if participant name is longer, it is cut off in the resulting render - looks like legend size is not calculated at all --Richlv 12:58, 24 August 2010 (BST)

blip.tv example links gone

Sadly it seems we've lost some old example links. "Blip was acquired by Maker Studios in 2013, and shut down by them on August 20, 2015." [1] -- Harry Wood (talk) 23:27, 21 September 2015 (UTC)