{"id":40882503,"url":"https://github.com/bertt/tilebelt-cs","last_synced_at":"2026-01-22T01:16:52.366Z","repository":{"id":65414004,"uuid":"77711461","full_name":"bertt/tilebelt-cs","owner":"bertt","description":"A .NET library for working with the OpenStreetMap tiling scheme ","archived":false,"fork":false,"pushed_at":"2025-03-12T11:07:12.000Z","size":66,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-14T09:22:41.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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/bertt.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-30T21:31:16.000Z","updated_at":"2025-03-12T11:07:16.000Z","dependencies_parsed_at":"2024-02-27T12:45:36.549Z","dependency_job_id":"f4039383-d8b3-4550-9ac9-bd9197181919","html_url":"https://github.com/bertt/tilebelt-cs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bertt/tilebelt-cs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Ftilebelt-cs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Ftilebelt-cs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Ftilebelt-cs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Ftilebelt-cs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertt","download_url":"https://codeload.github.com/bertt/tilebelt-cs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Ftilebelt-cs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28648639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2026-01-22T01:16:51.667Z","updated_at":"2026-01-22T01:16:52.346Z","avatar_url":"https://github.com/bertt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tilebelt\n\n[![NuGet Status](http://img.shields.io/nuget/v/tilebelt.svg?style=flat)](https://www.nuget.org/packages/tilebelt/) [![Build status](https://ci.appveyor.com/api/projects/status/7r1ct7h78r2nkoy0?svg=true)](https://ci.appveyor.com/project/bertt/tilebelt-cs)\u003cimg src = \"https://img.shields.io/nuget/dt/tilebelt.svg\"/\u003e\n\nSet of tile utility functions written in C# for working with OpenStreetMap tiling scheme (https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames).  Inspired by the Mapbox Tilebelt library (https://github.com/mapbox/tilebelt).\n\n## Install\n\n```\npackage-install tilebelt\n```\n\n## Dependencies\n\n.NET 6.0\n\n## Dependents\n\n-\n\n## Usage\n```\n// ------------------------------------------------------\n// Tilebelt methods\n// ------------------------------------------------------\n\n// Tilebelt.GetTilesOnLevel\n// input: bounds [xmin, ymin, xmax, ymax] in WGS84 and z-level\n// output: List of tiles in bounds and on level\nvar tiles = Tilebelt.GetTilesOnLevel(new double[]{-84.72,11.17,-5.62,61.60}, 10);\n\n// Tilebelt.PointToTile\n// input: x, y in WGS84\n// output: tile (col, row,level)\nvar tile = Tilebelt.PointToTile(0, 0, 10);\n\n// Tilebelt.QuadkeyToTile\n// input: quadkey\n// output: Tile (col, row, level)\n\n// Tilebelt.GetBboxZoom\n// input: bounds [xmin, ymin, xmax, ymax] in WGS84\n// output: zoomlevel (int)\nvar level = Tilebelt.GetBboxZoom(new double[]{-84.72,11.17,-5.62,61.60});\n\n// Tilebelt.BboxToTile\n// input: bounds [xmin, ymin, xmax, ymax] in WGS84\n// output: tile, smallest tile to cover the bbox\nvar tile = Tilebelt.BboxToTile(new double[]{-84.72,11.17,-5.62,61.60});\n\n\n// ------------------------------------------------------\n// Tile methods\n// ------------------------------------------------------\n// tile constructors\nvar tile = new Tile();\nvar tile = new Tile(5,5,10); // col, row, level\n\n// tile.Center - get center point of tile\nvar center = tile.Center(); \n\n// tile.Bounds - get bounding box of tile\n// input: -\n// output: bounds [xmin, ymin, xmax, ymax] in WGS84\nvar bounds = tile.Bounds();\n\n// tile.Children\n// input: -\n// output: 4 children tiles (col, row, level)\nvar tiles = tile.Children();\n\n// tile.Parent\n// input: -\n// output: parent tile (col, row, level)\nvar parentTile = tile.Parent();\n\n// tile.Siblings\n// input: -\n// out: 4 siblings tiles\nvar siblings = tile.Siblings();\n\n// tile.Intersects\n// input: a line (2 points) \npublic bool Intersects(Point2 from, Point2 to)\n\n// tile.Equals\n// input: tile (col, row, level)\n// output: boolean equals\nvar equals = tile1.Equals(tile2);\n\n// tile.Quadkey()\n// input: -\n// output: Quadkey of tile\nvar quadkey = tile.Quadkey(); \n```\n\n\n## History\n\n2023-08-13: v2.0 - .NET 6.0\n\n2019-12-18: v1.0 - .NET Standard 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertt%2Ftilebelt-cs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertt%2Ftilebelt-cs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertt%2Ftilebelt-cs/lists"}