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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for frictionless_geojson-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452fcd38e16913c08694a6c785691e1acc03a1b92f8354a058f53cbc6083ccad |
|
MD5 | 36aaf8acb7f14d0624c900e3ed1534e8 |
|
BLAKE2b-256 | 61d0f8b80e4f4b6de8c4fe3ae9380b7627c671c4e98140e3461e3d55f1e515b9 |
Close
Hashes for frictionless_geojson-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52eac857615f5f415618d60379983f89cd24f0cd494d5f8fd7c1a8be225571e2 |
|
MD5 | fb00bb567003d50fb8de29eb08e005b1 |
|
BLAKE2b-256 | fab5a1a21f40f68bd407977b20dbb796fb0bcb3cd86960e63dc984b7ce2dd4d6 |
Close
Hashes for frictionless_geojson-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2cf73f1bb3c7b97a708ac88445aa741c412b6bece1de7bfeb3033be33023c14 |
|
MD5 | c24a31b49ae88d5b63c08628de5cf5d0 |
|
BLAKE2b-256 | 62265c3b1e19347858a8830692e3040cb56f74a58dd588f41797b6335ba92db5 |