Documentation for txt_to_geojson
Path: utils/txt_to_geojson.py
Functions
txt_to_geojson
Convert a simple text file with latitude and longitude values into a GeoJSON feature collection. Each line should contain: longitude,latitude
Parameters:
input_file : str Path to the input text file containing lon,lat values output_file : str, optional Path to save the output GeoJSON file. If None, returns the GeoJSON as a string