{"id":13784376,"url":"https://github.com/geometalab/geojson2vt","last_synced_at":"2026-01-22T09:35:22.676Z","repository":{"id":43575893,"uuid":"254060497","full_name":"geometalab/geojson2vt","owner":"geometalab","description":"Converts GeoJSON to vector tiles :scissors: :earth_americas:","archived":false,"fork":false,"pushed_at":"2021-04-20T19:48:10.000Z","size":287,"stargazers_count":51,"open_issues_count":5,"forks_count":15,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-25T13:28:11.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geometalab.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-04-08T10:48:24.000Z","updated_at":"2025-09-22T14:25:02.000Z","dependencies_parsed_at":"2022-08-28T04:53:37.762Z","dependency_job_id":null,"html_url":"https://github.com/geometalab/geojson2vt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/geometalab/geojson2vt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometalab%2Fgeojson2vt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometalab%2Fgeojson2vt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometalab%2Fgeojson2vt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometalab%2Fgeojson2vt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geometalab","download_url":"https://codeload.github.com/geometalab/geojson2vt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geometalab%2Fgeojson2vt/sbom","scorecard":{"id":423034,"data":{"date":"2025-08-11","repo":{"name":"github.com/geometalab/geojson2vt","commit":"3653e4ca958e6852f4de0b2f2e1ea4b2d6edc069"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: ISC License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-92 / GHSA-hj5v-574p-mj7c","Warn: Project is vulnerable to: PYSEC-2022-42969","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T01:41:54.296Z","repository_id":43575893,"created_at":"2025-08-19T01:41:54.296Z","updated_at":"2025-08-19T01:41:54.296Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28660770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-03T19:00:41.513Z","updated_at":"2026-01-22T09:35:22.656Z","avatar_url":"https://github.com/geometalab.png","language":"Python","funding_links":[],"categories":["Python","Uncategorized","Parsers \u0026 Generators"],"sub_categories":["Uncategorized"],"readme":"[![Build Status](https://travis-ci.org/geometalab/geojson2vt.svg?branch=master)](https://travis-ci.org/geometalab/geojson2vt)\n# geojson2vt\nPython port of [JS GeoJSON-VT](https://github.com/mapbox/geojson-vt) to convert GeoJSON into vector tiles. :scissors: :earth_americas:  \n\nFurther, it provides the ability to convert the generate vector tiles to separate GeoJSONs (`vt2geojson`).\n### Usage\n#### geojson2vt\n```python\n# build an initial index of tiles\ntile_index = geojson2vt(geojson, {})\n\n# request a particular tile\nfeatures = tile_index.get_tile(z, x, y).get('features')\n\n# show an array of tile coordinates created so far\nprint(tile_index.tile_coords) # [{'z': 0, 'x': 0, 'y': 0}, ...]\n```\n\n##### Options\n\nYou can fine-tune the results with an options object,\nalthough the defaults are sensible and work well for most use cases.\n\n```python\ntile_index = geojson2vt(data, {\n\t'maxZoom': 14,  # max zoom to preserve detail on; can't be higher than 24\n\t'tolerance': 3, # simplification tolerance (higher means simpler)\n\t'extent': 4096, # tile extent (both width and height)\n\t'buffer': 64,   # tile buffer on each side\n\t'lineMetrics': False, # whether to enable line metrics tracking for LineString/MultiLineString features\n\t'promoteId': None,    # name of a feature property to promote to feature.id. Cannot be used with `generateId`\n\t'generateId': False,  # whether to generate feature ids. Cannot be used with `promoteId`\n\t'indexMaxZoom': 5,       # max zoom in the initial tile index\n\t'indexMaxPoints': 100000 # max number of points per tile in the index\n}, logging.INFO)\n```\n\nBy default, tiles at zoom levels above `indexMaxZoom` are generated on the fly, but you can pre-generate all possible tiles for `data` by setting `indexMaxZoom` and `maxZoom` to the same value, setting `indexMaxPoints` to `0`, and then accessing the resulting tile coordinates from the `tile_coords` property of `tile_index`.\n\nThe `promoteId` and `generateId` options ignore existing `id` values on the feature objects.\n\ngeojson2vt only operates on zoom levels up to 24.\n\n#### vt2geojson\n```python\n# build an initial index of tiles\ntile_index = geojson2vt(geojson_data, {})\n\n# get a specific tile\nvector_tile = tile_index.get_tile(z, x, y)\n\n# convert a specific vector tile to GeoJSON\ngeojson = vt2geojson(vector_tile)\n```\n\n### Install\n\n`geojson2vt` is available on [PyPi](https://pypi.org/project/geojson2vt/).  \n\nInstall using pip.\n```bash\npip install geojson2vt\n```\n\nImport `geojson2vt`\n```python\nfrom geojson2vt.geojson2vt import geojson2vt\n```\n\n## Acknowledgements\nAll the credit belongs to the collaborators of [JS GeoJSON-VT](https://github.com/mapbox/geojson-vt).\n\n## Notes\nCurrently, geojson2vt isn't written in a very pythonic way. This is due to the fact of the port from geojson-vt.\nFurther development could lead to a more pythonic maner for a more seamless Python usage. :snake:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeometalab%2Fgeojson2vt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeometalab%2Fgeojson2vt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeometalab%2Fgeojson2vt/lists"}