I have an attribute table with some fields and I want to display on map the values of a field of this table. Table is a shapefile. I need to turn on label of a field automatically with arcpy, so I tried to use contour annotation but it gives error.
Field= "Teste" env.workspace = "F:/ArcGIS/Trab/Model/Subestações.shp" arcpy.ContourAnnotation_cartography('Subestações', env.workspace, Field , 50000, "ContourTeste", "BLACK", "", "PAGE", "") ERROR 000366: Invalid geometry type
I could to use this function for a polyline feature, and with this error I think that problem is this function can't be used with point feature.
How I can turn on label of a field with arcpy?