|
24 | 24 | # Added reminder to document any schema extensions |
25 | 25 | # Added feature dataset SRF names to database inventory - RH |
26 | 26 | # 8 March 2021: Added D_North_American_1983 to list of datums that don't generate a warning |
| 27 | +# 1/27/22: added clause to parse DataSourceIDs that might take the form of 'DAS1 | DAS2 | DAS3', etc. That is, allows for multiple datasources |
| 28 | +# to be related to a table row. in def ScanTable under 'for i in dataSourceIndices:' |
27 | 29 |
|
28 | 30 | import arcpy, os, os.path, sys, time, glob |
29 | 31 | import traceback |
30 | 32 | from GeMS_utilityFunctions import * |
31 | 33 | from GeMS_Definition import * |
32 | 34 | import copy |
33 | 35 |
|
34 | | -versionString = 'GeMS_ValidateDatabase_Arc10.py, version of 5 May 2021' |
| 36 | +versionString = 'GeMS_ValidateDatabase_Arc10.py, version of 27 January 2022' |
35 | 37 | rawurl = 'https://raw.githubusercontent.com/usgs/gems-tools-arcmap/master/Scripts/GeMS_ValidateDatabase_Arc10.py' |
36 | 38 | checkVersion(versionString, rawurl, 'gems-tools-arcmap') |
37 | 39 |
|
@@ -751,9 +753,11 @@ def scanTable(table, fds=''): |
751 | 753 | for i in dataSourceIndices: |
752 | 754 | xx = row[i] |
753 | 755 | if notEmpty(xx): |
754 | | - xxft = [fixSpecialChars(xx),fieldNames[i],table] #$@ |
755 | | - if not xx in allDataSourcesRefs: |
756 | | - allDataSourcesRefs.append(xxft) |
| 756 | + ids = [e.strip() for e in xx.split('|') if e.strip()] |
| 757 | + for xxref in ids: |
| 758 | + xxft = [xxref, fieldNames[i], table] |
| 759 | + if not xxref in allDataSourcesRefs: |
| 760 | + allDataSourcesRefs.append(xxft) |
757 | 761 | if mapUnitFieldIndex <> [] and row[mapUnitFieldIndex[0]] <> None: |
758 | 762 | for i in specialDmuFieldIndices: |
759 | 763 | xx = row[i] |
|
0 commit comments