char_decode(_mb("Legend")); $legendFooter = $admin->char_decode(_mb("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 $new_comment1 = $admin->char_decode($_REQUEST["comment1"]); $new_comment2 = $admin->char_decode($_REQUEST["comment2"]); $text1 = $admin->char_decode(_mb("Print preview")); $text2 = "Mapbender"; $text3 = ""; $text4 = $admin->char_decode(_mb("Scale 1:")). " ".$_REQUEST["map_scale"]; $text5 = $admin->char_decode(_mb("Date")) . ": ".date("d.m.Y",strtotime("now")); $text6 = $admin->char_decode(_mb("Notes")).":"; $text7 = ""; $text8 = $new_comment1; $text9 = $new_comment2; $text10 = ""; $text11 = $admin->char_decode(_mb("This copy has been generated automatically and is valid without signature.")); $text12 = $admin->char_decode(_mb("This copy is protected by law (Par. 3 Abs. 1 VermKatG NW). It can be duplicated, modified, published or be passed to third parties only in agreement with")); $text13 = $admin->char_decode(_mb("the publisher, except duplicates and modifications aimed at internal use of government agencies or private use.")); $text14 = $admin->char_decode(_mb("This copy is protected by law (Par. 3 Abs. 1 VermKatG NW).")); $text15 = $admin->char_decode(_mb("It can be duplicated, modified, published or be passed to third parties only in")); $text16 = $admin->char_decode(_mb("agreement with the publisher except duplicates and modifications")); $text17 = $admin->char_decode(_mb("aimed at internal use of government agencies or private use.")); /* * Labeling for buttons, textfields ... */ $label_format = _mb("Format"); $label_format_a4 = "A4"; $label_format_a3 = "A3"; $label_format_a2 = "A2"; $label_format_a1 = "A1"; $label_format_a0 = "A0"; $label_orientation = _mb("Orientation"); $label_portrait = _mb("portrait"); $label_landscape = _mb("landscape"); $label_quality = _mb("Quality"); $label_72dpi = sprintf(_mb("Quality: %d dpi"), 72); $label_288dpi = sprintf(_mb("Quality: %d dpi"), 288); $label_comment1 = _mb("Comment")." 1:"; $label_comment2 = _mb("Comment")." 2:"; $comment1_length = 30; $comment2_length = 30; $label_button = _mb("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; ?>