{"id":13856968,"url":"https://github.com/Amyantis/python-vt2geojson","last_synced_at":"2025-07-13T19:33:36.310Z","repository":{"id":50249165,"uuid":"175258530","full_name":"Amyantis/python-vt2geojson","owner":"Amyantis","description":"Dump vector tiles to GeoJSON from remote URLs or local system files.","archived":false,"fork":false,"pushed_at":"2023-01-20T09:14:26.000Z","size":27,"stargazers_count":29,"open_issues_count":3,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-07-19T11:57:57.736Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Amyantis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-12T16:54:38.000Z","updated_at":"2024-05-24T17:28:11.000Z","dependencies_parsed_at":"2023-02-12T01:02:07.451Z","dependency_job_id":null,"html_url":"https://github.com/Amyantis/python-vt2geojson","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amyantis%2Fpython-vt2geojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amyantis%2Fpython-vt2geojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amyantis%2Fpython-vt2geojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amyantis%2Fpython-vt2geojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amyantis","download_url":"https://codeload.github.com/Amyantis/python-vt2geojson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213988294,"owners_count":15666958,"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":[],"created_at":"2024-08-05T03:01:20.638Z","updated_at":"2024-08-05T03:02:28.972Z","avatar_url":"https://github.com/Amyantis.png","language":"Python","funding_links":[],"categories":["Python","CLI Utilities"],"sub_categories":[],"readme":"# python-vt2geojson [![Build Status](https://travis-ci.org/Amyantis/python-vt2geojson.svg?branch=master)](https://travis-ci.org/Amyantis/python-vt2geojson)\nDump vector tiles to GeoJSON from remote URLs or local system files.\n\nInspired from https://github.com/mapbox/vt2geojson.\n\n## Installation\n```\npip install vt2geojson\n```\n\n## Usage\nUsing the CLI:\n```\nvt2geojson --help\n```\n\nMaking a GeoDataframe from a PBF vector tile file:\n```python\nimport geopandas as gpd\nimport requests\n\nfrom vt2geojson.tools import vt_bytes_to_geojson\n\nMAPBOX_ACCESS_TOKEN = \"*****\"\n\nx = 150\ny = 194\nz = 9\n\nurl = f\"https://api.mapbox.com/v4/mapbox.mapbox-streets-v6/{z}/{x}/{y}.vector.pbf?access_token={MAPBOX_ACCESS_TOKEN}\"\nr = requests.get(url)\nassert r.status_code == 200, r.content\nvt_content = r.content\n\nfeatures = vt_bytes_to_geojson(vt_content, x, y, z)\ngdf = gpd.GeoDataFrame.from_features(features)\n```\n\n## Todos:\n* Add more test using `vector-tile/test/fixtures/*.vector.pbf` data files.\n\n## Notes\nThis library has only been tested against **Python 3.6**.\n\nFeel free to [submit your issues](https://github.com/Amyantis/python-vt2geojson/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAmyantis%2Fpython-vt2geojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAmyantis%2Fpython-vt2geojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAmyantis%2Fpython-vt2geojson/lists"}