(ogr_map_fld)
| 208 | |
| 209 | # Function for determining if the OGR mapping field is in the Layer. |
| 210 | def check_ogr_fld(ogr_map_fld): |
| 211 | try: |
| 212 | idx = ogr_fields.index(ogr_map_fld) |
| 213 | except ValueError: |
| 214 | raise LayerMapError( |
| 215 | 'Given mapping OGR field "%s" not found in OGR Layer.' % ogr_map_fld |
| 216 | ) |
| 217 | return idx |
| 218 | |
| 219 | # No need to increment through each feature in the model, simply check |
| 220 | # the Layer metadata against what was given in the mapping dictionary. |
nothing calls this directly
no test coverage detected