checkers.py
checker functions check a file against the rules. They also catch errors to do with opening the files.
check_bgs(filename, **kwargs)
Validate file against BGS rules. kwargs parameter required because some validation functions have keyword parameters.
Source code in app/checkers.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
|
generate_bgs_metadata(tables)
Generate additional metadata from groups.
Source code in app/checkers.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
|
load_ags4_as_numeric(filename)
Read AGS4 file and convert to numeric data types.
Source code in app/checkers.py
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
|
get_coord_column_type_errors(tables, coord_columns)
Check the coordinate columns in LOCA table have correct data type and return errors for those that don't.
Source code in app/checkers.py
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
|