skipFlds = [desc.shapeFieldName, desc.OIDFieldName] Chyba: AtrributeError: DescribeData: Metoda shapeFieldName neexistuje
0
Že chyba je běžné, když se tvar/geometrie pole neexistuje, jako v běžné tabulce. Dvakrát zkontrolujte, zda jste popisující prostorové datové sady; pokud ano, pak datový soubor může být poškozen a ArcPy není rozpoznání typu prostorových dat existuje.
>>> import arcpy
>>>
>>> fc = # path to feature class
>>> tbl = # path to table
>>>
>>> desc_fc = arcpy.Describe(fc)
>>> desc_fc.shapeFieldName
'Shape'
>>>
>>> desc_tbl = arcpy.Describe(tbl)
>>> desc_tbl.shapeFieldName
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: DescribeData: Method shapeFieldName does not exist
>>>