コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }