svn commit: r767 - trunk/mapbender/http/print

astrid_emde at osgeo.org astrid_emde at osgeo.org
Thu Sep 7 06:17:44 EDT 2006


Author: astrid_emde
Date: 2006-09-07 10:17:44+0000
New Revision: 767

Modified:
   trunk/mapbender/http/print/mod_printPDF.php
   trunk/mapbender/http/print/mod_printPDF_pdf.php
   trunk/mapbender/http/print/printPDF.conf
   trunk/mapbender/http/print/printPDF_b.conf

Log:
pdf-print is extended to format A2 (thanks to Frank Haertel and Horst Becker)

Modified: trunk/mapbender/http/print/mod_printPDF.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/print/mod_printPDF.php?view=diff&rev=767&p1=trunk/mapbender/http/print/mod_printPDF.php&p2=trunk/mapbender/http/print/mod_printPDF.php&r1=766&r2=767
==============================================================================
--- trunk/mapbender/http/print/mod_printPDF.php	(original)
+++ trunk/mapbender/http/print/mod_printPDF.php	2006-09-07 10:17:44+0000
@@ -206,6 +206,14 @@
 		if(size == "A3" && format == "landscape"){
 			map_width = <?php echo $a3l_map_width; ?>;
 			map_height = <?php echo $a3l_map_height; ?>;
+		}  
+		if(size == "A2" && format == "portrait"){
+			map_width = <?php echo $a2p_map_width; ?>;
+			map_height = <?php echo $a2p_map_height; ?>;
+		}
+		if(size == "A2" && format == "landscape"){
+			map_width = <?php echo $a2l_map_width; ?>;
+			map_height = <?php echo $a2l_map_height; ?>;
 		}     
 		var pos = pt.makeClickPos2RealWorldPos(target, map_width , map_height);
 		pt.mb_mapObj[ind].extent = coord[0] + "," + pos[1] + "," + pos[0] + "," +  coord[3];
@@ -301,6 +309,9 @@
 	if($a3 == true){
 		echo "<option value='A3'>".$label_format_a3."</option>";
 	}
+	if($a2 == true){
+		echo "<option value='A2'>".$label_format_a2."</option>";
+	}
 ?>
 	</select>
 	</td>   

Modified: trunk/mapbender/http/print/mod_printPDF_pdf.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/print/mod_printPDF_pdf.php?view=diff&rev=767&p1=trunk/mapbender/http/print/mod_printPDF_pdf.php&p2=trunk/mapbender/http/print/mod_printPDF_pdf.php&r1=766&r2=767
==============================================================================
--- trunk/mapbender/http/print/mod_printPDF_pdf.php	(original)
+++ trunk/mapbender/http/print/mod_printPDF_pdf.php	2006-09-07 10:17:44+0000
@@ -182,6 +182,12 @@
 }elseif ($size == "A3" && $format == "landscape"){
 	$overview_left = $a3l_overviewOffset_left;
 	$overview_bottom = $a3l_overviewOffset_bottom;
+}elseif ($size == "A2" && $format == "portrait"){
+	$overview_left = $a2p_overviewOffset_left;
+	$overview_bottom =$a2p_overviewOffset_bottom;
+}elseif ($size == "A2" && $format == "landscape"){
+	$overview_left = $a2l_overviewOffset_left;
+	$overview_bottom = $a2l_overviewOffset_bottom;
 }
 
 $o_extent = $o_url->get("BBOX");
