{"id":13784407,"url":"https://github.com/manimaul/SwiftVectorTiles","last_synced_at":"2025-05-11T19:33:05.197Z","repository":{"id":44474258,"uuid":"77562149","full_name":"manimaul/SwiftVectorTiles","owner":"manimaul","description":"A Swift Mapbox vector tile encoder","archived":false,"fork":false,"pushed_at":"2021-01-17T15:15:23.000Z","size":2082,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T19:08:45.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manimaul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-28T21:23:07.000Z","updated_at":"2024-06-08T21:28:23.000Z","dependencies_parsed_at":"2022-07-15T17:01:07.136Z","dependency_job_id":null,"html_url":"https://github.com/manimaul/SwiftVectorTiles","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/manimaul%2FSwiftVectorTiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manimaul%2FSwiftVectorTiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manimaul%2FSwiftVectorTiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manimaul%2FSwiftVectorTiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manimaul","download_url":"https://codeload.github.com/manimaul/SwiftVectorTiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225086620,"owners_count":17418766,"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:42.469Z","updated_at":"2024-11-17T20:31:58.872Z","avatar_url":"https://github.com/manimaul.png","language":"Swift","readme":"# SwiftVectorTiles\nA Swift encoder for vector tiles according to the [Mapbox vector tile spec](https://github.com/mapbox/vector-tile-spec)\n\n### Acknowledgements\n* [Java Vector Tiles](https://github.com/ElectronicChartCentre/java-vector-tile)\n* [GEOS \u0026 JTS](https://trac.osgeo.org/geos/)\n* [Mapbox Vector Tile Spec](https://github.com/mapbox/vector-tile-spec)\n* [Swift Google Protocol Buffers](http://protobuf.io/#swift)\n\n### Status\nBeta - expect a few bugs\n\n### Cocoapods\n```ruby\nuse_frameworks!\n\ntarget 'YourTarget' do\n  pod 'SwiftVectorTiles', :git =\u003e 'https://github.com/manimaul/SwiftVectorTiles.git'\nend\n```\n\n### Example\n\n```swift\n\n// initialize an encoder\nlet encoder = VectorTileEncoder()\n\n// create some attributes\nvar atts = [String: Attribute]()\natts[\"some_key\"] = Attribute.attString(\"some_value\")\n\n// polygon geometry \"well known text\"\nlet wkt = \"POLYGON ((0 0, 4096 0, 4096 4096, 0 4096, 0 0))\"\n\n// add the geometry and it's attributes as a \"feature\"\nencoder.addFeature(layerName: \"land\", attributes: atts, geometry: wkt)\n\n// encode to Mapbox vector tile\nlet data :Data = encoder.encode()\n\n```\n\n### Screenshots\n\n| Encoded [Natural Earth Data](http://www.naturalearthdata.com/) geometries| |\n| --------------------------------------------- | ---------------------------------------- |\n|![](screenshots/shot1.png)|![](screenshots/shot2.png)|\n","funding_links":[],"categories":["Uncategorized","Parsers \u0026 Generators"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanimaul%2FSwiftVectorTiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanimaul%2FSwiftVectorTiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanimaul%2FSwiftVectorTiles/lists"}