We use sql spatial and come across the self intersecting error in ArcMap, typically after intersecting two featureclasses using STIntersection(). One way we fix the issue is to use Reduce() to minimize the vertex count and that may resolve the self intersecting error or by using STBuffer(). We have issues with godzilla polygons and using reduce will remove allot of vertices without changing the area significantly. We manage our data in acres with 2 decimal places and using Reduce(.01) works well. If you use STBuffer(), it ensures esri reads the sql geometry as a polygon instead of mixed, some records as polygon and some as point or lines. Adding a very small buffer works for us but I understand it may not for others. example: a.shape.Reduce(.01).STBuffer(.01) as SHAPE
C:\>sdequery -l testshape2,shape -F1 SM_II:line:531404.44,104177.02,531401.59,104168.47 -v ArcSDE 9.3 Generic Query Tool Thu Dec 30 08:53:42 2010 ------------------------------------------------------------------------ 1 objectid: 5 shape: Line shape (1 part, 2 vertices) 1 531404.440000, 104177.020000 2 531401.590000, 104168.470000 2 objectid: 6 shape: Line shape (1 part, 2 vertices) 1 531401.590000, 104168.470000 2 531401.600000, 104168.500000 2 rows found in 31.00 ms C:\>sdequery -l testshape2,shape -F1 SM_II:line:531401.59,104168.47,531401.60,104168.50 -v ArcSDE 9.3 Generic Query Tool Thu Dec 30 08:53:42 2010 ------------------------------------------------------------------------ 1 objectid: 5 shape: Line shape (1 part, 2 vertices) 1 531404.440000, 104177.020000 2 531401.590000, 104168.470000 2 objectid: 6 shape: Line shape (1 part, 2 vertices) 1 531401.590000, 104168.470000 2 531401.600000, 104168.500000 2 rows found in 47.00 ms
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.