scripts/generate_lat_lon_geojson.py
def write_geojson(generator, **kwargs):
    """Write a GeoJSON file with the data returned by generator(**kwargs)."""
    lat_or_lon = generator.__name__
    increment_str = str(kwargs['increment']).replace('.', '_')

    fn = f'{lat_or_lon}_{increment_str}_degree.geojson'

    gdf = generator(**kwargs)
    gdf.to_file(os.path.join(OUT_DIR, fn), driver='GeoJSON')
Write a GeoJSON file with the data returned by generator(**kwargs).
Write a GeoJSON file with the data returned by generator(**kwargs).
Write a GeoJSON file with the data returned by generator ( ** kwargs ) .
def write_geojson(generator, **kwargs):
    lat_or_lon = generator.__name__
    increment_str = str(kwargs['increment']).replace('.', '_')
    fn = f'{lat_or_lon}_{increment_str}_degree.geojson'
    gdf = generator(**kwargs)
    gdf.to_file(os.path.join(OUT_DIR, fn), driver='GeoJSON')
def write_geojson ( generator , ** kwargs ) : lat_or_lon = generator . __name__ increment_str = str ( kwargs [ 'increment' ] ) . replace ( '.' , '_' ) fn = f'{lat_or_lon}_{increment_str}_degree.geojson' gdf = generator ( ** kwargs ) gdf . to_file ( os . path . join ( OUT_DIR , fn ) , driver = 'GeoJSON' )
Write a GeoJSON file with the data returned by generator(**kwargs).
Write a GeoJSON file with the data returned by generator ( ** kwargs ) .
"""Write a GeoJSON file with the data returned by generator(**kwargs)."""
generator