/// <summary> /// This method will create a new IFeatureSet with the the shapes that intersect merged into single shapes, /// or else it will return a new featureset where EVERY shape is unioned into a single, multi-part shape. /// </summary> /// <param name="self">The source of features to union</param> /// <param name="style">This controls whether intersecting or all features are unioned</param> /// <returns>An IFeatureSet with the unioned shapes.</returns> public static IFeatureSet UnionShapes(this IFeatureSet self, ShapeRelateType style) { if (style == ShapeRelateType.Intersecting) { return(UnionIntersecting(self)); } return(UnionAll(self)); }
/// <summary> /// This method will create a new IFeatureSet with the the shapes that intersect merged into single shapes, /// or else it will return a new featureset where EVERY shape is unioned into a single, multi-part shape. /// </summary> /// <param name="self">The source of features to union</param> /// <param name="style">This controls whether intersecting or all features are unioned</param> /// <returns>An IFeatureSet with the unioned shapes.</returns> public static IFeatureSet UnionShapes(this IFeatureSet self, ShapeRelateType style) { if (style == ShapeRelateType.Intersecting) { return UnionIntersecting(self); } return UnionAll(self); }