@@ -216,6 +222,12 @@
 }elseif ($size == "A3" && $format == "landscape"){
 	$northarrow_left = $a3l_northarrow_left;
 	$northarrow_bottom = $a3l_northarrow_bottom;
+}elseif ($size == "A2" && $format == "portrait"){
+	$northarrow_left = $a2p_northarrow_left;
+	$northarrow_bottom = $a2p_northarrow_bottom;
+}elseif ($size == "A2" && $format == "landscape"){
+	$northarrow_left = $a2l_northarrow_left;
+	$northarrow_bottom = $a2l_northarrow_bottom;
 }
 
 /*
@@ -233,6 +245,12 @@
 }elseif ($size == "A3" && $format == "landscape"){
 	$specialImage_left = $a3l_special_left;
 	$specialImage_bottom = $a3l_special_bottom;
+}elseif ($size == "A2" && $format == "portrait"){
+	$specialImage_left = $a2p_special_left;
+	$specialImage_bottom = $a2p_special_bottom;
+}elseif ($size == "A2" && $format == "landscape"){
+	$specialImage_left = $a2l_special_left;
+	$specialImage_bottom = $a2l_special_bottom;
 }
 
 if($log == true){
@@ -454,6 +472,12 @@
 	}elseif ($size == "A3" && $format == "landscape"){
 		$scalebar_left = $a3l_scalebar_left;
 		$scalebar_bottom = $a3l_scalebar_bottom;
+	}elseif ($size == "A2" && $format == "portrait"){
+		$scalebar_left = $a2p_scalebar_left;
+		$scalebar_bottom = $a2p_scalebar_bottom;
+	}elseif ($size == "A2" && $format == "landscape"){
+		$scalebar_left = $a2l_scalebar_left;
+		$scalebar_bottom = $a2l_scalebar_bottom;
 	}
 	
 	$array_scalebar = setscalebar($map_scale);

Modified: trunk/mapbender/http/print/printPDF.conf
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/print/printPDF.conf?view=diff&rev=767&p1=trunk/mapbender/http/print/printPDF.conf&p2=trunk/mapbender/http/print/printPDF.conf&r1=766&r2=767
==============================================================================
--- trunk/mapbender/http/print/printPDF.conf	(original)
+++ trunk/mapbender/http/print/printPDF.conf	2006-09-07 10:17:44+0000
@@ -1,233 +1,286 @@
-<?php
-include_once("../../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";
-$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
-$text1 = "Druckansicht";
-$text2 = "- Mapbender2 -";
-$text3 = "";
-$text4 = "Maßstab 1 : " . $_REQUEST["map_scale"];
-$text5 = "Datum: " . date("d.m.Y",strtotime("now"));;
-
-$text6 = "Notizen:";
-$text7 = "";
-$text8 = $_REQUEST["comment1"];
-$text9 = $_REQUEST["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_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 = false;
-$highqualitymapfiles = array(
-	"/data/umn/germany/germany.map",
-	"/data/umn/germany/germany_demo.map"
-);
-
-# Dots per cm (72 dpi):
-# 28.346456692913385826771653543307 
-$DPC = 28.35;
-
-# available formats:
-$a4 = true;
-$a3 = 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;
-
-
-/*
-* 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;
-
-/*
-* 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;
-
-$northarrowImage_width = 15; 
-$northarrowImage_height = 35; 
-
-/*
-* special image for the map-page
-*/
-$special = true;
-$specialImage = "./img/mapbender_logo.png";
-$a4p_special_left = $a4p_mapOffset_left + $a4p_map_width/2 + 100;
-$a4p_special_bottom = $a4p_mapOffset_bottom + $a4p_map_height + 65; 
-
-$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; 
-
-$specialImage_width = 90; 
-$specialImage_height = 13; 
-
-
-/*
-* 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;
-
-$scalebar_width = 3 * $DPC;
-$scalebar_height = 0.18 * $DPC;
- 
-
-?>
\ No newline at end of file
+<?php
+
+include_once("../../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";
+$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
+$text1 = "Druckansicht";
+$text2 = "- Mapbender -";
+$text3 = "";
+$text4 = "Maßstab 1 : " . $_REQUEST["map_scale"];
+$text5 = "Datum: " . date("d.m.Y",strtotime("now"));;
+
+$text6 = "Notizen:";
+$text7 = "";
+$text8 = $_REQUEST["comment1"];
+$text9 = $_REQUEST["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 = '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(
+	"/opt/umn/remscheid/liegenschaftskarte/liegenschaftskarte.map",
+	"/data/umn/germany/germany_demo.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_logo.png";
+
+$a4p_special_left = $a4p_mapOffset_left + $a4p_map_width/2 + 100;
+$a4p_special_bottom = $a4p_mapOffset_bottom + $a4p_map_height + 65; 
+
+$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 = 90; 
+$specialImage_height = 13; 
+
+
+/*
+* 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;
+ 
+
+?>

Modified: trunk/mapbender/http/print/printPDF_b.conf
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/print/printPDF_b.conf?view=diff&rev=767&p1=trunk/mapbender/http/print/printPDF_b.conf&p2=trunk/mapbender/http/print/printPDF_b.conf&r1=766&r2=767
==============================================================================
--- trunk/mapbender/http/print/printPDF_b.conf	(original)
+++ trunk/mapbender/http/print/printPDF_b.conf	2006-09-07 10:17:44+0000
@@ -4,16 +4,15 @@
 # filename for temporary imagefiles
 $filename = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".png";
 
-
 /*
 * DOWNLOAD
 */
