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
Platform Support
arcgis2geojson is tested under python versions 2.7, 3.2, 3.3, 3.4 and 3.5
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.
Metadata
Release files for arcgis2geojson 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arcgis2geojson-1.0.2.tar.gz | 3.1 kB | Without provenance | Details for arcgis2geojson-1.0.2.tar.gz |
Release files / arcgis2geojson-1.0.2.tar.gz
| Download URL | arcgis2geojson-1.0.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aefa7d18a8d38ae6f13a7e90500e510db6a0ede329a9c20b714f1f339d2ee63b
|
|
BLAKE2b-256 checksum How to use checksums |
3967158d88c6860852f095980caea7291d0632f4b55d69139e515b89c3a16e31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for arcgis2geojson 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.