public static void UnionShapes() { IFeatureSet fs = FeatureSet.Open(@"C:\[Your File Path]\Centroids.shp"); IFeatureSet result = fs.UnionShapes(ShapeRelateType.Intersecting); result.SaveAs(@"C:\[Your File Path]\Municipalities_Test.shp", true); }
public void UnionFeatureSetTest() { var file = Path.Combine(_shapefiles, @"Topology_Test.shp"); IFeatureSet fs = FeatureSet.Open(file); var union = fs.UnionShapes(ShapeRelateType.Intersecting); Assert.IsNotNull(union); Assert.IsTrue(union.Features.Count > 0); }