[Mapbender-commits] r1464 - trunk/mapbender/http/print

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jun 25 08:30:16 EDT 2007


Author: astrid_emde
Date: 2007-06-25 08:30:16 -0400 (Mon, 25 Jun 2007)
New Revision: 1464

Modified:
   trunk/mapbender/http/print/printPDF.conf
Log:
mapbender print with A1 and A0


Modified: trunk/mapbender/http/print/printPDF.conf
===================================================================
--- trunk/mapbender/http/print/printPDF.conf	2007-06-25 12:29:59 UTC (rev 1463)
+++ trunk/mapbender/http/print/printPDF.conf	2007-06-25 12:30:16 UTC (rev 1464)
@@ -1,297 +1,771 @@
-<?php
-
-include_once(dirname(__FILE__)."/../../conf/mapbender.conf");
-# filename for temporary imagefiles
-$filename = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".png";
-
-/*
-* DOWNLOAD
-*/
-$download = false;
-$downloadFile = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".pdf";
-$downloadText = "Download: Karte als PDF...";
-
-/*
-*run print as iframe or window
-*/
-$type = 'iframe';
-
-
-
-/*
-* Legend
-*/
-$legend=true;
-$label_legend = 'Legende drucken';
-$legendFilename = TMPDIR."/legend_".substr(md5(uniqid(rand())),0,7).".png";
-$legendFilenameUserPolygon = TMPDIR."/legend_".substr(md5(uniqid(rand())),0,7).".png";
-$legendText = "Legende";
-$legendFooter = "powered by Mapbender";
-$legendImage = "./img/mapbender_logo.png";
-$legendImage_width = 90;
-$legendImage_height = 13;
-
-
-# log requests, class 'class_log.php' required
-$log = false;
-
-# delete images:
-$unlink = true;
-
-# labeling
-if(CHARSET=="UTF-8"){ 
-	$new_comment1 = utf8_decode($_REQUEST["comment1"]);
-	$new_comment2 = utf8_decode($_REQUEST["comment2"]);
-}
-else{
-	$new_comment1 = $_REQUEST["comment1"];
-	$new_comment2 = $_REQUEST["comment2"];
-}
-
-$text1 = "Druckansicht";
-$text2 = "- Mapbender -";
-$text3 = "";
-$text4 = "Maßstab 1 : " . $_REQUEST["map_scale"];
-$text5 = "Datum: " . date("d.m.Y",strtotime("now"));;
-
-$text6 = "Notizen:";
-$text7 = "";
-
-$text8 = $new_comment1;
-$text9 = $new_comment2;
-$text10 = "";
-
-
-$text11 = "Der Auszug ist maschinell erzeugt, er ist ohne Unterschrift gültig.";
-$text12 = "Dieser Auszug ist gesetzlich geschützt (§ 3 Abs. 1 VermKatG NW). Vervielfältigungen, Umarbeitungen, Veröffentlichungen oder die Weitergabe an Dritte nur mit Zustimmung des";
-$text13 = "Herausgebers, ausgenommen Vervielfältigungen und Umarbeitungen zur innerdienstlichen Verwendung bei Behörden oder zum eigenen Gebrauch.";
-
-$text14 = "Dieser Auszug ist gesetzlich geschützt (§ 3 Abs. 1 VermKatG NW). Vervielfältigungen,";
-$text15 = "Umarbeitungen, Veröffentlichungen oder die Weitergabe an Dritte nur mit Zustimmung";
-$text16 = "des Herausgebers, ausgenommen Vervielfältigungen und Umarbeitungen zur inner-";
-$text17 = "dienstlichen Verwendung bei Behörden oder zum eigenen Gebrauch.";
-
-/*
-* Labeling for buttons, textfields ...
-*/
-
-$label_format = "Format:";
-$label_format_a4 = "A4";
-$label_format_a3 = "A3";
-$label_format_a2 = "A2";
-
-$label_orientation = "Orientation: ";
-$label_portrait = "portrait";
-$label_landscape = "landscape";
-
-$label_72dpi = "Quality: 72 dpi";
-$label_288dpi = "Quality: 288 dpi";
-
-$label_comment = "Comment (max. 30)";
-$comment_length = 30;
-
-$label_button = 'drucken';
-
-/*
-* default
-* url string matching and replacement
-*/
-$matching = false;
-$pattern =  "192.168.2.113";
-$replacement = "192.168.2.5";
-
-/*
-* high quality printing 288dpi
-* highquality mapfiles will be supplemented with "_4"
-* example: germany.map -> germany_4.map
-*/
-
-
-$highquality = true;
-$highqualitymapfiles = array(
-	"/data/umn/germany/germany_demo.map",
-	"/data/umn/mapbender_user/mapbender_user.map"
-);
-
-# Dots per cm (72 dpi):
-# 28.346456692913385826771653543307 
-$DPC = 28.35;
-
-# available formats:
-$a4 = true;
-$a3 = true;
-$a2 = true;
-
-
-# dimensions of the map:
-
-# A4 portrait
-$a4p_mapOffset_left = 3.3 * $DPC;
-$a4p_mapOffset_bottom = 3 * $DPC;
-$a4p_map_width = 15.7 * $DPC; 
-$a4p_map_height = 22 * $DPC; 
-$a4p_page_width = 21 * $DPC;
-$a4p_page_height = 29.7 * $DPC;
-$a4p_header_height = 2.6 * $DPC;
-$a4p_footer_height = 1.12 * $DPC;
-        
-# A4 landscape
-$a4l_mapOffset_left = 2.3 * $DPC;
-$a4l_mapOffset_bottom = 1.8 * $DPC;
-$a4l_map_width = 25.2 * $DPC;
-$a4l_map_height = 16.4 * $DPC; 
-$a4l_page_width = 29.7 * $DPC;
-$a4l_page_height = 21 * $DPC;   
-$a4l_header_width = 8.5 * $DPC;
-$a4l_header_height = 6 * $DPC;
-        
-# A3 protrait
-$a3p_mapOffset_left = 3.3 * $DPC;
-$a3p_mapOffset_bottom = 3 * $DPC;
-$a3p_map_width = 24.1 * $DPC;
-$a3p_map_height = 36.7 * $DPC;
-$a3p_page_width = 29.7 * $DPC;
-$a3p_page_height = 42 * $DPC;
-$a3p_header_width =  8.5 * $DPC;
-$a3p_header_height = 6 * $DPC;
-
-# A3 landscape        
-$a3l_mapOffset_left = 2.3 * $DPC;
-$a3l_mapOffset_bottom = 1.8 * $DPC;
-$a3l_map_width = 37.4 * $DPC;
-$a3l_map_height = 25.4 * $DPC; 
-$a3l_page_width = 42 * $DPC;
-$a3l_page_height = 29.7 * $DPC;
-$a3l_header_width =  8.5 * $DPC;
-$a3l_header_height = 6 * $DPC;
-
-# a2 protrait
-$a2p_mapOffset_left = 3.2 * $DPC;
-$a2p_mapOffset_bottom = 2.3 * $DPC;
-$a2p_map_width = 37.3 * $DPC;
-$a2p_map_height = 54.8 * $DPC;
-$a2p_page_width = 42 * $DPC;
-$a2p_page_height = 59.4 * $DPC;
-$a2p_header_width =  8.5 * $DPC;
-$a2p_header_height = 6 * $DPC;
-
-# a2 landscape        
-$a2l_mapOffset_left = 3.2 * $DPC;
-$a2l_mapOffset_bottom = 2.3 * $DPC;
-$a2l_map_width = 54.1 * $DPC;
-$a2l_map_height = 37.3 * $DPC; 
-$a2l_page_width = 59.4 * $DPC;
-$a2l_page_height = 42 * $DPC;
-$a2l_header_width =  8.5 * $DPC;
-$a2l_header_height = 6 * $DPC;
-
-
-/*
-* Overview
-*/
-$overview = true;
-$a4p_overviewOffset_left = $a4p_mapOffset_left;
-$a4p_overviewOffset_bottom = $a4p_mapOffset_bottom;
-
-$a4l_overviewOffset_left = $a4l_mapOffset_left;
-$a4l_overviewOffset_bottom = $a4l_mapOffset_bottom;
-
-$a3p_overviewOffset_left = $a3p_mapOffset_left;
-$a3p_overviewOffset_bottom = $a3p_mapOffset_bottom;
-
-$a3l_overviewOffset_left = $a3l_mapOffset_left;
-$a3l_overviewOffset_bottom = $a3l_mapOffset_bottom;
-
-$a2p_overviewOffset_left = $a2p_mapOffset_left;
-$a2p_overviewOffset_bottom = $a2p_mapOffset_bottom;
-
-$a2l_overviewOffset_left = $a2l_mapOffset_left;
-$a2l_overviewOffset_bottom = $a2l_mapOffset_bottom;
-
-
-
-/*
-* Northarrow
-*/
-$northarrow = true;
-$northarrowImage = "./img/northarrow.png";
-
-$a4p_northarrow_left = $a4p_mapOffset_left + 160;
-$a4p_northarrow_bottom = $a4p_mapOffset_bottom +2 ;
-
-$a4l_northarrow_left = $a4l_mapOffset_left + 5;
-$a4l_northarrow_bottom = $a4l_mapOffset_bottom + $a4l_map_height - 40;
-
-$a3p_northarrow_left = $a3p_mapOffset_left +5;
-$a3p_northarrow_bottom = $a3p_mapOffset_bottom + $a3p_map_height - 80;
-
-$a3l_northarrow_left = $a3l_mapOffset_left + 5;
-$a3l_northarrow_bottom = $a3l_mapOffset_bottom + $a3l_map_height - 40;
-
-$a2p_northarrow_left = $a2p_mapOffset_left +5;
-$a2p_northarrow_bottom = $a2p_mapOffset_bottom + $a2p_map_height - 80;
-
-$a2l_northarrow_left = $a2l_mapOffset_left + 5;
-$a2l_northarrow_bottom = $a2l_mapOffset_bottom + $a2l_map_height - 80;
-
-$northarrowImage_width = 15; 
-$northarrowImage_height = 35; 
-
-/*
-* special image for the map-page
-*/
-$special = true;
-$specialImage = "../img/mapbender_oo.png";
-
-$a4p_special_left = $a4p_mapOffset_left + $a4p_map_width - 50 ;
-$a4p_special_bottom = $a4p_mapOffset_bottom + $a4p_map_height + 80; 
-
-$a4l_special_left = $a4l_mapOffset_left + $a4l_map_width - $a4l_header_width + 0.8 * $DPC + 10 ;
-$a4l_special_bottom = $a4l_mapOffset_bottom + 54; 
-
-$a3p_special_left = $a3p_mapOffset_left + $a3p_map_width - $a3p_header_width ;
-$a3p_special_bottom = $a3p_mapOffset_bottom + 30; 
-
-$a3l_special_left = $a3l_mapOffset_left + $a3l_map_width - $a3l_header_width + 0.8 * $DPC + 10;
-$a3l_special_bottom = $a3l_mapOffset_bottom + 60; 
-
-$a2p_special_left = $a2p_mapOffset_left + $a2p_map_width - $a2p_header_width + 0.1 *$DPC ;
-$a2p_special_bottom = $a2p_mapOffset_bottom + 110; 
-
-$a2l_special_left = $a2l_mapOffset_left + $a2l_map_width - $a2l_header_width + 0.2 * $DPC ;
-$a2l_special_bottom = $a2l_mapOffset_bottom + 110; 
-
-
-$specialImage_width = 65; 
-$specialImage_height = 15; 
-
-
-/*
-* dynamic scalebar
-*/
-$scalebar = true;
-$units = "Meter";
-
-$a4p_scalebar_left = $a4p_mapOffset_left + 2 * $a4p_map_width/3;
-$a4p_scalebar_bottom = $a4p_mapOffset_bottom  + 0.5 * $DPC;
-
-$a4l_scalebar_left = $a4l_mapOffset_left + $a4l_map_width/4 ;
-$a4l_scalebar_bottom = $a4l_mapOffset_bottom +  + 0.5 * $DPC;
-
-$a3p_scalebar_left = $a3p_mapOffset_left  + $a3p_map_width/4 ;
-$a3p_scalebar_bottom = $a3p_mapOffset_bottom + 0.5 * $DPC;
-
-$a3l_scalebar_left = $a3l_mapOffset_left  + $a3l_map_width/4 ;
-$a3l_scalebar_bottom = $a3l_mapOffset_bottom +  + 0.5 * $DPC;
-
-$a2p_scalebar_left = $a2p_mapOffset_left  + $a2p_map_width/4 ;
-$a2p_scalebar_bottom = $a2p_mapOffset_bottom + 0.5 * $DPC;
-
-$a2l_scalebar_left = $a2l_mapOffset_left  + $a2l_map_width/4 ;
-$a2l_scalebar_bottom = $a2l_mapOffset_bottom +  + 0.5 * $DPC;
-
-$scalebar_width = 3 * $DPC;
-$scalebar_height = 0.18 * $DPC;
- 
-
-?>
+<?php
+
+include_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+# filename for temporary imagefiles
+$filename = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".png";
+
+/*
+* DOWNLOAD
+*/
+$download = true;
+$downloadFile = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".pdf";
+$downloadText = "Download: Karte als PDF...";
+
+/*
+*run print as iframe or window
+*/
+$type = 'iframe';
+
+
+
+/*
+* Legend
+*/
+$legend=true;
+$label_legend = 'print legend';
+$legendFilename = TMPDIR."/legend_".substr(md5(uniqid(rand())),0,7).".png";
+$legendFilenameUserPolygon = TMPDIR."/legend_".substr(md5(uniqid(rand())),0,7).".png";
+$legendText = "Legende";
+$legendFooter = "powered by Mapbender";
+$legendImage = "./img/mapbender_logo.png";
+$legendImage_width = 90;
+$legendImage_height = 13;
+
+
+# log requests, class 'class_log.php' required
+$log = true;
+
+# delete images:
+$unlink = false;
+
+# labeling
+if(CHARSET=="UTF-8"){ 
+	$new_comment1 = utf8_decode($_REQUEST["comment1"]);
+	$new_comment2 = utf8_decode($_REQUEST["comment2"]);
+}
+else{
+	$new_comment1 = $_REQUEST["comment1"];
+	$new_comment2 = $_REQUEST["comment2"];
+}
+
+$text1 = "Druckansicht";
+$text2 = "- Mapbender -";
+$text3 = "";
+$text4 = "Maßstab 1 : " . $_REQUEST["map_scale"];
+$text5 = "Datum: " . date("d.m.Y",strtotime("now"));;
+
+$text6 = "Notizen:";
+$text7 = "";
+$text8 = $new_comment1;
+$text9 = $new_comment2;
+$text10 = "";
+
+
+$text11 = "Der Auszug ist maschinell erzeugt, er ist ohne Unterschrift gültig.";
+$text12 = "Dieser Auszug ist gesetzlich geschützt (§ 3 Abs. 1 VermKatG NW). Vervielfältigungen, Umarbeitungen, Veröffentlichungen oder die Weitergabe an Dritte nur mit Zustimmung des";
+$text13 = "Herausgebers, ausgenommen Vervielfältigungen und Umarbeitungen zur innerdienstlichen Verwendung bei Behörden oder zum eigenen Gebrauch.";
+
+$text14 = "Dieser Auszug ist gesetzlich geschützt (§ 3 Abs. 1 VermKatG NW). Vervielfältigungen,";
+$text15 = "Umarbeitungen, Veröffentlichungen oder die Weitergabe an Dritte nur mit Zustimmung";
+$text16 = "des Herausgebers, ausgenommen Vervielfältigungen und Umarbeitungen zur inner-";
+$text17 = "dienstlichen Verwendung bei Behörden oder zum eigenen Gebrauch.";
+
+/*
+* Labeling for buttons, textfields ...
+*/
+
+$label_format = "Format:";
+$label_format_a4 = "A4";
+$label_format_a3 = "A3";
+$label_format_a2 = "A2";
+$label_format_a1 = "A1";
+$label_format_a0 = "A0";
+
+$label_orientation = "Orientation: ";
+$label_portrait = "portrait";
+$label_landscape = "landscape";
+
+$label_72dpi = "Quality: 72 dpi";
+$label_288dpi = "Quality: 288 dpi";
+
+$label_comment = "Comment (max. 30)";
+$comment_length = 30;
+
+$label_button = 'print';
+
+/*
+* default
+* url string matching and replacement
+*/
+$matching = false;
+$pattern =  "192.168.2.113";
+$replacement = "192.168.2.5";
+
+/*
+* high quality printing 288dpi
+* highquality mapfiles will be supplemented with "_4"
+* example: germany.map -> germany_4.map
+*/
+
+
+$highquality = true;
+$highqualitymapfiles = array(
+	"/data/umn/germany/germany_demo.map",
+	"/data/umn/mapbender_user/mapbender_user.map"
+);
+
+# Dots per cm (72 dpi):
+# 28.346456692913385826771653543307 
+$DPC = 28.35;
+
+# available formats:
+$a4 = true;
+$a3 = true;
+$a2 = true;
+$a1 = false;
+$a0 = false;
+
+# dimensions of the map:
+
+# A4 portrait
+$a4p_mapOffset_left = 3.3 * $DPC;
+$a4p_mapOffset_bottom = 3 * $DPC;
+$a4p_map_width = 15.7 * $DPC; 
+$a4p_map_height = 22 * $DPC; 
+$a4p_page_width = 21 * $DPC;
+$a4p_page_height = 29.7 * $DPC;
+$a4p_header_height = 2.6 * $DPC;
+$a4p_footer_height = 1.12 * $DPC;
+        
+# A4 landscape
+$a4l_mapOffset_left = 2.3 * $DPC;
+$a4l_mapOffset_bottom = 1.8 * $DPC;
+$a4l_map_width = 25.2 * $DPC;
+$a4l_map_height = 16.4 * $DPC; 
+$a4l_page_width = 29.7 * $DPC;
+$a4l_page_height = 21 * $DPC;   
+$a4l_header_width = 8.5 * $DPC;
+$a4l_header_height = 6 * $DPC;
+        
+# A3 protrait
+$a3p_mapOffset_left = 3.3 * $DPC;
+$a3p_mapOffset_bottom = 3 * $DPC;
+$a3p_map_width = 24.1 * $DPC;
+$a3p_map_height = 36.7 * $DPC;
+$a3p_page_width = 29.7 * $DPC;
+$a3p_page_height = 42 * $DPC;
+$a3p_header_width =  8.5 * $DPC;
+$a3p_header_height = 6 * $DPC;
+
+# A3 landscape        
+$a3l_mapOffset_left = 2.3 * $DPC;
+$a3l_mapOffset_bottom = 1.8 * $DPC;
+$a3l_map_width = 37.4 * $DPC;
+$a3l_map_height = 25.4 * $DPC; 
+$a3l_page_width = 42 * $DPC;
+$a3l_page_height = 29.7 * $DPC;
+$a3l_header_width =  8.5 * $DPC;
+$a3l_header_height = 6 * $DPC;
+
+# a2 protrait
+$a2p_mapOffset_left = 3.2 * $DPC;
+$a2p_mapOffset_bottom = 2.3 * $DPC;
+$a2p_map_width = 37.3 * $DPC;
+$a2p_map_height = 54.8 * $DPC;
+$a2p_page_width = 42 * $DPC;
+$a2p_page_height = 59.4 * $DPC;
+$a2p_header_width =  8.5 * $DPC;
+$a2p_header_height = 6 * $DPC;
+
+# a2 landscape        
+$a2l_mapOffset_left = 3.2 * $DPC;
+$a2l_mapOffset_bottom = 2.3 * $DPC;
+$a2l_map_width = 54.1 * $DPC;
+$a2l_map_height = 37.3 * $DPC; 
+$a2l_page_width = 59.4 * $DPC;
+$a2l_page_height = 42 * $DPC;
+$a2l_header_width =  8.5 * $DPC;
+$a2l_header_height = 6 * $DPC;
+
+# a1 portrait
+$a1p_mapOffset_left = 3.2 * $DPC;
+$a1p_mapOffset_bottom = 2.3 * $DPC;
+$a1p_map_width = 54.5 * $DPC;
+$a1p_map_height = 79.5 * $DPC;
+$a1p_page_width = 59.4 * $DPC;
+$a1p_page_height = 84 * $DPC;
+$a1p_header_width =  8.5 * $DPC;
+$a1p_header_height = 6 * $DPC;
+
+# a1 landscape        
+$a1l_mapOffset_left = 3.2 * $DPC;
+$a1l_mapOffset_bottom = 2.3 * $DPC;
+$a1l_map_width = 79.5 * $DPC;
+$a1l_map_height = 55.5 * $DPC; 
+$a1l_page_width = 84 * $DPC;
+$a1l_page_height = 59.4 * $DPC;
+$a1l_header_width =  8.5 * $DPC;
+$a1l_header_height = 6 * $DPC;
+
+# a0 portrait
+$a0p_mapOffset_left = 3.2 * $DPC;
+$a0p_mapOffset_bottom = 2.3 * $DPC;
+$a0p_map_width = 79 * $DPC;
+$a0p_map_height = 115 * $DPC;
+$a0p_page_width = 84 * $DPC;
+$a0p_page_height = 118.8 * $DPC;
+$a0p_header_width =  8.5 * $DPC;
+$a0p_header_height = 6 * $DPC;
+
+# a0 landscape        
+$a0l_mapOffset_left = 3.2 * $DPC;
+$a0l_mapOffset_bottom = 2.3 * $DPC;
+$a0l_map_width = 113 * $DPC;
+$a0l_map_height = 80.5 * $DPC; 
+$a0l_page_width = 118.8 * $DPC;
+$a0l_page_height = 84 * $DPC;
+$a0l_header_width =  8.5 * $DPC;
+$a0l_header_height = 6 * $DPC;
+
+/*
+* Overview
+*/
+$overview = true;
+$a4p_overviewOffset_left = $a4p_mapOffset_left;
+$a4p_overviewOffset_bottom = $a4p_mapOffset_bottom;
+
+$a4l_overviewOffset_left = $a4l_mapOffset_left;
+$a4l_overviewOffset_bottom = $a4l_mapOffset_bottom;
+
+$a3p_overviewOffset_left = $a3p_mapOffset_left;
+$a3p_overviewOffset_bottom = $a3p_mapOffset_bottom;
+
+$a3l_overviewOffset_left = $a3l_mapOffset_left;
+$a3l_overviewOffset_bottom = $a3l_mapOffset_bottom;
+
+$a2p_overviewOffset_left = $a2p_mapOffset_left;
+$a2p_overviewOffset_bottom = $a2p_mapOffset_bottom;
+
+$a2l_overviewOffset_left = $a2l_mapOffset_left;
+$a2l_overviewOffset_bottom = $a2l_mapOffset_bottom;
+
+$a1p_overviewOffset_left = $a1p_mapOffset_left;
+$a1p_overviewOffset_bottom = $a1p_mapOffset_bottom;
+
+$a1l_overviewOffset_left = $a1l_mapOffset_left;
+$a1l_overviewOffset_bottom = $a1l_mapOffset_bottom;
+
+$a0p_overviewOffset_left = $a0p_mapOffset_left;
+$a0p_overviewOffset_bottom = $a0p_mapOffset_bottom;
+
+$a0l_overviewOffset_left = $a0l_mapOffset_left;
+$a0l_overviewOffset_bottom = $a0l_mapOffset_bottom;
+
+
+
+/*
+* Northarrow
+*/
+$northarrow = true;
+$northarrowImage = "./img/northarrow.png";
+
+$a4p_northarrow_left = $a4p_mapOffset_left + 160;
+$a4p_northarrow_bottom = $a4p_mapOffset_bottom +2 ;
+
+$a4l_northarrow_left = $a4l_mapOffset_left + 5;
+$a4l_northarrow_bottom = $a4l_mapOffset_bottom + $a4l_map_height - 40;
+
+$a3p_northarrow_left = $a3p_mapOffset_left +5;
+$a3p_northarrow_bottom = $a3p_mapOffset_bottom + $a3p_map_height - 80;
+
+$a3l_northarrow_left = $a3l_mapOffset_left + 5;
+$a3l_northarrow_bottom = $a3l_mapOffset_bottom + $a3l_map_height - 40;
+
+$a2p_northarrow_left = $a2p_mapOffset_left +5;
+$a2p_northarrow_bottom = $a2p_mapOffset_bottom + $a2p_map_height - 80;
+
+$a2l_northarrow_left = $a2l_mapOffset_left + 5;
+$a2l_northarrow_bottom = $a2l_mapOffset_bottom + $a2l_map_height - 80;
+
+$a1p_northarrow_left = $a1p_mapOffset_left +5;
+$a1p_northarrow_bottom = $a1p_mapOffset_bottom + $a1p_map_height - 80;
+
+$a1l_northarrow_left = $a1l_mapOffset_left + 5;
+$a1l_northarrow_bottom = $a1l_mapOffset_bottom + $a1l_map_height - 160;
+
+$a0p_northarrow_left = $a0p_mapOffset_left +5;
+$a0p_northarrow_bottom = $a0p_mapOffset_bottom + $a0p_map_height - 80;
+
+$a0l_northarrow_left = $a0l_mapOffset_left + 5;
+$a0l_northarrow_bottom = $a0l_mapOffset_bottom + $a0l_map_height - 160;
+
+$northarrowImage_width = 15; 
+$northarrowImage_height = 35; 
+
+/*
+* special image for the map-page
+*/
+$special = true;
+$specialImage = "../img/mapbender_oo.png";
+
+$a4p_special_left = $a4p_mapOffset_left + $a4p_map_width - 50 ;
+$a4p_special_bottom = $a4p_mapOffset_bottom + $a4p_map_height + 80; 
+
+$a4l_special_left = $a4l_mapOffset_left + $a4l_map_width - $a4l_header_width + 0.8 * $DPC + 10 ;
+$a4l_special_bottom = $a4l_mapOffset_bottom + 54; 
+
+$a3p_special_left = $a3p_mapOffset_left + $a3p_map_width - $a3p_header_width ;
+$a3p_special_bottom = $a3p_mapOffset_bottom + 30; 
+
+$a3l_special_left = $a3l_mapOffset_left + $a3l_map_width - $a3l_header_width + 0.8 * $DPC + 10;
+$a3l_special_bottom = $a3l_mapOffset_bottom + 60; 
+
+$a2p_special_left = $a2p_mapOffset_left + $a2p_map_width - $a2p_header_width + 0.1 *$DPC ;
+$a2p_special_bottom = $a2p_mapOffset_bottom + 110; 
+
+$a2l_special_left = $a2l_mapOffset_left + $a2l_map_width - $a2l_header_width + 0.2 * $DPC ;
+$a2l_special_bottom = $a2l_mapOffset_bottom + 110; 
+
+$a1p_special_left = $a1p_mapOffset_left + $a1p_map_width - $a1p_header_width + 0.1 *$DPC ;
+$a1p_special_bottom = $a1p_mapOffset_bottom + 110; 
+
+$a1l_special_left = $a1l_mapOffset_left + $a1l_map_width - $a1l_header_width + 0.2 * $DPC ;
+$a1l_special_bottom = $a1l_mapOffset_bottom + 110; 
+
+$a0p_special_left = $a0p_mapOffset_left + $a0p_map_width - $a0p_header_width + 0.1 *$DPC ;
+$a0p_special_bottom = $a0p_mapOffset_bottom + 110; 
+
+$a0l_special_left = $a0l_mapOffset_left + $a0l_map_width - $a0l_header_width + 0.2 * $DPC ;
+$a0l_special_bottom = $a0l_mapOffset_bottom + 110; 
+
+$specialImage_width = 65; 
+$specialImage_height = 15;  
+
+
+/*
+* dynamic scalebar
+*/
+$scalebar = true;
+$units = "Meter";
+
+$a4p_scalebar_left = $a4p_mapOffset_left + 2 * $a4p_map_width/3;
+$a4p_scalebar_bottom = $a4p_mapOffset_bottom  + 0.5 * $DPC;
+
+$a4l_scalebar_left = $a4l_mapOffset_left + $a4l_map_width/4 ;
+$a4l_scalebar_bottom = $a4l_mapOffset_bottom +  + 0.5 * $DPC;
+
+$a3p_scalebar_left = $a3p_mapOffset_left  + $a3p_map_width/4 ;
+$a3p_scalebar_bottom = $a3p_mapOffset_bottom + 0.5 * $DPC;
+
+$a3l_scalebar_left = $a3l_mapOffset_left  + $a3l_map_width/4 ;
+$a3l_scalebar_bottom = $a3l_mapOffset_bottom +  + 0.5 * $DPC;
+
+$a2p_scalebar_left = $a2p_mapOffset_left  + $a2p_map_width/4 ;
+$a2p_scalebar_bottom = $a2p_mapOffset_bottom + 0.5 * $DPC;
+
+$a2l_scalebar_left = $a2l_mapOffset_left  + $a2l_map_width/4 ;
+$a2l_scalebar_bottom = $a2l_mapOffset_bottom +  + 0.5 * $DPC;
+
+$a1p_scalebar_left = $a1p_mapOffset_left  + $a1p_map_width/4 ;
+$a1p_scalebar_bottom = $a1p_mapOffset_bottom + 0.5 * $DPC;
+
+$a1l_scalebar_left = $a1l_mapOffset_left  + $a1l_map_width/4 ;
+$a1l_scalebar_bottom = $a1l_mapOffset_bottom +  + 0.5 * $DPC;
+
+$a0p_scalebar_left = $a0p_mapOffset_left  + $a0p_map_width/4 ;
+$a0p_scalebar_bottom = $a0p_mapOffset_bottom + 0.5 * $DPC;
+
+$a0l_scalebar_left = $a0l_mapOffset_left  + $a0l_map_width/4 ;
+$a0l_scalebar_bottom = $a0l_mapOffset_bottom +  + 0.5 * $DPC;
+
+$scalebar_width = 3 * $DPC;
+$scalebar_height = 0.18 * $DPC;
+ 
+
+?>
+<?php
+
+include_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+# filename for temporary imagefiles
+$filename = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".png";
+
+/*
+* DOWNLOAD
+*/
+$download = false;
+$downloadFile = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".pdf";
+$downloadText = "Download: Karte als PDF...";
+
+/*
+*run print as iframe or window
+*/
+$type = 'iframe';
+
+
+
+/*
+* Legend
+*/
+$legend=true;
+$label_legend = 'print legend';
+$legendFilename = TMPDIR."/legend_".substr(md5(uniqid(rand())),0,7).".png";
+$legendFilenameUserPolygon = TMPDIR."/legend_".substr(md5(uniqid(rand())),0,7).".png";
+$legendText = "Legende";
+$legendFooter = "powered by Mapbender";
+$legendImage = "./img/mapbender_logo.png";
+$legendImage_width = 90;
+$legendImage_height = 13;
+
+
+# log requests, class 'class_log.php' required
+$log = true;
+
+# delete images:
+$unlink = false;
+
+# labeling
+if(CHARSET=="UTF-8"){ 
+	$new_comment1 = utf8_decode($_REQUEST["comment1"]);
+	$new_comment2 = utf8_decode($_REQUEST["comment2"]);
+}
+else{
+	$new_comment1 = $_REQUEST["comment1"];
+	$new_comment2 = $_REQUEST["comment2"];
+}
+
+$text1 = "Druckansicht";
+$text2 = "- Mapbender -";
+$text3 = "";
+$text4 = "Maßstab 1 : " . $_REQUEST["map_scale"];
+$text5 = "Datum: " . date("d.m.Y",strtotime("now"));;
+
+$text6 = "Notizen:";
+$text7 = "";
+$text8 = $new_comment1;
+$text9 = $new_comment2;
+$text10 = "";
+
+
+$text11 = "Der Auszug ist maschinell erzeugt, er ist ohne Unterschrift gültig.";
+$text12 = "Dieser Auszug ist gesetzlich geschützt (§ 3 Abs. 1 VermKatG NW). Vervielfältigungen, Umarbeitungen, Veröffentlichungen oder die Weitergabe an Dritte nur mit Zustimmung des";
+$text13 = "Herausgebers, ausgenommen Vervielfältigungen und Umarbeitungen zur innerdienstlichen Verwendung bei Behörden oder zum eigenen Gebrauch.";
+
+$text14 = "Dieser Auszug ist gesetzlich geschützt (§ 3 Abs. 1 VermKatG NW). Vervielfältigungen,";
+$text15 = "Umarbeitungen, Veröffentlichungen oder die Weitergabe an Dritte nur mit Zustimmung";
+$text16 = "des Herausgebers, ausgenommen Vervielfältigungen und Umarbeitungen zur inner-";
+$text17 = "dienstlichen Verwendung bei Behörden oder zum eigenen Gebrauch.";
+
+/*
+* Labeling for buttons, textfields ...
+*/
+
+$label_format = "Format:";
+$label_format_a4 = "A4";
+$label_format_a3 = "A3";
+$label_format_a2 = "A2";
+$label_format_a1 = "A1";
+$label_format_a0 = "A0";
+
+$label_orientation = "Orientation: ";
+$label_portrait = "portrait";
+$label_landscape = "landscape";
+
+$label_72dpi = "Quality: 72 dpi";
+$label_288dpi = "Quality: 288 dpi";
+
+$label_comment = "Comment (max. 30)";
+$comment_length = 30;
+
+$label_button = 'drucken';
+
+/*
+* default
+* url string matching and replacement
+*/
+$matching = false;
+$pattern =  "192.168.2.113";
+$replacement = "192.168.2.5";
+
+/*
+* high quality printing 288dpi
+* highquality mapfiles will be supplemented with "_4"
+* example: germany.map -> germany_4.map
+*/
+
+
+$highquality = true;
+$highqualitymapfiles = array(
+	"/data/umn/germany/germany_demo.map",
+	"/data/umn/mapbender_user/mapbender_user.map"
+);
+
+# Dots per cm (72 dpi):
+# 28.346456692913385826771653543307 
+$DPC = 28.35;
+
+# available formats:
+$a4 = true;
+$a3 = true;
+$a2 = true;
+$a1 = true;
+$a0 = true;
+
+# dimensions of the map:
+
+# A4 portrait
+$a4p_mapOffset_left = 3.3 * $DPC;
+$a4p_mapOffset_bottom = 3 * $DPC;
+$a4p_map_width = 15.7 * $DPC; 
+$a4p_map_height = 22 * $DPC; 
+$a4p_page_width = 21 * $DPC;
+$a4p_page_height = 29.7 * $DPC;
+$a4p_header_height = 2.6 * $DPC;
+$a4p_footer_height = 1.12 * $DPC;
+        
+# A4 landscape
+$a4l_mapOffset_left = 2.3 * $DPC;
+$a4l_mapOffset_bottom = 1.8 * $DPC;
+$a4l_map_width = 25.2 * $DPC;
+$a4l_map_height = 16.4 * $DPC; 
+$a4l_page_width = 29.7 * $DPC;
+$a4l_page_height = 21 * $DPC;   
+$a4l_header_width = 8.5 * $DPC;
+$a4l_header_height = 6 * $DPC;
+        
+# A3 protrait
+$a3p_mapOffset_left = 3.3 * $DPC;
+$a3p_mapOffset_bottom = 3 * $DPC;
+$a3p_map_width = 24.1 * $DPC;
+$a3p_map_height = 36.7 * $DPC;
+$a3p_page_width = 29.7 * $DPC;
+$a3p_page_height = 42 * $DPC;
+$a3p_header_width =  8.5 * $DPC;
+$a3p_header_height = 6 * $DPC;
+
+# A3 landscape        
+$a3l_mapOffset_left = 2.3 * $DPC;
+$a3l_mapOffset_bottom = 1.8 * $DPC;
+$a3l_map_width = 37.4 * $DPC;
+$a3l_map_height = 25.4 * $DPC; 
+$a3l_page_width = 42 * $DPC;
+$a3l_page_height = 29.7 * $DPC;
+$a3l_header_width =  8.5 * $DPC;
+$a3l_header_height = 6 * $DPC;
+
+# a2 protrait
+$a2p_mapOffset_left = 3.2 * $DPC;
+$a2p_mapOffset_bottom = 2.3 * $DPC;
+$a2p_map_width = 37.3 * $DPC;
+$a2p_map_height = 54.8 * $DPC;
+$a2p_page_width = 42 * $DPC;
+$a2p_page_height = 59.4 * $DPC;
+$a2p_header_width =  8.5 * $DPC;
+$a2p_header_height = 6 * $DPC;
+
+# a2 landscape        
+$a2l_mapOffset_left = 3.2 * $DPC;
+$a2l_mapOffset_bottom = 2.3 * $DPC;
+$a2l_map_width = 54.1 * $DPC;
+$a2l_map_height = 37.3 * $DPC; 
+$a2l_page_width = 59.4 * $DPC;
+$a2l_page_height = 42 * $DPC;
+$a2l_header_width =  8.5 * $DPC;
+$a2l_header_height = 6 * $DPC;
+
+# a1 portrait
+$a1p_mapOffset_left = 3.2 * $DPC;
+$a1p_mapOffset_bottom = 2.3 * $DPC;
+$a1p_map_width = 54.5 * $DPC;
+$a1p_map_height = 79.5 * $DPC;
+$a1p_page_width = 59.4 * $DPC;
+$a1p_page_height = 84 * $DPC;
+$a1p_header_width =  8.5 * $DPC;
+$a1p_header_height = 6 * $DPC;
+
+# a1 landscape        
+$a1l_mapOffset_left = 3.2 * $DPC;
+$a1l_mapOffset_bottom = 2.3 * $DPC;
+$a1l_map_width = 79.5 * $DPC;
+$a1l_map_height = 55.5 * $DPC; 
+$a1l_page_width = 84 * $DPC;
+$a1l_page_height = 59.4 * $DPC;
+$a1l_header_width =  8.5 * $DPC;
+$a1l_header_height = 6 * $DPC;
+
+# a0 portrait
+$a0p_mapOffset_left = 3.2 * $DPC;
+$a0p_mapOffset_bottom = 2.3 * $DPC;
+$a0p_map_width = 79 * $DPC;
+$a0p_map_height = 115 * $DPC;
+$a0p_page_width = 84 * $DPC;
+$a0p_page_height = 118.8 * $DPC;
+$a0p_header_width =  8.5 * $DPC;
+$a0p_header_height = 6 * $DPC;
+
+# a0 landscape        
+$a0l_mapOffset_left = 3.2 * $DPC;
+$a0l_mapOffset_bottom = 2.3 * $DPC;
+$a0l_map_width = 113 * $DPC;
+$a0l_map_height = 80.5 * $DPC; 
+$a0l_page_width = 118.8 * $DPC;
+$a0l_page_height = 84 * $DPC;
+$a0l_header_width =  8.5 * $DPC;
+$a0l_header_height = 6 * $DPC;
+
+
+/*
+* Overview
+*/
+$overview = true;
+$a4p_overviewOffset_left = $a4p_mapOffset_left;
+$a4p_overviewOffset_bottom = $a4p_mapOffset_bottom;
+
+$a4l_overviewOffset_left = $a4l_mapOffset_left;
+$a4l_overviewOffset_bottom = $a4l_mapOffset_bottom;
+
+$a3p_overviewOffset_left = $a3p_mapOffset_left;
+$a3p_overviewOffset_bottom = $a3p_mapOffset_bottom;
+
+$a3l_overviewOffset_left = $a3l_mapOffset_left;
+$a3l_overviewOffset_bottom = $a3l_mapOffset_bottom;
+
+$a2p_overviewOffset_left = $a2p_mapOffset_left;
+$a2p_overviewOffset_bottom = $a2p_mapOffset_bottom;
+
+$a2l_overviewOffset_left = $a2l_mapOffset_left;
+$a2l_overviewOffset_bottom = $a2l_mapOffset_bottom;
+
+$a1p_overviewOffset_left = $a1p_mapOffset_left;
+$a1p_overviewOffset_bottom = $a1p_mapOffset_bottom;
+
+$a1l_overviewOffset_left = $a1l_mapOffset_left;
+$a1l_overviewOffset_bottom = $a1l_mapOffset_bottom;
+
+$a0p_overviewOffset_left = $a0p_mapOffset_left;
+$a0p_overviewOffset_bottom = $a0p_mapOffset_bottom;
+
+$a0l_overviewOffset_left = $a0l_mapOffset_left;
+$a0l_overviewOffset_bottom = $a0l_mapOffset_bottom;
+
+
+
+/*
+* Northarrow
+*/
+$northarrow = true;
+$northarrowImage = "./img/northarrow.png";
+
+$a4p_northarrow_left = $a4p_mapOffset_left + 160;
+$a4p_northarrow_bottom = $a4p_mapOffset_bottom +2 ;
+
+$a4l_northarrow_left = $a4l_mapOffset_left + 5;
+$a4l_northarrow_bottom = $a4l_mapOffset_bottom + $a4l_map_height - 40;
+
+$a3p_northarrow_left = $a3p_mapOffset_left +5;
+$a3p_northarrow_bottom = $a3p_mapOffset_bottom + $a3p_map_height - 80;
+
+$a3l_northarrow_left = $a3l_mapOffset_left + 5;
+$a3l_northarrow_bottom = $a3l_mapOffset_bottom + $a3l_map_height - 40;
+
+$a2p_northarrow_left = $a2p_mapOffset_left +5;
+$a2p_northarrow_bottom = $a2p_mapOffset_bottom + $a2p_map_height - 80;
+
+$a2l_northarrow_left = $a2l_mapOffset_left + 5;
+$a2l_northarrow_bottom = $a2l_mapOffset_bottom + $a2l_map_height - 80;
+
+$a1p_northarrow_left = $a1p_mapOffset_left +5;
+$a1p_northarrow_bottom = $a1p_mapOffset_bottom + $a1p_map_height - 80;
+
+$a1l_northarrow_left = $a1l_mapOffset_left + 5;
+$a1l_northarrow_bottom = $a1l_mapOffset_bottom + $a1l_map_height - 160;
+
+$a0p_northarrow_left = $a0p_mapOffset_left +5;
+$a0p_northarrow_bottom = $a0p_mapOffset_bottom + $a0p_map_height - 80;
+
+$a0l_northarrow_left = $a0l_mapOffset_left + 5;
+$a0l_northarrow_bottom = $a0l_mapOffset_bottom + $a0l_map_height - 160;
+
+$northarrowImage_width = 15; 
+$northarrowImage_height = 35; 
+
+/*
+* special image for the map-page
+*/
+$special = true;
+$specialImage = "../img/mapbender_oo.png";
+
+$a4p_special_left = $a4p_mapOffset_left + $a4p_map_width - 50 ;
+$a4p_special_bottom = $a4p_mapOffset_bottom + $a4p_map_height + 80; 
+
+$a4l_special_left = $a4l_mapOffset_left + $a4l_map_width - $a4l_header_width + 0.8 * $DPC + 10 ;
+$a4l_special_bottom = $a4l_mapOffset_bottom + 54; 
+
+$a3p_special_left = $a3p_mapOffset_left + $a3p_map_width - $a3p_header_width ;
+$a3p_special_bottom = $a3p_mapOffset_bottom + 30; 
+
+$a3l_special_left = $a3l_mapOffset_left + $a3l_map_width - $a3l_header_width + 0.8 * $DPC + 10;
+$a3l_special_bottom = $a3l_mapOffset_bottom + 60; 
+
+$a2p_special_left = $a2p_mapOffset_left + $a2p_map_width - $a2p_header_width + 0.1 *$DPC ;
+$a2p_special_bottom = $a2p_mapOffset_bottom + 110; 
+
+$a2l_special_left = $a2l_mapOffset_left + $a2l_map_width - $a2l_header_width + 0.2 * $DPC ;
+$a2l_special_bottom = $a2l_mapOffset_bottom + 110; 
+
+$a1p_special_left = $a1p_mapOffset_left + $a1p_map_width - $a1p_header_width + 0.1 *$DPC ;
+$a1p_special_bottom = $a1p_mapOffset_bottom + 110; 
+
+$a1l_special_left = $a1l_mapOffset_left + $a1l_map_width - $a1l_header_width + 0.2 * $DPC ;
+$a1l_special_bottom = $a1l_mapOffset_bottom + 110; 
+
+$a0p_special_left = $a0p_mapOffset_left + $a0p_map_width - $a0p_header_width + 0.1 *$DPC ;
+$a0p_special_bottom = $a0p_mapOffset_bottom + 110; 
+
+$a0l_special_left = $a0l_mapOffset_left + $a0l_map_width - $a0l_header_width + 0.2 * $DPC ;
+$a0l_special_bottom = $a0l_mapOffset_bottom + 110; 
+
+$specialImage_width = 65; 
+$specialImage_height = 15;  
+
+
+/*
+* dynamic scalebar
+*/
+$scalebar = true;
+$units = "Meter";
+
+$a4p_scalebar_left = $a4p_mapOffset_left + 2 * $a4p_map_width/3;
+$a4p_scalebar_bottom = $a4p_mapOffset_bottom  + 0.5 * $DPC;
+
+$a4l_scalebar_left = $a4l_mapOffset_left + $a4l_map_width/4 ;
+$a4l_scalebar_bottom = $a4l_mapOffset_bottom +  + 0.5 * $DPC;
+
+$a3p_scalebar_left = $a3p_mapOffset_left  + $a3p_map_width/4 ;
+$a3p_scalebar_bottom = $a3p_mapOffset_bottom + 0.5 * $DPC;
+
+$a3l_scalebar_left = $a3l_mapOffset_left  + $a3l_map_width/4 ;
+$a3l_scalebar_bottom = $a3l_mapOffset_bottom +  + 0.5 * $DPC;
+
+$a2p_scalebar_left = $a2p_mapOffset_left  + $a2p_map_width/4 ;
+$a2p_scalebar_bottom = $a2p_mapOffset_bottom + 0.5 * $DPC;
+
+$a2l_scalebar_left = $a2l_mapOffset_left  + $a2l_map_width/4 ;
+$a2l_scalebar_bottom = $a2l_mapOffset_bottom +  + 0.5 * $DPC;
+
+$a1p_scalebar_left = $a1p_mapOffset_left  + $a1p_map_width/4 ;
+$a1p_scalebar_bottom = $a1p_mapOffset_bottom + 0.5 * $DPC;
+
+$a1l_scalebar_left = $a1l_mapOffset_left  + $a1l_map_width/4 ;
+$a1l_scalebar_bottom = $a1l_mapOffset_bottom +  + 0.5 * $DPC;
+
+$a0p_scalebar_left = $a0p_mapOffset_left  + $a0p_map_width/4 ;
+$a0p_scalebar_bottom = $a0p_mapOffset_bottom + 0.5 * $DPC;
+
+$a0l_scalebar_left = $a0l_mapOffset_left  + $a0l_map_width/4 ;
+$a0l_scalebar_bottom = $a0l_mapOffset_bottom +  + 0.5 * $DPC;
+
+$scalebar_width = 3 * $DPC;
+$scalebar_height = 0.18 * $DPC;
+ 
+
+?>
\ No newline at end of file



More information about the Mapbender_commits mailing list