Tag Info

Hot answers tagged

3

# I know I repeat myself. Any idea to avoid it ? Move secteur = row.secteur outside the if/else statements (before if nbrow > 0:). Move rows = arcpy.SearchCursor(pochoir) inside the for loop (after for fc in fcList:) I think that you aren't accessing the geometry properly. Reference Reading Geometries and Working with geometry in Python. # tells ...


2

Doesn't the third example script in the link you mentioned do exactly what you want in a single table? # Import system modules import arcpy # Set environment settings env.workspace = "C:/data/Habitat_Analysis.gdb" # Set local variables intable = "FIELD_NAME" outtable = "C:/output/output.gdb/TABLE_OUTPUT" # casefield = "Name" Not used stats = [] # Loop ...


1

Have a look at the ListFields function. Note, you'll want to limit your results to numeric only fields, otherwise, you might get an error. So, you may want to use something like the following: int_fields = arcpy.ListFields("C:/data/Habitat_Analysis.gdb", , "Integer") to get a list of all integer fields. then small_int_fields = ...



Only top voted, non community-wiki answers of a minimum length are eligible