[Mapbender-commits] r6933 - trunk/mapbender/tools

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Sep 23 07:08:16 EDT 2010


Author: astrid_emde
Date: 2010-09-23 11:08:16 +0000 (Thu, 23 Sep 2010)
New Revision: 6933

Modified:
   trunk/mapbender/tools/mapFiler.php
Log:
Version 3.0: enhancement replace WIDTH, MINWIDTH, MAXWIDTH. SYMBOLSCALEDENOM, LABELMINSCALEDENOM, LABELMAXSCALE

Modified: trunk/mapbender/tools/mapFiler.php
===================================================================
--- trunk/mapbender/tools/mapFiler.php	2010-09-23 07:44:16 UTC (rev 6932)
+++ trunk/mapbender/tools/mapFiler.php	2010-09-23 11:08:16 UTC (rev 6933)
@@ -14,13 +14,14 @@
   </script>
   </head>
   <body>
-  <form name='form1' action='<?php echo $_SERVER["SCRIPT_NAME"]; ?>' method='POST'>
-	<b>MapFiler Version 0.2 for UMN MapServer 5.x </b>
-	<br><br>changes in Version 0.2
-	<li>multiplicate MAXSIZE with factor</li>
-	<li>division SYMBOLSCALE by factor</li>
-	<li>multiplicate WIDTH with factor</li>
+  <form name='form1' action='<?php $PHP_SELF ?>' method='POST'>
+	<b>MapFiler Version 0.3 for UMN MapServer 5.4.x </b>
+	<br><br>changes in Version 0.3
+	<li>multiplicate SIZE MAXSIZE MINSIZE with factor</li>
+	<li>division SYMBOLSCALEDENOM by factor</li>
+	<li>multiplicate WIDTH MINWIDTH MAXWIDTH with factor</li>
 	<li>division MINSCALEDENOM and MAXSCALEDENOM by factor  </li>
+	<li>division LABELMINSCALEDENOM and LABELMAXSCALEDENOM by factor  </li>	
 	<br>
   
   <table>
@@ -82,31 +83,54 @@
 			if(count($matches) <= 2){ 
 				fputs($myNewContent, str_replace($matches[1], multiplicate($matches[1]), $myLine));
 			}
-		}                       
+		}
+		else if(preg_match("/\bMAXWIDTH\s*(\d+.?\d*)\s*/i",$myLine,$matches)){
+			if(count($matches) <= 2){ 
+				fputs($myNewContent, str_replace($matches[1], multiplicate($matches[1]), $myLine));
+			}
+		} 
+		else if(preg_match("/\bMINWIDTH\s*(\d+.?\d*)\s*/i",$myLine,$matches)){
+			if(count($matches) <= 2){ 
+				fputs($myNewContent, str_replace($matches[1], multiplicate($matches[1]), $myLine));
+			}
+		}		
 		else if(preg_match("/\bWIDTH\s*(\d+.?\d*)\s*/i",$myLine,$matches)){ 
 			//fputs($myNewContent, "# ". $myLine);
 			if(count($matches) <= 2){ 
 				fputs($myNewContent, str_replace($matches[1], multiplicate($matches[1]), $myLine));
 			}
 		}
-		else if(preg_match("/\bSYMBOLSCALE\s*(\d+.?\d*)\s*/i",$myLine,$matches)){ 
+		else if(preg_match("/\bSYMBOLSCALEDENOM\s*(\d+.?\d*)\s*/i",$myLine,$matches)){ 
 			//fputs($myNewContent, "# ". $myLine);
 			if(count($matches) <= 2){ 
 				fputs($myNewContent, str_replace($matches[1], division($matches[1]), $myLine));
 			}
 		}
-		else if(preg_match("/\bMINSCALE\s*(\d+.?\d*)\s*/i",$myLine,$matches)){ 
+		else if(preg_match("/\bMINSCALEDENOM\s*(\d+.?\d*)\s*/i",$myLine,$matches)){ 
 			//fputs($myNewContent, "# ". $myLine);
 			if(count($matches) <= 2){ 
 				fputs($myNewContent, str_replace($matches[1], division($matches[1]), $myLine));
 			}
 		}
-		else if(preg_match("/\bMAXSCALE\s*(\d+.?\d*)\s*/i",$myLine,$matches)){ 
+		else if(preg_match("/\bLABELMAXSCALEDENOM\s*(\d+.?\d*)\s*/i",$myLine,$matches)){ 
 			//fputs($myNewContent, "# ". $myLine);
 			if(count($matches) <= 2){ 
 				fputs($myNewContent, str_replace($matches[1], division($matches[1]), $myLine));
 			}
 		}				
+		else if(preg_match("/\bLABELMINSCALEDENOM\s*(\d+.?\d*)\s*/i",$myLine,$matches)){ 
+			//fputs($myNewContent, "# ". $myLine);
+			if(count($matches) <= 2){ 
+				fputs($myNewContent, str_replace($matches[1], division($matches[1]), $myLine));
+			}
+		}
+		else if(preg_match("/\bMAXSCALEDENOM\s*(\d+.?\d*)\s*/i",$myLine,$matches)){ 
+			//fputs($myNewContent, "# ". $myLine);
+			if(count($matches) <= 2){ 
+				fputs($myNewContent, str_replace($matches[1], division($matches[1]), $myLine));
+			}
+		}				
+
 		else if(preg_match("/\bSYMBOLSET\s*(.*)/i",$myLine,$matches)){ //noch nicht fertig
 			$arraySymbolFiles[$countSymbolsFiles] = str_replace("\"","",$matches[1]);
 			$countSymbolsFiles++;



More information about the Mapbender_commits mailing list