def write_vrt_file(csv_path):
    vrt_template = '''<OGRVRTDataSource>
            <OGRVRTLayer name="{csv_base}">
                <SrcDataSource>{csv_path}</SrcDataSource>
                <SrcLayer>{csv_base}</SrcLayer>
                <GeometryField encoding="WKT" name="vrt_geom" field="{geom_name}" reportSrcColumn="FALSE">
                    <GeometryType>{geom_type}</GeometryType>
                    <SRS>EPSG:4326</SRS>
                </GeometryField>
            </OGRVRTLayer>
        </OGRVRTDataSource>'''
    
    geom_name = GEOM_FIELDNAME
    geom_type = guess_geom_type(csv_path, geom_name)
    csv_dir = dirname(csv_path)
    csv_base, _ = splitext(basename(csv_path))
    vrt_path = join(csv_dir, csv_base + '.vrt')

    with open(vrt_path, 'w') as file:
        file.write(vrt_template.format(**locals()))

    _L.debug('Wrote {vrt_path}'.format(**locals()))
    
    return vrt_path
Overlay to list all members
dataset/ETHPy150Open openaddresses/machine/openaddr/util/esri2geojson.py/write_vrt_file--crossover with--dataset/ETHPy150Open Net-ng/kansha/kansha/card_addons/members/view.py/render_members_members_list_overlay