[Mapbender-commits] r7353 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Dec 22 04:45:24 EST 2010


Author: christoph
Date: 2010-12-22 01:45:24 -0800 (Wed, 22 Dec 2010)
New Revision: 7353

Modified:
   trunk/mapbender/http/php/mod_digitize_mergePolygon.php
Log:
#672

Modified: trunk/mapbender/http/php/mod_digitize_mergePolygon.php
===================================================================
--- trunk/mapbender/http/php/mod_digitize_mergePolygon.php	2010-12-22 09:35:51 UTC (rev 7352)
+++ trunk/mapbender/http/php/mod_digitize_mergePolygon.php	2010-12-22 09:45:24 UTC (rev 7353)
@@ -40,7 +40,7 @@
 
 $polygonArray = explode(";", $polygonList);
 
-$sql = "SELECT astext(multi(geomunion(geom))) FROM (";
+$sql = "SELECT astext(multi(st_union(geom))) FROM (";
 
 for ($i = 0; $i < count($polygonArray); $i++) {
 	if ($i > 0) {
@@ -50,7 +50,6 @@
 }
 	
 $sql .= ") as a";
-
 $res = db_query($sql);    
 
 $polygonArray = array();
@@ -62,4 +61,4 @@
 
 header("Content-type:application/x-json; charset=utf-8");
 echo $output;
-?>
\ No newline at end of file
+?>



More information about the Mapbender_commits mailing list