{"id":13856948,"url":"https://github.com/fitodic/centerline","last_synced_at":"2026-02-21T13:01:23.586Z","repository":{"id":23891115,"uuid":"27270532","full_name":"fitodic/centerline","owner":"fitodic","description":"Calculate the polygon's centerline","archived":false,"fork":false,"pushed_at":"2025-09-16T13:37:53.000Z","size":440,"stargazers_count":294,"open_issues_count":3,"forks_count":56,"subscribers_count":9,"default_branch":"master","last_synced_at":"2026-01-27T10:09:55.904Z","etag":null,"topics":["border","centerline","cli","gis","linear-structures","polygon","python","screenshot","shapefile","spatial-data","voronoi"],"latest_commit_sha":null,"homepage":"https://centerline.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fitodic.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-11-28T14:38:01.000Z","updated_at":"2025-12-16T01:35:10.000Z","dependencies_parsed_at":"2023-02-13T00:31:07.235Z","dependency_job_id":"c3e65929-0d83-4713-88a1-2e5537c1a87b","html_url":"https://github.com/fitodic/centerline","commit_stats":{"total_commits":283,"total_committers":6,"mean_commits":"47.166666666666664","dds":0.3639575971731449,"last_synced_commit":"c0c0bf7c24e4c8519b62e724feb796248142089b"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/fitodic/centerline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitodic%2Fcenterline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitodic%2Fcenterline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitodic%2Fcenterline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitodic%2Fcenterline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fitodic","download_url":"https://codeload.github.com/fitodic/centerline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitodic%2Fcenterline/sbom","scorecard":{"id":401642,"data":{"date":"2025-08-11","repo":{"name":"github.com/fitodic/centerline","commit":"38551b996aef214d57cd79b8880dedd8d649a1b3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Code-Review","score":0,"reason":"Found 2/29 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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:79: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:103: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:115: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:116: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:124: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:137: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:144: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:155: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:157: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:161: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:165: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:175: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:178: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:187: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:203: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:214: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:216: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:222: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:233: update your workflow using https://app.stepsecurity.io/secureworkflow/fitodic/centerline/ci.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:196","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:197","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:46","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:47","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:88","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:89","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:97","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:122","Info:   0 out of  21 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   8 pipCommand dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT 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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.0.1 not signed: https://api.github.com/repos/fitodic/centerline/releases/135729172","Warn: release artifact 0.5 not signed: https://api.github.com/repos/fitodic/centerline/releases/12804228","Warn: release artifact 0.4.2 not signed: https://api.github.com/repos/fitodic/centerline/releases/12804185","Warn: release artifact 1.0.1 does not have provenance: https://api.github.com/repos/fitodic/centerline/releases/135729172","Warn: release artifact 0.5 does not have provenance: https://api.github.com/repos/fitodic/centerline/releases/12804228","Warn: release artifact 0.4.2 does not have provenance: https://api.github.com/repos/fitodic/centerline/releases/12804185"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/ci.yml:208"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 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-18T20:12:58.752Z","repository_id":23891115,"created_at":"2025-08-18T20:12:58.752Z","updated_at":"2025-08-18T20:12:58.752Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29681468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T12:30:22.644Z","status":"ssl_error","status_checked_at":"2026-02-21T12:29:55.402Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["border","centerline","cli","gis","linear-structures","polygon","python","screenshot","shapefile","spatial-data","voronoi"],"created_at":"2024-08-05T03:01:19.923Z","updated_at":"2026-02-21T13:01:23.562Z","avatar_url":"https://github.com/fitodic.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Centerline\n==========\n\n.. image:: https://github.com/fitodic/centerline/actions/workflows/ci.yml/badge.svg?event=push\n    :target: https://github.com/fitodic/centerline/actions\n    :alt: Build status\n\n.. image:: https://codecov.io/gh/fitodic/centerline/branch/master/graph/badge.svg?token=S2WQ9OTR9O\n    :target: https://codecov.io/gh/fitodic/centerline\n    :alt: Test coverage status\n\n.. image:: https://readthedocs.org/projects/centerline/badge/?version=latest\n    :target: http://centerline.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. image:: https://img.shields.io/pypi/v/centerline.svg\n    :target: https://pypi.python.org/pypi/centerline\n    :alt: Version\n\n.. image:: https://pepy.tech/badge/centerline\n    :target: https://pepy.tech/project/centerline\n    :alt: Downloads\n\n.. figure::  docs/images/example.png\n   :align:   center\n\nRoads, rivers and similar linear structures are often represented by\nlong and complex polygons. Since one of the most important attributes of\na linear structure is its length, extracting that attribute from a\npolygon can prove to be more or less difficult.\n\nThis library tries to solve this problem by creating the the polygon's\ncenterline using the `Voronoi diagram\n\u003chttps://en.wikipedia.org/wiki/Voronoi_diagram\u003e`_. For more info on how\nto use this package, see the\n`official documentation \u003chttp://centerline.readthedocs.io/\u003e`_.\n\n\nFeatures\n^^^^^^^^\n\n* A command-line script for creating centerlines from a vector source file and saving them into a destination vector file: ``create_centerlines``\n\n.. code:: bash\n\n    $ create_centerlines input.shp output.geojson\n\n\n* The ``Centerline`` class that allows integration into your own workflow.\n\n\n.. code:: python\n\n    \u003e\u003e\u003e from shapely.geometry import Polygon\n    \u003e\u003e\u003e from centerline.geometry import Centerline\n\n    \u003e\u003e\u003e polygon = Polygon([[0, 0], [0, 4], [4, 4], [4, 0]])\n    \u003e\u003e\u003e attributes = {\"id\": 1, \"name\": \"polygon\", \"valid\": True}\n\n    \u003e\u003e\u003e centerline = Centerline(polygon, **attributes)\n    \u003e\u003e\u003e centerline.id == 1\n    True\n    \u003e\u003e\u003e centerline.name\n    'polygon'\n    \u003e\u003e\u003e centerline.geometry.geoms\n    \u003cshapely.geometry.base.GeometrySequence object at 0x7f7d24116210\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitodic%2Fcenterline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitodic%2Fcenterline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitodic%2Fcenterline/lists"}