]> mj.ucw.cz Git - leo.git/blobdiff - map.cf
Do not crash on broken multipolygons
[leo.git] / map.cf
diff --git a/map.cf b/map.cf
index e605403d5f6a6a654c8cc6f985177abc340f69a1..809f77f50f31db1b66f3a410b38e73bbc5b423d9 100644 (file)
--- a/map.cf
+++ b/map.cf
@@ -1,6 +1,23 @@
 Map {
-       # Source file with XML map of OSM data
-       XMLInput dump.osm
+       # Data sources
+       Source {
+               # Input file
+               File dump.osm
+
+               # File format:
+               #       osmxml          OpenStreetMap XML
+               #       fixed           Fixed objects (no File used, see FixedObjects section below)
+               #       shape           ESRI shape file (partial support only)
+               Format osmxml
+
+               # MapCSS stylesheet to apply (multiple style-sheets are allowed)
+               StyleSheet poskole.css
+       }
+
+       Source {
+               Format fixed
+               StyleSheet poskole.css
+       }
 
        # Projection of our map
        Projection "+proj=utm +zone=33 +ellps=WGS84"
@@ -22,16 +39,26 @@ Map {
        # Clip output to the requested rectangle
        Clip 1
 
+       # Rotate the map by 90 degrees
+       Rotate 0
+
        # Draw blue border around the requested rectangle
        DrawBorder 0
 
-       # MapCSS stylesheet to apply
-       StyleSheet poskole.css
-
        # Write SVG output here
        SVGOutput output.svg
 }
 
+FixedObjects {
+       # Fixed objects may be placed at specific positions on the paper
+       # with specific tags. Remember to enable the "fixed" data source.
+       Object {
+               X 100
+               Y 100
+               Tag legend logo
+       }
+}
+
 Debug {
        # Dump map data exactly as parsed
        DumpSource 0