[fusion-commits] r2697 - trunk/widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Fri May 10 00:09:06 PDT 2013


Author: liuar
Date: 2013-05-10 00:09:06 -0700 (Fri, 10 May 2013)
New Revision: 2697

Modified:
   trunk/widgets/SelectPolygon.js
Log:
Submit on behalf of Andy Zhang.  
Select Polygon: Check vertex count of the polygon before executing query. 




Modified: trunk/widgets/SelectPolygon.js
===================================================================
--- trunk/widgets/SelectPolygon.js	2013-05-10 06:19:02 UTC (rev 2696)
+++ trunk/widgets/SelectPolygon.js	2013-05-10 07:09:06 UTC (rev 2697)
@@ -117,8 +117,11 @@
      *  
      **/
     execute: function(geom) {
-        
         var options = {};
+        var points = geom.getVertices();
+        if (points.length < 3) {
+            return;
+        }
         options.geometry = geom.toString();
         options.selectionType = this.selectionType;
         options.computed = this.bComputeMetadata;



More information about the fusion-commits mailing list