[fusion-commits] r2152 - sandbox/adsk/2.2gp/widgets/FeatureInfo
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Apr 23 01:09:00 EDT 2010
Author: liuar
Date: 2010-04-23 01:08:55 -0400 (Fri, 23 Apr 2010)
New Revision: 2152
Modified:
sandbox/adsk/2.2gp/widgets/FeatureInfo/featureinfomain.php
Log:
Port the fix of ticket http://trac.osgeo.org/fusion/ticket/393 to adsk branch
Exception in FDO component when using feature information (Digitize Polygon)
Modified: sandbox/adsk/2.2gp/widgets/FeatureInfo/featureinfomain.php
===================================================================
--- sandbox/adsk/2.2gp/widgets/FeatureInfo/featureinfomain.php 2010-04-22 21:26:05 UTC (rev 2151)
+++ sandbox/adsk/2.2gp/widgets/FeatureInfo/featureinfomain.php 2010-04-23 05:08:55 UTC (rev 2152)
@@ -152,7 +152,15 @@
for (var i = 0; i < polygon.Count; i++) {
points.push(polygon.Point(i).X+' '+polygon.Point(i).Y);
}
+
+ // Close the polygon if it isn't already closed
+ if(polygon.Point(0).X != polygon.Point(polygon.Count - 1).X ||
+ polygon.Point(0).Y != polygon.Point(polygon.Count - 1).Y) {
+ points.push(polygon.Point(0).X+' '+polygon.Point(0).Y);
+ }
+
var geomText = 'POLYGON(('+points.join(',')+'))';
+
SetSpatialFilter(geomText);
}
More information about the fusion-commits
mailing list