svn commit: r813 - trunk/mapbender/http/extensions/geom2wfst.php

christoph at osgeo.org christoph at osgeo.org
Mon Nov 6 05:33:10 EST 2006


Author: christoph
Date: 2006-11-06 10:33:10+0000
New Revision: 813

Modified:
   trunk/mapbender/http/extensions/geom2wfst.php

Log:
added exception for wfs errors

Modified: trunk/mapbender/http/extensions/geom2wfst.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/extensions/geom2wfst.php?view=diff&rev=813&p1=trunk/mapbender/http/extensions/geom2wfst.php&p2=trunk/mapbender/http/extensions/geom2wfst.php&r1=812&r2=813
==============================================================================
--- trunk/mapbender/http/extensions/geom2wfst.php	(original)
+++ trunk/mapbender/http/extensions/geom2wfst.php	2006-11-06 10:33:10+0000
@@ -19,7 +19,8 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."../classes/class_mb_exception.php");
 echo '<meta http-equiv="Content-Type" content="text/html; charset='.CHARSET.'">';	
 ?>
 <title>Test WFS-T operated by CCGIS</title>
@@ -84,6 +85,7 @@
 	#echo "wfsWindow.document.getElementsByTagName('body')[0].innerHTML = '".addslashes($result)."';";
 	#echo "wfsWindow.document.close();";
 	echo $result;
+	$e = new mb_exception('WFS error at '.$arURL.' - error message: '.$result);
 	echo "<script language='javascript'>";
 	echo "window.focus();";
 	echo "alert('An error has occured.');\n";




More information about the Mapbender_commits mailing list