Tag Info

New answers tagged

2

I have just submitted an ArcGIS Idea for Validation of Hierarchical Fields but since your comment says that your requirement is now for Python I thought I would put together some code showing how to do this using dictionaries. The CityProvinceLookup table has two fields CITY and PROVINCE with a row for each valid combination. The ProvinceCountryLookup ...


3

There isn't much point in iterating over a list of tables if the number of them is small and you know exactly the names and locations of each one -- instead, just specify their paths in full: e.g.: soil_table = r"C:\BASE_TABLES.gdb\SOIL_TYPE" veg_table = r"C:\BASE_TABLES.gdb\VEG_TYPE" soil_fc = r"C:\TEST_GDB.gdb\SOIL_FEATURECLASS" If the workspaces can ...


3

This should be possible but your usage of ListFeatureClasses and SearchCursor is incorrect: ListFeatureClasses requires you to set arcpy.env.workspace first. Its arguments are optional, but the first is a wildcard, not a workspace. SearchCursor's first argument is a table or feature class, not a workspace. That being said, I wouldn't really recommend ...



Top 50 recent answers are included