[Mapbender-commits] r1665 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Aug 28 17:37:16 EDT 2007


Author: marcjansen
Date: 2007-08-28 17:37:16 -0400 (Tue, 28 Aug 2007)
New Revision: 1665

Modified:
   trunk/mapbender/http/classes/class_bbox.php
Log:
removed minor typo in exception and added info to exception

Modified: trunk/mapbender/http/classes/class_bbox.php
===================================================================
--- trunk/mapbender/http/classes/class_bbox.php	2007-08-28 21:27:56 UTC (rev 1664)
+++ trunk/mapbender/http/classes/class_bbox.php	2007-08-28 21:37:16 UTC (rev 1665)
@@ -2,7 +2,7 @@
 # $Id$
 # http://www.mapbender.org/index.php/
 # Copyright (C) 2002 CCGIS
-# 
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2, or (at your option)
@@ -23,13 +23,13 @@
 db_select_db(DB,$con);
 
 /**
- * A Mapbender_point is a 2-dimensional point with an EPSG. 
+ * A Mapbender_point is a 2-dimensional point with an EPSG.
  */
 class Mapbender_point {
 	var $x;
 	var $y;
 	var $epsg;
-	
+
 	/**
 	 * @constructor
 	 */
@@ -41,7 +41,7 @@
 		$this->y = $y;
 		$this->epsg = $epsg;
 	}
-	
+
 	/**
 	 * computes a new point with the minimal coordinates of this point and $point
 	 */
@@ -65,7 +65,7 @@
 			$e = new mb_exception("Mapbender_point: cannot process min with different EPSG codes");
 		}
 	}
-	
+
 	/**
 	 * computes a new point with the maximal coordinates of this point and $point
 	 */
@@ -86,10 +86,10 @@
 			return new Mapbender_point($maxx, $maxy, $point1->epsg);
 		}
 		else {
-			$e = new mb_exception("Mapbender_point: cannot process min with different EPSG codes");
+			$e = new mb_exception("Mapbender_point: cannot process max with different EPSG codes");
 		}
 	}
-	
+
 	function isWestOf($point) {
 		if ($this->x < $point->x) {
 			return true;
@@ -118,10 +118,10 @@
 			$this->epsg = $point->epsg;
 		}
 		else {
-			$e = new mb_exception("transformCoordinates needs PostgreSQL");
+			$e = new mb_exception("Mapbender_point: transformCoordinates needs PostgreSQL");
 		}
 	}
-	
+
 	function __toString() {
 		return (string) "(" . $this->x . "," . $this->y . "," . $this->epsg . ")";
 	}
@@ -134,7 +134,7 @@
 	var $min;
 	var $max;
 	var $epsg;
-	
+
 	/**
 	 * @constructor
 	 */
@@ -153,7 +153,7 @@
 			$e = new mb_exception("Mapbender_bbox: min is not southwest of max!");
 		}
 	}
-	
+
 	/**
 	 * Computes a new bounding box, bbox1 UNION bbox2
 	 */
@@ -162,7 +162,7 @@
 			return array_pop($bboxArray);
 		}
 		elseif (count($bboxArray) >= 2) {
-			
+
 			$bbox1 = array_pop($bboxArray);
 			$bbox2 = Mapbender_bbox::union($bboxArray);
 
@@ -192,7 +192,7 @@
 		}
 		return null;
 	}
-	
+
 	/**
 	 * transforms this bbox in another EPSG
 	 */
@@ -216,9 +216,9 @@
 		$e = new mb_exception("Mapbender_bbox: this is not a valid bbox!");
 		return false;
 	}
-	
+
 	function __toString() {
-		return (string) "[" . $this->min . $this->max . " " . $this->epsg . "]"; 
+		return (string) "[" . $this->min . $this->max . " " . $this->epsg . "]";
 	}
 }
 ?>
\ No newline at end of file



More information about the Mapbender_commits mailing list