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
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|
generate_bgs_metadata(tables)
Generate additional metadata from groups.
Source code in app/checkers.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
|
load_ags4_as_numeric(filename)
Read AGS4 file and convert to numeric data types.
Source code in app/checkers.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
|
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
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
|