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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Aug 29 06:30:48 EDT 2008


Author: verenadiewald
Date: 2008-08-29 06:30:48 -0400 (Fri, 29 Aug 2008)
New Revision: 2898

Modified:
   trunk/mapbender/http/classes/class_gml2.php
Log:
http://trac.osgeo.org/mapbender/ticket/284

Modified: trunk/mapbender/http/classes/class_gml2.php
===================================================================
--- trunk/mapbender/http/classes/class_gml2.php	2008-08-29 10:29:30 UTC (rev 2897)
+++ trunk/mapbender/http/classes/class_gml2.php	2008-08-29 10:30:48 UTC (rev 2898)
@@ -359,7 +359,10 @@
 		elseif ($this->getGeometryTypeFromMember($i) == $this->geomtype_polygon || $this->getGeometryTypeFromMember($i) == $this->geomtype_multipolygon) {
 			$js .= "var current_geomtype = ".$prefix."geomType.polygon;\n";
 		}
-		else die("unknown geometry type: '".$this->getGeometryTypeFromMember($i)."'");
+		else{
+			$e = new mb_notice("unknown geometry type: '".$this->getGeometryTypeFromMember($i)."' or no geometry existing");
+			return "";
+		}	
 		
 		$js .= "var q = new ".$prefix."MultiGeometry(current_geomtype);\n";
 		



More information about the Mapbender_commits mailing list