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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.028s · 17.8MB
glibcpy 3.10–3.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]}}]}
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.
fixEnsure 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.
fixMake 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().
fixParse 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.