{"id":18580433,"url":"https://github.com/gumblex/tms2geotiff","last_synced_at":"2025-04-10T11:35:00.950Z","repository":{"id":48080610,"uuid":"164384350","full_name":"gumblex/tms2geotiff","owner":"gumblex","description":"Download tiles from Tile Map Server (online maps) and make a large geo-referenced image","archived":false,"fork":false,"pushed_at":"2023-07-30T08:19:38.000Z","size":46,"stargazers_count":150,"open_issues_count":0,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T19:45:53.637Z","etag":null,"topics":["geotiff","gis","online-maps","tms"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gumblex.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":"2019-01-07T05:50:31.000Z","updated_at":"2025-03-14T07:27:17.000Z","dependencies_parsed_at":"2024-11-06T23:46:15.889Z","dependency_job_id":"9e261ecc-81b6-4afd-ab25-0826b85ea8e9","html_url":"https://github.com/gumblex/tms2geotiff","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumblex%2Ftms2geotiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumblex%2Ftms2geotiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumblex%2Ftms2geotiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumblex%2Ftms2geotiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gumblex","download_url":"https://codeload.github.com/gumblex/tms2geotiff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208690,"owners_count":21065205,"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":["geotiff","gis","online-maps","tms"],"created_at":"2024-11-06T23:46:04.211Z","updated_at":"2025-04-10T11:34:55.465Z","avatar_url":"https://github.com/gumblex.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tms2geotiff\nDownload tiles from [Tile Map Server](https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames) (online maps) and make a large image.\n\nIf output is TIFF, it can write to a GeoTIFF image.\nOtherwise, it will save to a normal image with a World File for georeferencing (in EPSG:3857).\n\n* Dependencies: Pillow, requests/httpx.\n* Optional dependencies:\n  * GDAL, numpy: for writing **BigTIFF (\u003e4GB GeoTIFF)**\n  * tqdm: progress bar\n\nIt can save the tiles directly as a **MBTiles** file now. The big image file is not required to generate.\n\n\n**GUI**: Directly run `python3 tms2geotiff.py` to open a GUI window.\n\n    usage: tms2geotiff.py [-h] [-s URL] [-f LAT,LON] [-t LAT,LON] [-e min_lon,min_lat,max_lon,max_lat] [-z ZOOM]\n                          [-m MBTILES] [-g]\n                          [output]\n\n    Merge TMS tiles to a big image.\n\n    positional arguments:\n      output                output image file (can be omitted)\n\n    options:\n      -h, --help            show this help message and exit\n      -s URL, --source URL  TMS server url (default is OpenStreetMap: https://tile.openstreetmap.org/{z}/{x}/{y}.png)\n      -f LAT,LON, --from LAT,LON\n                            one corner\n      -t LAT,LON, --to LAT,LON\n                            the other corner\n      -e min_lon,min_lat,max_lon,max_lat, --extent min_lon,min_lat,max_lon,max_lat\n                            extent in one string (use either -e, or -f and -t)\n      -z ZOOM, --zoom ZOOM  zoom level\n      -m MBTILES, --mbtiles MBTILES\n                            save MBTiles file\n      -g, --gui             show GUI\n\n    If no parameters are specified, it will open the GUI.\n\nFor example,\n\n    python3 tms2geotiff.py -s https://tile.openstreetmap.org/{z}/{x}/{y}.png -f 45.699,127 -t 30,148.492 -z 6 output.tiff\n\ndownloads a map of Japan.\n\nIf the coordinates are negative, use `--from=-12.34,56.78 --to=-13.45,57.89`\n\n\n# tmssplit\nSplit a large GeoTIFF image into tiles for a Tile Map Server.\n\nDependencies: GDAL, Pillow, numpy, scipy, pyproj\n\n    usage: tmssplit.py [-h] [-z ZOOM] [-n NAME] [-s SIZE] [-p PROJ] [-t THREADS]\n                       inputfile outputdir\n\n    Split a big GeoTIFF image to TMS tiles.\n\n    positional arguments:\n      inputfile             input GeoTIFF file\n      outputdir             output directory\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      -z ZOOM, --zoom ZOOM  zoom level(s), eg. 15 or 14-17\n      -n NAME, --name NAME  image file name format, default {z}_{x}_{y}.png\n      -s SIZE, --size SIZE  image size in px, default 256px\n      -p PROJ, --proj PROJ  set projection id\n      -t THREADS, --threads THREADS\n                            set thread number\n\n    -z is required\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgumblex%2Ftms2geotiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgumblex%2Ftms2geotiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgumblex%2Ftms2geotiff/lists"}