accessmod/osm.py
def match_schema(record: dict, dst_schema: dict) -> dict:
                        """Ensure that the Fiona record matches the target schema.

                        If a property is in the record but not available in the
                        target schema, then the property is dropped. If the property
                        is in the target schema but not in the record, then it is
                        added to the record with None as value.
                        """
                        dst_properties = OrderedDict(
                            {
                                prop: record["properties"].get(prop)
                                for prop in dst_schema["properties"]
                            }
                        )
                        record.update(properties=dst_properties)
                        return record
Ensure that the Fiona record matches the target schema.

                        If a property is in the record but not available in the
                        target schema, then the property is dropped. If the property
                        is in the target schema but not in the record, then it is
                        added to the record with None as value.
                        
Ensure that the Fiona record matches the target schema.
If a property is in the record but not available in the
target schema, then the property is dropped. If the property
is in the target schema but not in the record, then it is
added to the record with None as value.
Ensure that the Fiona record matches the target schema . If a property is in the record but not available in the target schema then the property is dropped . If the property is in the target schema but not in the record then it is added to the record with None as value .
def match_schema(record: dict, dst_schema: dict) -> dict:
                        dst_properties = OrderedDict(
                            {
                                prop: record["properties"].get(prop)
                                for prop in dst_schema["properties"]
                            }
                        )
                        record.update(properties=dst_properties)
                        return record
def match_schema ( record : dict , dst_schema : dict ) -> dict : dst_properties = OrderedDict ( { prop : record [ "properties" ] . get ( prop ) for prop in dst_schema [ "properties" ] } ) record . update ( properties = dst_properties ) return record
Ensure that the Fiona record matches the target schema.
Ensure that the Fiona record matches the target schema .
"""Ensure that the Fiona record matches the target schema.

                        If a property is in the record but not available in the
                        target schema, then the property is dropped. If the property
                        is in the target schema but not in the record, then it is
                        added to the record with None as value.
                        """
record
dict
dst_schema
dict