Spaces:
Running
Running
File size: 237 Bytes
e93edee |
1 2 3 4 5 6 7 8 9 10 11 |
import json
def process_geojson(file):
if file is None:
return {}
try:
with open(file, 'r', encoding='utf-8') as f:
return json.load(f)
except Exception as e:
return {"error": str(e)} |