[Mapbender-commits] r6823 - branches/2.4.5/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Aug 26 09:41:27 EDT 2010
Author: christoph
Date: 2010-08-26 13:41:27 +0000 (Thu, 26 Aug 2010)
New Revision: 6823
Modified:
branches/2.4.5/http/javascripts/mod_poi.php
Log:
added POLYGON
Modified: branches/2.4.5/http/javascripts/mod_poi.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_poi.php 2010-08-26 13:40:40 UTC (rev 6822)
+++ branches/2.4.5/http/javascripts/mod_poi.php 2010-08-26 13:41:27 UTC (rev 6823)
@@ -283,6 +283,11 @@
$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(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];
}
@@ -354,4 +359,4 @@
}
?>
</body>
-</html>
\ No newline at end of file
+</html>
More information about the Mapbender_commits
mailing list