[fusion-commits] r2536 - sandbox/adsk/2.3r/widgets/SelectWithin

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu May 3 06:17:07 EDT 2012


Author: liuar
Date: 2012-05-03 03:17:07 -0700 (Thu, 03 May 2012)
New Revision: 2536

Modified:
   sandbox/adsk/2.3r/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: sandbox/adsk/2.3r/widgets/SelectWithin/SelectWithin.php
===================================================================
--- sandbox/adsk/2.3r/widgets/SelectWithin/SelectWithin.php	2012-05-03 10:15:16 UTC (rev 2535)
+++ sandbox/adsk/2.3r/widgets/SelectWithin/SelectWithin.php	2012-05-03 10:17:07 UTC (rev 2536)
@@ -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