User talk:Spaetz

From OpenStreetMap Wiki
Jump to: navigation, search

Messages for User:Spaetz:


Google SoC application 2008

Well done for submitting the Google SoC application 2008!

-- Harry Wood 10:35, 11 March 2008 (UTC)

Thanks :-) --spaetz 19:20, 19 July 2008 (UTC)
We should list who actually did something last year. I listed the ones that I'm aware of: Google Summer of Code/2008 -- Harry Wood 12:44, 22 May 2009 (UTC)

heanet planet mirror

Do you know what happend to the heanet mirror? You were the one who added it to planet.osm so I thought you where the one to ask Erik Johansson 20:12, 3 June 2008 (UTC)

I did not really add it. somebody else suggested it and had the contact with heanet. when i noticed that it is broken, I mailed the guy (brian ardie or so, but got a mail that he no longer works with heanet. I'd appreciate, if somebody wants to take care of it. --spaetz 19:22, 19 July 2008 (UTC)

MapOf script broken

Hi Spaetz. The MapOf script is bit broken at the moment, which is used by the Simple image MediaWiki Extension, all over the OSM wiki and also some other wiki installations.

So the image on the UK page for example. The wiki plugin generates the URL: http://osm-tah-cache.firefishy.com/MapOf/?lat=55.25&long=-3.845&z=5&w=300&h=460&format=jpeg

...which is a caching proxy mapping onto the URL: http://tah.openstreetmap.org/MapOf/?lat=55.25&long=-3.845&z=5&w=300&h=460&format=jpeg

But the image is now generated with the wrong lat/long centering, wrong dimensions, and wrong file type.

OJW's original php script is up and running here: http://dev.openstreetmap.org/~ojw/MapOf1?lat=55.25&long=-3.845&z=5&w=300&h=460&format=jpeg

But I'm told it's now running your new python version.

What's the quickest way to get this working again? I don't know any python so won't be much use with getting the script working properly. For a temporary fix can we swap back the php script to run from that "tah.openstreetmap.org/MapOf" path somehow? Firefishy's proxy is only caching the contents of the tah server, so it's not so easy to re-point the URL the wiki uses (and that wont resolve the problem for other wiki installations)

-- Harry Wood 15:11, 19 July 2008 (UTC)

Looks like you, or somebody, has made improvements today. It's now getting the dimensions and file type right. It's still not centering the images on the specified lat/long (maybe snapping to the nearest tile or something). Again the UK wiki page illustrates the problem. -- Harry Wood 14:46, 21 July 2008 (UTC)
Hi Harry, thanks for letting me know. Actually I didn't know the wiki plugin was using MapOf. Cool. Sorry for not replying earlier, but I was firefighting the new t@h server and had little time for anything not emergency-related. Due to your comment, I made MapOf return jpeg format again and also made it return the correct image dimensions. Yes, the offset is still not always right. I will be looking into this. But let me explain why I don't just use the old version. Tiles in the new server are stored as one file per tileset. For this reason the old PHP script can not just fetch the tiles as before. And as the whole server is now running in python, I decided that it would just be easier to also have this in python. To sum it up, the old PHP just wouldn't work as easily as before, and I didn't really have time to look a lot into the python version. If you can get OJW to provide a patch to fix the offset now, that would be great. Otherwise it will have to wait until the most pressing issues (ie server crashes) are solved.


I discussed with OJW. He actually created a new version of his php script, running here: http://dev.openstreetmap.org/~ojw/MapOf1?lat=55.25&long=-3.845&z=5&w=300&h=460&format=jpeg . He said that this fetches tiles over HTTP. I think that means it will work, if you can get hold of a copy of that version... except maybe the new python server set-up won't run PHP at all anyway. -- Harry Wood 11:26, 22 July 2008 (UTC)

Ooh. Almost fixed. Chile is looking a lot better (horizontal positioning is right), but UK is still vertically positioned wrong. -- Harry Wood 23:57, 31 July 2008 (UTC)

  • Interesting :-). I'll have a last go at it, fixing that during the next couple of days. --spaetz 18:33, 4 August 2008 (UTC)
  • OK this is fixed now. --spaetz 08:30, 6 August 2008 (UTC)

That's it! good work. -- Harry Wood 22:51, 11 August 2008 (UTC)


Ooh... broken again. Any ideas what's happening this time? -- Harry Wood 17:17, 13 October 2008 (UTC)

DOn't know what you mean. I tried http://tah.openstreetmap.org/MapOf/?lat=55.25&long=-3.845&z=5&w=300&h=460&format=jpeg and it looks just fine to me. --spaetz 13:48, 14 October 2008 (UTC)
Ah yes. Hmmm. I'm talking about how the images show up on the wiki (e.g. UK, India pages) Looks like firefishy's proxy is serving broken images, so it's either caching them from a time when it was broken, or it's pointed at the wrong URL. The URL params all look OK from the browser end:
    http://osm-tah-cache.firefishy.com/MapOf/?lat=55.25&long=-3.845&z=5&w=300&h=460&format=jpeg  <-- broken
          http://tah.openstreetmap.org/MapOf/?lat=55.25&long=-3.845&z=5&w=300&h=460&format=jpeg  <-- working
I'll ask firefishy.
-- Harry Wood 15:11, 14 October 2008 (UTC)
Fixed. And cache cleared. Cache was pointing to an old IP address. -- Firefishy 15:41, 14 October 2008 (UTC)