[fusion-commits] r2535 - trunk/widgets/SelectWithin
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu May 3 06:15:16 EDT 2012
Author: liuar
Date: 2012-05-03 03:15:16 -0700 (Thu, 03 May 2012)
New Revision: 2535
Modified:
trunk/widgets/SelectWithin/SelectWithin.php
Log:
Submit on behalf of Spark Liu: Fix for ticket 522.
Last submit shows a not-user-friendly message when there is error during selection. This submission fixes this.
Modified: trunk/widgets/SelectWithin/SelectWithin.php
===================================================================
--- trunk/widgets/SelectWithin/SelectWithin.php 2012-04-30 19:56:16 UTC (rev 2534)
+++ trunk/widgets/SelectWithin/SelectWithin.php 2012-05-03 10:15:16 UTC (rev 2535)
@@ -100,7 +100,7 @@
$properties->extents->miny = $oMin->GetY();
$properties->extents->maxx = $oMax->GetX();
$properties->extents->maxy = $oMax->GetY();
- } else { echo "/* no extents */"; }
+ } else { echo "<Message>no extents</Message>"; }
//get properties for individual features
$result->layers = array();
@@ -123,11 +123,11 @@
/*save selection in the session*/
$_SESSION['selection_array'] = $properties;
echo str_replace("</FeatureSet>", "</FeatureSet></FeatureInformation>", str_replace("<FeatureSet", "<FeatureInformation><FeatureSet", $resultSel->ToXml()));
- } else { echo "<!--layers false or 0-->"; }
- } else { echo "<!--no resultsel-->"; }
- } else { echo "<!--no fi-->"; }
- } else { echo "<!--no multi geom-->"; }
- } else { echo "<!--no layers-->"; }
+ } else { echo "<Message>layers false or 0</Message>"; }
+ } else { echo "<Message>no resultsel</Message>"; }
+ } else { echo "<Message>no fi</Message>"; }
+ } else { echo "<Message>no multi geom</Message>"; }
+ } else { echo "<Message>no layers</Message>"; }
//return XML
header("Content-type: text/xml");
More information about the fusion-commits
mailing list