{"id":13904809,"url":"https://github.com/chris48s/arcgis2geojson","last_synced_at":"2025-04-04T18:07:24.525Z","repository":{"id":10528907,"uuid":"66065713","full_name":"chris48s/arcgis2geojson","owner":"chris48s","description":"🌍 A Python library for converting ArcGIS JSON to GeoJSON","archived":false,"fork":false,"pushed_at":"2024-10-23T18:22:39.000Z","size":235,"stargazers_count":49,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-24T03:47:44.326Z","etag":null,"topics":["arcgis","geojson","python-library"],"latest_commit_sha":null,"homepage":"https://pypi.org/pypi/arcgis2geojson/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chris48s.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-19T08:18:39.000Z","updated_at":"2024-10-23T18:22:43.000Z","dependencies_parsed_at":"2024-08-10T19:33:15.091Z","dependency_job_id":"e789cdc2-1007-4895-a79f-1662e8ca67c9","html_url":"https://github.com/chris48s/arcgis2geojson","commit_stats":{"total_commits":110,"total_committers":6,"mean_commits":"18.333333333333332","dds":0.5,"last_synced_commit":"f6453e59d8b4c628c17330dd956fe9f330f74ca0"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris48s%2Farcgis2geojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris48s%2Farcgis2geojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris48s%2Farcgis2geojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chris48s%2Farcgis2geojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chris48s","download_url":"https://codeload.github.com/chris48s/arcgis2geojson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226213,"owners_count":20904465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arcgis","geojson","python-library"],"created_at":"2024-08-06T23:01:03.816Z","updated_at":"2025-04-04T18:07:24.509Z","avatar_url":"https://github.com/chris48s.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"[![Run tests](https://github.com/chris48s/arcgis2geojson/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/chris48s/arcgis2geojson/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/chris48s/arcgis2geojson/branch/master/graph/badge.svg?token=uMbOfMCHqD)](https://codecov.io/gh/chris48s/arcgis2geojson)\n![PyPI Version](https://img.shields.io/pypi/v/arcgis2geojson.svg)\n![License](https://img.shields.io/pypi/l/arcgis2geojson.svg)\n![Python Compatibility](https://img.shields.io/badge/dynamic/json?query=info.requires_python\u0026label=python\u0026url=https%3A%2F%2Fpypi.org%2Fpypi%2Farcgis2geojson%2Fjson)\n![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)\n\n# arcgis2geojson.py\nA Python library for converting ArcGIS JSON to GeoJSON: A partial port of ESRI's [arcgis-to-geojson-utils](https://github.com/Esri/arcgis-to-geojson-utils/).\n\n## Installation\n```\npip install arcgis2geojson\n```\n\n## Usage\n\n### As a Library\n\nConvert an ArcGIS JSON string to a GeoJSON string\n\n```py\n\u003e\u003e\u003e from arcgis2geojson import arcgis2geojson\n\n\u003e\u003e\u003e input = \"\"\"{\n...     \"attributes\": {\"OBJECTID\": 123},\n...     \"geometry\": {   \"rings\": [   [   [41.8359375, 71.015625],\n...                                      [56.953125, 33.75],\n...                                      [21.796875, 36.5625],\n...                                      [41.8359375, 71.015625]]],\n...                     \"spatialReference\": {\"wkid\": 4326}}}\"\"\"\n\u003e\u003e\u003e output = arcgis2geojson(input)\n\n\u003e\u003e\u003e output\n'{\"type\": \"Feature\", \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[41.8359375, 71.015625], [21.796875, 36.5625], [56.953125, 33.75], [41.8359375, 71.015625]]]}, \"properties\": {\"OBJECTID\": 123}, \"id\": 123}'\n\n\u003e\u003e\u003e type(output)\n\u003cclass 'str'\u003e\n```\n\nConvert a python dict to a python dict\n\n```py\n\u003e\u003e\u003e from arcgis2geojson import arcgis2geojson\n\n\u003e\u003e\u003e input = {\n...     'attributes': {'OBJECTID': 123},\n...     'geometry': {   'rings': [   [   [41.8359375, 71.015625],\n...                                      [56.953125, 33.75],\n...                                      [21.796875, 36.5625],\n...                                      [41.8359375, 71.015625]]],\n...                     'spatialReference': {'wkid': 4326}}}\n\u003e\u003e\u003e output = arcgis2geojson(input)\n\n\u003e\u003e\u003e output\n{'type': 'Feature', 'geometry': {'type': 'Polygon', 'coordinates': [[[41.8359375, 71.015625], [21.796875, 36.5625], [56.953125, 33.75], [41.8359375, 71.015625]]]}, 'properties': {'OBJECTID': 123}, 'id': 123}\n\n\u003e\u003e\u003e type(output)\n\u003cclass 'dict'\u003e\n```\n\n### On the Console\n\n```sh\n# convert ArcGIS json file to GeoJOSN file\n$ arcgis2geojson arcgis.json \u003e geo.json\n\n# fetch ArcGIS json from the web and convert to GeoJSON\n$ curl \"https://myserver.com/arcgis.json\" | arcgis2geojson\n```\n\n\n## Licensing\n\narcgis2geojson is a derivative work of ESRI's [arcgis-to-geojson-utils](https://github.com/Esri/arcgis-to-geojson-utils/). Original code is Copyright 2015 by Esri and was licensed under [the Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\narcgis2geojson is made available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris48s%2Farcgis2geojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchris48s%2Farcgis2geojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchris48s%2Farcgis2geojson/lists"}