ITopologicalOperator2 operation Simplify taking very long in ArcGIS 10.3.1

المشرف العام

Administrator
طاقم الإدارة
I have a method that does a simplify of geometries. I have used this common code since ArGIS 9.2 without issues and it still works fine in ArGIS 10.2.2. Recently I upgraded a project to 10.3.1 and the .Simplify on the topology will every know and again freeze for anything between 30s - 3 minutes. It doesn't happen every time and I have tested this on a simply polygon feature in a file geodatabase. Testing this on the same polygon feature in ArcGIS 10.2.2 does not give the performance issue. The code I use is:

public IGeometry GetSimplifiedGeometry(IGeometry inGeometry) { var topo2 = inGeometry as ITopologicalOperator2; if (topo2 == null) { inGeometry.SnapToSpatialReference(); return inGeometry; } topo2.IsKnownSimple_2 = false; topo2.Simplify(); inGeometry.SnapToSpatialReference(); return topo2 as IGeometry; }Does anyone know what the problem could be?



أكثر...
 
أعلى