{"id":13784333,"url":"https://github.com/mapbox/vector-tile-cs","last_synced_at":"2025-05-11T19:32:41.233Z","repository":{"id":54459416,"uuid":"70201326","full_name":"mapbox/vector-tile-cs","owner":"mapbox","description":"Parses vector tiles with C#.","archived":false,"fork":false,"pushed_at":"2021-02-16T15:17:36.000Z","size":761,"stargazers_count":60,"open_issues_count":15,"forks_count":39,"subscribers_count":112,"default_branch":"master","last_synced_at":"2025-04-21T08:56:57.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/mapbox.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":"2016-10-06T23:37:36.000Z","updated_at":"2025-03-20T16:42:19.000Z","dependencies_parsed_at":"2022-08-13T16:20:19.904Z","dependency_job_id":null,"html_url":"https://github.com/mapbox/vector-tile-cs","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fvector-tile-cs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fvector-tile-cs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fvector-tile-cs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fvector-tile-cs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapbox","download_url":"https://codeload.github.com/mapbox/vector-tile-cs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253621286,"owners_count":21937498,"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-03T19:00:40.308Z","updated_at":"2025-05-11T19:32:40.913Z","avatar_url":"https://github.com/mapbox.png","language":"C#","readme":"# vector-tile-cs\n\nC# library for decoding [`Mapbox Vector Tiles @ v2.x`](https://www.mapbox.com/vector-tiles/) ([vector tile specification](https://github.com/mapbox/vector-tile-spec)).\n\n_**Decoding tiles created according to `Mapbox Vector Tile Specification @ v1.x` is not supported!**_\n\nAvailable as nuget package: [![nuget.org](https://img.shields.io/nuget/v/Mapbox.VectorTile.svg)](https://www.nuget.org/packages/Mapbox.VectorTile)\n\nVector tile parsers in other languages:\n* JavaScript: https://github.com/mapbox/vector-tile-js\n* C++: https://github.com/mapbox/vector-tile\n\n# Build status\nmaster branch:\n* Travis: [![Build Status](https://travis-ci.com/mapbox/vector-tile-cs.svg?token=hLpUd9oZwpjSs5JzfqFa\u0026branch=master)](https://travis-ci.com/mapbox/vector-tile-cs)\n* AppVeyor: [![Build status](https://ci.appveyor.com/api/projects/status/k8u69w8u13f7i0a7/branch/master?svg=true)](https://ci.appveyor.com/project/Mapbox/vector-tile-cs/branch/master)\n* Coveralls: [![Coverage Status](https://coveralls.io/repos/github/mapbox/vector-tile-cs/badge.svg?branch=master\u0026t=q2Lud9)](https://coveralls.io/github/mapbox/vector-tile-cs?branch=master)\n\n# Depends\n\nNative C# implementation - no dependencies.\n`NUnit` and `NUnit3TestAdapter` for running tests - will get restored automatically when building the solution.\n\n#Example\n\n```c#\nbyte[] data = //raw unzipped vectortile\nVectorTile vt = new VectorTile(data);\n//get available layer names\nforeach(var lyrName in vt.LayerNames()) {\n    //get layer by name\n    VectorTileLayer lyr = vt.GetLayer(lyrName);\n    //iterate through all features\n    for(int i = 0; i \u003c lyr.FeatureCount(); i++) {\n        Debug.WriteLine(\"{0} lyr:{1} feat:{2}\", fileName, lyr.Name, i);\n        //get the feature\n        VectorTileFeature feat = lyr.GetFeature(i);\n        //get feature properties\n        var properties = feat.GetProperties();\n        foreach(var prop in properties) {\n            Debug.WriteLine(\"key:{0} value:{1}\", prop.Key, prop.Value);\n        }\n        //or get property value if you already know the key\n        //object value = feat.GetValue(prop.Key);\n        //iterate through all geometry parts\n        //requesting coordinates as ints\n        foreach(var part in feat.Geometry\u003cint\u003e()) {\n            //iterate through coordinates of the part\n            foreach(var geom in part) {\n                Debug.WriteLine(\"geom.X:{0} geom.Y:{1}\", geom.X, geom.Y);\n            }\n        }\n    }\n}\n\n```\n","funding_links":[],"categories":["Uncategorized","Parsers \u0026 Generators"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapbox%2Fvector-tile-cs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapbox%2Fvector-tile-cs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapbox%2Fvector-tile-cs/lists"}