[Tilesathome] t at h server next generation

spaetz osm at sspaeth.de
Fri Jul 4 09:24:20 BST 2008


On Thu, Jul 03, 2008 at 02:49:24PM -0500, Ian Dees wrote:
> What are the tilesGen.pl modifications? I've been working on a similar
> thing, but for Google AppEngine (also in Python).

Ahh. as I do it in django, we seem to be basically doing the same thing :-). oops.. Join forces?

I made it so that tilesGen uploads the same (full tileset) zip files as before and the server assembles them into a tileset file. This takes less than a second in my tests so far, so it seems ok.

Below is my hand-crafted diff file of all changes needed to tilesGen.pl:
Of course, some of the URLs in the general.conf need to be adapted too.
tilesGen.pl:
line 627: (python doesn't like the 'pass' variable)
         my $res = $ua->post($URL,
           Content_Type => 'form-data',
           Content => [ user => $Config->get("UploadUsername"),
-          pass => $Config->get("UploadPassword"),
+          passwd => $Config->get("UploadPassword"),

+++ upload.pl	(don't join user/password together, senseless)
@@ -249,7 +249,6 @@
         $ua->env_proxy();
         push @{ $ua->requests_redirectable }, 'POST';
         
-        my $Password = join("|", ($Config->get("UploadUsername"), $Config->get("UploadPassword")));
@@ -260,7 +259,8 @@
             my $res = $ua->post($URL,
               Content_Type => 'form-data',
               Content => [ file => [$File],
-              mp => $Password,
+              user => $Config->get("UploadUsername"),
+              passwd => $Config->get("UploadPassword"),




More information about the Tilesathome mailing list