You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Consolidated multiple lists of OSW data files into one location
- Prohibit duplicate OSW data files (i.e. one edges file allowed only)
- Clearer error messaging
- Aggregate schema errors and data integrity errors separately before returning errors to user
- Added unit tests for external extensions
- Updated unit tests and results
- Upgraded all test assets to OSW 0.2 whenever possible
self.errors.append(f"Foreign key constraints for edge start nodes failed, _u_id's of unmatched nodes: {unmatched}")
135
-
returnValidationResult(False, self.errors)
105
+
self.errors.append(f"All _u_id's in edges should be part of _id's mentioned in nodes, _u_id's not in nodes are: {unmatched}")
136
106
137
107
# Do all node references in _v_id exist in nodes?
138
108
unmatched=node_ids_edges_v-node_ids
139
109
is_valid=len(unmatched) ==0
140
110
ifnotis_valid:
141
-
zip_handler.remove_extracted_files()
142
-
self.errors.append(f"Foreign key constraints for edge end nodes failed, _v_id's of unmatched nodes: {unmatched}")
143
-
returnValidationResult(False, self.errors)
111
+
self.errors.append(f"All _v_id's in edges should be part of _id's mentioned in nodes, _v_id's not in nodes are: {unmatched}")
144
112
145
113
# Do all node references in _w_id exist in nodes?
146
114
unmatched=node_ids_zones_w-node_ids
147
115
is_valid=len(unmatched) ==0
148
116
ifnotis_valid:
149
-
zip_handler.remove_extracted_files()
150
-
self.errors.append(f"Foreign key constraints for zone nodes failed, _w_id's of unmatched nodes: {unmatched}")
151
-
returnValidationResult(False, self.errors)
152
-
117
+
self.errors.append(f"All _w_id's in zones should be part of _id's mentioned in nodes, _w_id's not in nodes are: {unmatched}")
118
+
153
119
# Geometry validation: check geometry type in each file and test if coordinates make a shape that is reasonable geometric shape according to the Simple Feature Access standard
0 commit comments