{"id":18678219,"url":"https://github.com/openmaptiles/extracts","last_synced_at":"2025-04-12T02:40:58.911Z","repository":{"id":68835986,"uuid":"69942254","full_name":"openmaptiles/extracts","owner":"openmaptiles","description":"Create Country and City extracts from OpenMapTiles or any other MBTiles","archived":false,"fork":false,"pushed_at":"2024-04-30T13:00:26.000Z","size":296,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T22:21:17.035Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"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/openmaptiles.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-10-04T07:20:01.000Z","updated_at":"2024-04-30T13:00:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e47bd50-3d88-421c-a9bc-64c63185dd46","html_url":"https://github.com/openmaptiles/extracts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmaptiles%2Fextracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmaptiles%2Fextracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmaptiles%2Fextracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openmaptiles%2Fextracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openmaptiles","download_url":"https://codeload.github.com/openmaptiles/extracts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248507467,"owners_count":21115607,"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-11-07T09:36:24.943Z","updated_at":"2025-04-12T02:40:58.906Z","avatar_url":"https://github.com/openmaptiles.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MBTiles Extracts from OpenMapTiles\n\nThe **create-extracts** component is responsible for cutting out specific country and\ncity extracts as specified in the `extracts.csv` CSV file from a planet scale MBTiles file.\n\nIt is made especially for cutting out vector tiles from the latest OSM2VectorTiles planet dump but can be adapted\nto support other MBTiles formats.\n\n## Usage\n\n### Submit new Extract\n\nYou can modify the `extracts.csv` directly in GitHub and create a PR.\n\n### Download Planet MBTiles\n\nDownload the entire planet and put it into `data`.\n\n```bash\nwget -O ./data/planet.mbtiles https://osm2vectortiles-downloads.os.zhdk.cloud.switch.ch/v2.0/planet_2016-06-20_3d4cb571d3d0d828d230aac185281e97_z0-z14.mbtiles\n```\n\n### Python\n\nYou can use the `create_extracts.py` Python script yourself to generate an extract and optionally upload it to S3.\n\n```bash\n# Create extracts limited by a bounding box specified in the CSV file\npython create_extracts.py bbox planet.mbtiles extracts.csv\n```\n\n### Docker\n\nTo use **create-extracts** inside the Docker Compose workflow you need to have\na **full** `planet.mbtiles` ready in the `data` folder.\n\n**create-extracts** will use `tilelive-copy` to cut out extracts for countries and cities.\nTo produce the extracts for all cities and countries this can take up to several days.\nThe results will be first be stored in the `data` folder and then uploaded\nto a S3 if configured.\n\n```\ndocker-compose run create-extracts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmaptiles%2Fextracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenmaptiles%2Fextracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmaptiles%2Fextracts/lists"}