Skip to main content

GeoJSON Parser and Dialect for Frictionless

Project description

Frictionless GeoJSON

An extension to add GeoJSON read and write support in frictionless-py.

Guide

Load the package

python3 -V # should be > 3.6

# download project
git clone git@github.com:cividi/frictionless-geojson.git
cd frictionless-geojson

# Load dynamic dev version
make dev # or python3 -m pip install -e .

Load GeoJSON and convert to CSV

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')

Load CSV with WKT _geom column and convert to GeoJSON

from frictionless import Resource
from pprint import pprint

# Load CSV
data = Resource('<PATH-TO-CSV>.csv')

# Print out data
pprint(data.read_rows())

# Write GeoJSON to disk - requires _geom column with WKT geometry
data.write('<PATH-TO-GEOJSON>.geojson')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frictionless_geojson-0.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distributions

frictionless_geojson-0.0.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

frictionless_geojson-0.0.1-py2.py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page