A Python library for converting ArcGIS JSON to GeoJSON
Project description
arcgis2geojson.py
A Python library for converting ArcGIS JSON to GeoJSON: A partial port of ESRI's arcgis-to-geojson-utils.
Installation
pip install arcgis2geojson
Usage
>>> input = {
... 'attributes': {'OBJECTID': 123},
... 'geometry': { 'rings': [ [ [41.8359375, 71.015625],
... [56.953125, 33.75],
... [21.796875, 36.5625],
... [41.8359375, 71.015625]]],
... 'spatialReference': {'wkid': 4326}}}
>>> from arcgis2geojson import arcgis2geojson
>>> output = arcgis2geojson(input)
>>> import pprint
>>> pp = pprint.PrettyPrinter(indent=4)
>>> pp.pprint(output)
{ 'geometry': { 'coordinates': [ [ [41.8359375, 71.015625],
[56.953125, 33.75],
[21.796875, 36.5625],
[41.8359375, 71.015625]]],
'type': 'Polygon'},
'id': 123,
'properties': {'OBJECTID': 123},
'type': 'Feature'}
Licensing
arcgis2geojson is a derivative work of ESRI's arcgis-to-geojson-utils. Original code is Copyright 2015 by Esri and was licensed under the Apache License, Version 2.0.
arcgis2geojson is made available under the MIT License.
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
arcgis2geojson-1.4.0.tar.gz
(4.2 kB
view details)
File details
Details for the file arcgis2geojson-1.4.0.tar.gz
.
File metadata
- Download URL: arcgis2geojson-1.4.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8f7078e47f4a85dda557736989afcaf30edeae0f1c34f50b18452646b9b4c48 |
|
MD5 | 786a076a0c8b41e157da278b66627eb4 |
|
BLAKE2b-256 | 11b6de1ad83d3bc7165bb1558d942050e4267de0bb8c12af3a089b54cc89c2bd |