-$download = true;
+$download = false;
 $downloadFile = TMPDIR."/map_".substr(md5(uniqid(rand())),0,7).".pdf";
 $downloadText = "Download: Karte als PDF...";
 
 /*
-* run print as iframe or window
+*run print as iframe or window
 */
 $type = 'window';
 
@@ -32,7 +31,6 @@
 $legendImage_height = 13;
 
 
-
 # log requests, class 'class_log.php' required
 $log = false;
 
@@ -41,7 +39,7 @@
 
 # labeling
 $text1 = "Druckansicht";
-$text2 = "- Mapbender2 -";
+$text2 = "- Mapbender -";
 $text3 = "";
 $text4 = "Maßstab 1 : " . $_REQUEST["map_scale"];
 $text5 = "Datum: " . date("d.m.Y",strtotime("now"));;
@@ -52,6 +50,7 @@
 $text9 = $_REQUEST["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.";
@@ -68,6 +67,7 @@
 $label_format = "Format:";
 $label_format_a4 = "A4";
 $label_format_a3 = "A3";
+$label_format_a2 = "A2";
 
 $label_orientation = "Orientation: ";
 $label_portrait = "portrait";
@@ -81,8 +81,6 @@
 
 $label_button = 'print';
 
-
-
 /*
 * default
 * url string matching and replacement
@@ -97,9 +95,10 @@
 * example: germany.map -> germany_4.map
 */
 
-$highquality = false;
+
+$highquality = true;
 $highqualitymapfiles = array(
-	"/data/umn/germany/germany.map",
+	"/opt/umn/remscheid/liegenschaftskarte/liegenschaftskarte.map",
 	"/data/umn/germany/germany_demo.map"
 );
 
@@ -110,6 +109,7 @@
 # available formats:
 $a4 = true;
 $a3 = true;
+$a2 = true;
 
 
 # dimensions of the map:
@@ -134,7 +134,7 @@
 $a4l_header_width = 8.5 * $DPC;
 $a4l_header_height = 6 * $DPC;
         
-# A3 portrait
+# A3 protrait
 $a3p_mapOffset_left = 3.3 * $DPC;
 $a3p_mapOffset_bottom = 3 * $DPC;
 $a3p_map_width = 24.1 * $DPC;
@@ -154,6 +154,27 @@
 $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
 */
@@ -170,6 +191,14 @@
 $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
 */
@@ -188,6 +217,12 @@
 $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; 
 
@@ -196,6 +231,7 @@
 */
 $special = true;
 $specialImage = "./img/mapbender_logo.png";
+
 $a4p_special_left = $a4p_mapOffset_left + $a4p_map_width/2 + 100;
 $a4p_special_bottom = $a4p_mapOffset_bottom + $a4p_map_height + 65; 
 
@@ -208,8 +244,15 @@
 $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 = 90; 
-$specialImage_height = 13;
+$specialImage_height = 13; 
 
 
 /*
@@ -230,7 +273,14 @@
 $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;
  
-?>
\ No newline at end of file
+
+?>




More information about the Mapbender_commits mailing list