[OSM-talk] Tiles at home Update

Robert Hart bathterror at gmail.com
Thu Mar 22 09:43:38 GMT 2007


>
> Besides, the preprocessor
> shuts out a whole lot of renderers that simply can't render any tiles
> that are a little more complete, London for instance is barely updated
> anymore. In IRC there have been several mentions of tile areas that
> simply don't render anymore on some clients because the preprocessor
> just fails.
>


As frollo is not an essential step of the render perhaps we could do what
we've done with lines2curves and make tiles at Home fall back to the original
data if frollo dies.

Index: tilesGen.pl
===================================================================
--- tilesGen.pl    (revision 2306)
+++ tilesGen.pl    (working copy)
@@ -543,15 +543,25 @@
     "frollo1.xsl",
     "$dataFile",
     "temp-$PID.osm");
-  runCommand("Frolloizing (part I) ...", $Cmd);

-  my $Cmd = sprintf("%s \"%s\" tr %s %s > \"%s\"",
-    $Config{Niceness},
-    $Config{XmlStarlet},
-    "frollo2.xsl",
-    "temp-$PID.osm",
-    "$dataFile");
-  runCommand("Frolloizing (part II) ...", $Cmd);
+  if(runCommand("Frolloizing (part I) ...", $Cmd)){
+      my $Cmd = sprintf("%s \"%s\" tr %s %s > \"%s\"",
+            $Config{Niceness},
+            $Config{XmlStarlet},
+            "frollo2.xsl",
+            "temp-$PID.osm",
+            "temp2-$PID.osm");
+      if(runCommand("Frolloizing (part II) ...", $Cmd)){
+      copy("temp2-$PID.osm","$dataFile");
+      statusMessage("Frollification successful");
+      } else {
+      statusMessage("Frollotation failure (part II)");
+      killafile("temp2-$PID.osm");
+      }
+  } else {
+      statusMessage("Failure of Frollotron (part I)");
+      killafile("temp-$PID.osm");
+  }
 }

 #-----------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20070322/13cb93fb/attachment.html>


More information about the talk mailing list