Talk:Party render
From OpenStreetMap
Contents |
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)
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)

