Remember, cursor objects will ignore BLOB and Raster fields.
Example:
import arcpy
from arcpy import da
fc = r"c:\temp\demo_polygon.shp"
with da.SearchCursor(fc,"*") as rows:
for field in rows.fields:
print field
So in this example, the cursor will print all the fields being accessed. It will also show the type of Shape field is being returned. If all fields is used ("*"), then the SHAPE@XY property returned by default.
Enjoy
1 comment:
Although, the "*" keyword excludes blob fields, blob fields are supported in 10.1 with data access cursors:
See the ArcGIS Desktop help for 10.1 topic: "Accessing data using cursors"
At the bottom of this topic find examples of writing and accessing blobs.
Post a Comment