[Mapbender-commits] r5826 - branches/2.5/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Mar 22 10:19:36 EDT 2010


Author: christoph
Date: 2010-03-22 10:19:36 -0400 (Mon, 22 Mar 2010)
New Revision: 5826

Modified:
   branches/2.5/http/javascripts/mod_poi.php
Log:
added polygon

Modified: branches/2.5/http/javascripts/mod_poi.php
===================================================================
--- branches/2.5/http/javascripts/mod_poi.php	2010-03-22 14:18:33 UTC (rev 5825)
+++ branches/2.5/http/javascripts/mod_poi.php	2010-03-22 14:19:36 UTC (rev 5826)
@@ -277,6 +277,9 @@
 		$sql = "Select * FROM ".$table[$i]." LIMIT 1";
 		$res = pg_query($con,$sql);
 
+		if(strtoupper($type) =='POLYGON'){
+			$sql1 = "SELECT '". $layername[$i]."' as fkey_md_fileidentifier,".$search_result[$i].", '".$wms_title[$i]."' as wms_title, X(Centroid(the_geom)) as x,Y(Centroid(the_geom)) as y  FROM ".$table[$i];
+		}
 		if(mb_strtoupper($type) =='MULTIPOLYGON'){
 			$sql1 = "SELECT '". $layername[$i]."' as fkey_md_fileidentifier,".$search_result[$i].", '".$wms_title[$i]."' as wms_title, X(Centroid(the_geom)) as x,Y(Centroid(the_geom)) as y  FROM ".$table[$i];
 		}
@@ -348,4 +351,4 @@
 }
 ?>
 </body>
-</html>
\ No newline at end of file
+</html>



More information about the Mapbender_commits mailing list