]> mj.ucw.cz Git - leo.git/blobdiff - leo.c
Experiments with simplication of ways
[leo.git] / leo.c
diff --git a/leo.c b/leo.c
index 1af53c0150819cd163c1a79a280aa3d5913e4c6b..b62d21b8d7acfa93f29eb7b37333d4d525d03a03 100644 (file)
--- a/leo.c
+++ b/leo.c
@@ -4,13 +4,13 @@
  *     (c) 2014 Martin Mares <mj@ucw.cz>
  */
 
-#include <ucw/lib.h>
+#include "leo.h"
+
 #include <ucw/conf.h>
 #include <ucw/opt.h>
 
 #include <stdio.h>
 
-#include "leo.h"
 #include "osm.h"
 #include "svg.h"
 #include "style.h"
@@ -18,6 +18,7 @@
 #include "sym.h"
 #include "map.h"
 #include "graph.h"
+#include "simplify.h"
 
 uns debug_dump_source, debug_dump_after_proj, debug_dump_after_scaling;
 uns debug_dump_multipolygons, debug_dump_css, debug_dump_styling, debug_dump_symbols;
@@ -46,6 +47,7 @@ static const struct opt_section options = {
   }
 };
 
+#if 0
 // FIXME: Make generic
 static void draw_scale(struct svg *svg)
 {
@@ -110,6 +112,7 @@ static void draw_scale(struct svg *svg)
   scale_text(svg, width, 5, osm_val_encode("1 km"));
   svg_pop(svg);
 }
+#endif
 
 int main(int argc UNUSED, char **argv)
 {
@@ -121,6 +124,7 @@ int main(int argc UNUSED, char **argv)
   styles_init();
   map_load_styles();
   map_load_sources();
+  simplify();
   graph_build();
   map_set_scale();
   map_generalize();