theoldman73 / tf-net

Automatically exported from code.google.com/p/tf-net
0 stars 0 forks source link

Exception in Geometry.Difference method #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

See example code in attached file.

What is the expected output? What do you see instead?

Expected polygon:
POLYGON((5 0,0 0,0 10,10 10,10 0,5 0,5 3,7 3,7 8,3 8,3 3,5 3,5 0))

See:
Topology.Geometries.TopologyException was unhandled
  Message="side location conflict [ (5, 0, NaN) ]"
  Source="Topology"
  StackTrace:
       at Topology.GeometriesGraph.EdgeEndStar.PropagateSideLabels(Int32
geomIndex)
       at
Topology.GeometriesGraph.EdgeEndStar.ComputeLabelling(GeometryGraph[] geom)
       at
Topology.GeometriesGraph.DirectedEdgeStar.ComputeLabelling(GeometryGraph[]
geom)
       at Topology.Operation.Overlay.OverlayOp.ComputeLabelling()
       at
Topology.Operation.Overlay.OverlayOp.ComputeOverlay(SpatialFunctions opCode)
       at
Topology.Operation.Overlay.OverlayOp.GetResultGeometry(SpatialFunctions
funcCode)
       at Topology.Operation.Overlay.OverlayOp.Overlay(IGeometry geom0,
IGeometry geom1, SpatialFunctions opCode)
       at Topology.Geometries.Geometry.Difference(IGeometry other)
...

What version of the product are you using? On what operating system?
Tf-net: 1.0.8.24721
OS: WinXp SP2
.Net Framework: 2

Original issue reported on code.google.com by IA.Ko...@gmail.com on 26 Feb 2009 at 10:57

Attachments: