Registry / data / arcgis2geojson

arcgis2geojson

JSON →
library3.1.1pypypi✓ verified 86d ago

A Python library for converting ArcGIS JSON (ESRI FeatureSet, Feature, Point, Polyline, Polygon, MultiPoint) to GeoJSON. Current version 3.1.1, requires Python >=3.10. Maintained, with regular releases.

pip install arcgis2geojson
INSTALL
IMPORT
SIG · ARCGIS2GEOJSON
A
arcgis2geojson
datapythonv3.1.1
Install
1.5s avg
Import
28ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.028s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.028s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

arcgis2geojson
import arcgis2geojson
The module is used as a package; primary function is arcgis2geojson()
N/A
from arcgis2geojson import arcgis2geojson
from arcgis2geojson import ArcGIS2GeoJSON
Function is lowercase; class naming was common mistake in older versions

Convert a basic ArcGIS JSON FeatureSet to GeoJSON.

import arcgis2geojson # Convert an ArcGIS JSON FeatureSet (dict) arcgis_json = { "geometryType": "esriGeometryPoint", "features": [{"attributes": {"id": 1}, "geometry": {"x": -122.68, "y": 45.52}}] } geojson = arcgis2geojson.arcgis2geojson(arcgis_json) print(geojson) # Output: {'type': 'FeatureCollection', 'features': [{'type': 'Feature', 'properties': {'id': 1}, 'geometry': {'type': 'Point', 'coordinates': [-122.68, 45.52]}}]}
Debug
Known issues
gotchaThe function arcgis2geojson() expects a Python dict (parsed from JSON), not a raw JSON string. If you have a string, you must parse it via json.loads() first.
fix
geojson = arcgis2geojson.arcgis2geojson(json.loads(arcgis_json_string))
affects: all
gotchaArcGIS JSON with spatialReference.wkid (e.g., 4326) is not automatically reprojected; the library assumes WGS84 (EPSG:4326). If your data is in a different CRS, you must reproject before conversion.
fix
Manually reproject coordinates using a library like pyproj before passing to arcgis2geojson.
affects: all
deprecatedThe old experimental function 'convert' (from v2.x) was removed in v3.0. Use 'arcgis2geojson' function instead.
fix
Replace convert(...) with arcgis2geojson(...).
affects: >=3.0
Errors
Common errors & fixes
AttributeError: module 'arcgis2geojson' has no attribute 'arcgis2geojson'
Import performed as 'import arcgis2geojson' but the function may not be directly accessible due to shadowing (unlikely in current version) OR incorrect installation.
fix
Ensure you have arcgis2geojson installed (pip list) and import as 'import arcgis2geojson' then use 'arcgis2geojson.arcgis2geojson'. Alternatively, do 'from arcgis2geojson import arcgis2geojson'.
KeyError: 'geometryType'
Input dictionary missing the required 'geometryType' key. This is mandatory for ArcGIS JSON.
fix
Make sure your ArcGIS JSON includes 'geometryType' (e.g., 'esriGeometryPoint', 'esriGeometryPolygon').
TypeError: string indices must be integers
Passed a JSON string (str) instead of a dict to arcgis2geojson().
fix
Parse the string first: import json; arcgis_json = json.loads(json_string); geojson = arcgis2geojson.arcgis2geojson(arcgis_json)
Upgrade
Version history
3.1.1latest on PyPI · released Oct 22, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
28
OpenAI (training)
1
Resources
arcgis2geojson — pip install arcgis2geojson · libregistry