Get clipped polygon area using ArcObject Issue ("Exception from HRESULT: 0x80040215")

المشرف العام

Administrator
طاقم الإدارة
Get clipped polygon area using ArcObject Issue ("Exception from HRESULT: 0x80040215")

I try to get clipped polyline area using arcobject. My code is here

var topologicalOperator = routePolyline as ITopologicalOperator;var routeBufferPolygon = topologicalOperator.Buffer(args.BufferDistance) as IPolygon;ISpatialFilter sf = new SpatialFilterClass();sf.GeometryField = fc.ShapeFieldName;sf.Geometry = routeBufferPolygon;sf.SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects;// Execute the query and iterate through the cursor's results.IFeatureCursor resultsFeatureCursor = fc.Search(sf, true);IFeature resultsFeature = null;while ((resultsFeature = resultsFeatureCursor.NextFeature()) != null){ // Clip the geometry. IPolygon clippedResultsGeometry = (IPolygon) topologicalOperator.Intersect(resultsFeature.Shape, ESRI.ArcGIS.Geometry.esriGeometryDimension.esriGeometry2Dimension); // I faced som problem here "Exception from HRESULT: 0x80040215" IArea area = (IArea)clippedResultsGeometry;}

أكثر...
 
أعلى