Nicccceee so much for relaxing... have several more things to check... the pesky _method and _property etc things
>>> import arcpy
>>> src = r"F:\Testing\AOI_mtm9.shp"
>>> arcpy.env.workspace = "in_memory"
>>>
>>>
>>> SR = arcpy.Describe(src).spatialReference
>>> SR.name
'NAD_1983_CSRS_MTM_9'
>>>
>>>
>>>
>>> cur = arcpy.da.SearchCursor(src, "*", where_clause=None, spatial_reference=SR, explode_to_points=True)
>>> cur._dtype
dtype([('FID', '<i4'), ('Shape', '<f8', (2,)), ('Id', '<i4'), ('X_c', '<f8'), ('Y_c', '<f8'), ('area', '<f8')])
>>> cur.fields
('FID', 'Shape', 'Id', 'X_c', 'Y_c', 'area')
>>> a = cur._as_narray()
>>> a
array([(0, [340000.0, 5022000.0], 0, 342000.0, 5024000.0, 16000000.0),
(0, [340000.0, 5026000.0], 0, 342000.0, 5024000.0, 16000000.0),
(0, [344000.0, 5026000.0], 0, 342000.0, 5024000.0, 16000000.0),
(0, [344000.0, 5022000.0], 0, 342000.0, 5024000.0, 16000000.0),
(0, [340000.0, 5022000.0], 0, 342000.0, 5024000.0, 16000000.0)],
dtype=[('FID', '<i4'), ('Shape', '<f8', (2,)), ('Id', '<i4'), ('X_c', '<f8'), ('Y_c', '<f8'), ('area', '<f8')])
>>> import numpy as np
>>> a_clone = a.copy()
>>> a_clone = a_clone.view(type=np.recarray)
>>> a_clone.Shape
array([[ 340000., 5022000.],
[ 340000., 5026000.],
[ 344000., 5026000.],
[ 344000., 5022000.],
[ 340000., 5022000.]])
>>> a_clone.Shape[1:].mean(axis=0)
array([ 342000., 5024000.])
>>>
hmmmm... me thinks the hole hasn't been dug deep enought... thanks Joshua Bixby
Visit the future.... returned to this topic