Union Tool

Jul 29, 2013 at 3:13 PM
I am trying to union all shapes in a shapefile using to following command: polygon.UnionShapes(ShapeRelateType.All). However, I am getting the following errors with the Union function:

DotSpatial.Topology.TopologyException: Side location conflict at [ DotSpatial.Topology.Coordinate ]
at DotSpatial.Topology.GeometriesGraph.EdgeEndStar.PropagateSideLabels(Int32 geomIndex) in E:\dev\dotSpatial\DotSpatial.Topology\GeometryGraph\EdgeEndStar.cs:line 352
at DotSpatial.Topology.GeometriesGraph.EdgeEndStar.ComputeLabelling(GeometryGraph[] geom) in E:\dev\dotSpatial\DotSpatial.Topology\GeometryGraph\EdgeEndStar.cs:line 184
at DotSpatial.Topology.GeometriesGraph.DirectedEdgeStar.ComputeLabelling(GeometryGraph[] geom) in E:\dev\dotSpatial\DotSpatial.Topology\GeometryGraph\DirectedEdgeStar.cs:line 137
at DotSpatial.Topology.Operation.Overlay.OverlayOp.ComputeLabelling() in E:\dev\dotSpatial\DotSpatial.Topology\Operation\Overlay\OverlayOp.cs:line 397
at DotSpatial.Topology.Operation.Overlay.OverlayOp.ComputeOverlay(SpatialFunction opCode) in E:\dev\dotSpatial\DotSpatial.Topology\Operation\Overlay\OverlayOp.cs:line 199
at DotSpatial.Topology.Operation.Overlay.OverlayOp.GetResultGeometry(SpatialFunction funcCode) in E:\dev\dotSpatial\DotSpatial.Topology\Operation\Overlay\OverlayOp.cs:line 164
at DotSpatial.Topology.Operation.Overlay.OverlayOp.Overlay(IGeometry geom0, IGeometry geom1, SpatialFunction opCode) in E:\dev\dotSpatial\DotSpatial.Topology\Operation\Overlay\OverlayOp.cs:line 113
at DotSpatial.Topology.Geometry.Union(IGeometry other) in E:\dev\dotSpatial\DotSpatial.Topology\Geometry.cs:line 866
at DotSpatial.Data.FeatureExt.Union(IFeature self, IFeature other) in E:\dev\dotSpatial\DotSpatial.Data\FeatureExt.cs:line 729
at DotSpatial.Data.FeatureExt.Union(IFeature self, IFeature other, IFeatureSet destinationFeatureSet, FieldJoinType joinType) in E:\dev\dotSpatial\DotSpatial.Data\FeatureExt.cs:line 761
at DotSpatial.Data.FeatureSetExt.UnionAll(IFeatureSet fs) in E:\dev\dotSpatial\DotSpatial.Data\FeatureSetExt.cs:line 185
at DotSpatial.Data.FeatureSetExt.UnionShapes(IFeatureSet self, ShapeRelateType style) in E:\dev\dotSpatial\DotSpatial.Data\FeatureSetExt.cs:line 174
at test.mytools.ClipRaster.ClipRasterWithPolygon(IFeatureSet polygon, IRaster input, String outputFileName, ICancelProgressHandler cancelProgressHandler)

Can anyone tell me why I am receiving these errors and what I can do to fix them?

Travis