Hi,
I have a Tab file that is ONE intricate polygon.
I am trying to see if a user drawn shape crosses the polygon with the following code:
If DataTabLayer.FeatureSource.GetAllFeatures(ReturningColumnsType.NoColumns)(0).GetShape().Crosses(UserDrawnShape) = False Then
Could it be that the polygon is too big ?
That line causes the below error.
GisSharpBlog.NetTopologySuite.Geometries.TopologyException was unhandled by user code
Message=side location conflict [ (2068656.2199834, -4007556.71024315, NaN) ]
Source=NetTopologySuite
StackTrace:
at GisSharpBlog.NetTopologySuite.GeometriesGraph.EdgeEndStar.PropagateSideLabels(Int32 geomIndex)
at GisSharpBlog.NetTopologySuite.GeometriesGraph.EdgeEndStar.ComputeLabelling(GeometryGraph[] geom)
at GisSharpBlog.NetTopologySuite.Operation.Relate.RelateComputer.LabelNodeEdges()
at GisSharpBlog.NetTopologySuite.Operation.Relate.RelateComputer.ComputeIM()
at GisSharpBlog.NetTopologySuite.Operation.Relate.RelateOp.get_IntersectionMatrix()
at GisSharpBlog.NetTopologySuite.Operation.Relate.RelateOp.Relate(IGeometry a, IGeometry b)
at GisSharpBlog.NetTopologySuite.Geometries.Geometry.Relate(IGeometry g)
at GisSharpBlog.NetTopologySuite.Geometries.Geometry.Crosses(IGeometry g)
at ThinkGeo.MapSuite.Core.BaseShape.CrossesCore(BaseShape targetShape)
at ThinkGeo.MapSuite.Core.BaseShape.Crosses(BaseShape targetShape)
at System.Web.UI.ImageClickEventHandler.Invoke(Object sender, ImageClickEventArgs e)
at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException: