An extension to add GeoJSON read and write support in frictionless-py.
Based on https://github.com/cividi/frictionless-geojson and https://github.com/frictionlessdata/framework/tree/main/frictionless/formats/json.
Currently installation is only by cloning the repo and installing locally. We will add a pip package when the extension is more mature.
git clone [email protected]:fjelltopp/frictionless-geojson.git
python -m pip install frictionless-geojson
python --version # should be > 3.8
# download project
git clone [email protected]:fjelltopp/frictionless-geojson.git
cd frictionless-geojson
# Load dynamic dev version
python -m pip install -e .
from frictionless import Resource
from pprint import pprint
# Load GeoJSON
data = Resource('<PATH-TO-GEOJSON>.geojson')
# Print out data
pprint(data.read_rows())
# Write CSV to disk - generates _geom column with WKT geometry
data.write('<PATH-TO-CSV>.csv')