Aug-29-2018, 06:10 PM
If there's no way around it, I can live with accents being human-unreadable, but I wonder why JSON turns them into eg \u00e7.
BTW, I learned that you can't simply dump tracks into a file like I did above: To have a clean file, you must first build a list, and a collection, and dump the collection:
BTW, I learned that you can't simply dump tracks into a file like I did above: To have a clean file, you must first build a list, and a collection, and dump the collection:
with open(INPUTFILE, encoding='utf-8') as f: gj = geojson.load(f) features = [] for track in gj['features']: features.append(track) feature_collection = FeatureCollection(features) with open('myfile.geojson', 'w') as f: dump(feature_collection, f, indent=2)