AnsweredAssumed Answered

Why is ESRI 10.2.1 ignoring XYTolerance/Resolution in my Feature Class

Question asked by micsbjc on Oct 9, 2017

I have a 10.2.1 Feature class defined in a SQL 2016 Enterprise Geodatabase..

 

XY Resolution 0.000000016065314

XY Tolerance 0.0000000032130629

My expectation was that when I updated rows in this Feature class that these specifications would be honoured.

When this did not happen I tried adding appropriate environment variables, but ESRI still seems to be using some default values.

The following code attempts to update 10 rows defining squares that are offset by 0.0001 degrees

 

 

#arcpy.env.XYResolution = "0.000002 Meters"
#arcpy.env.XYTolerance = "0.00002 Meters"
basex= 95
basey = 0
Initialx = 0.01
Initialy = 0.01
incX = 0.0001
incY = 0.0001
count = 10
layerpath = "pointing to a feature class with resolution/tolerance of 0.000000016065314/0.0000000032130629""
for c in range(0,count):
                genum = 4040030 + c
                where = "GE_NUM = " + str(genum)
                print where
                cursor1 = arcpy.da.UpdateCursor(layerpath,["SHAPE@"],where)
                x = basex + (c * incX)
                y = basey + (c * incY)
                x1 = basex + Initialx + (c * incX)
                y1 = basey + Initialy + (c * incY)
                for row in cursor1:
                                array = arcpy.Array([arcpy.Point(x,y),
                                    arcpy.Point(x,y1),
                                    arcpy.Point(x1,y1),
                                    arcpy.Point(x1,y),
                                    arcpy.Point(x,y)])
                                polygon = arcpy.Polygon(array)
                                cursor1.updateRow([polygon])
                del cursor1
My expectation is that it will create 10 shapes each .0001 degrees apart.
What I get is pairs of shapes each .0002 degrees apart
From my understanding it would appear that ESRI is ignoring the Resolution/Tolerance specified for the feature class.
Uncommenting the XYResolution/XYTolerance statements has no effect either.
What am I missing?

Outcomes