https://github.com/stamen/the-ultimate-tile-stitcher
stitch & scrape tiles from slippy map services
https://github.com/stamen/the-ultimate-tile-stitcher
carto-tools scrape slippy-map stitch tilemap
Last synced: 10 months ago
JSON representation
stitch & scrape tiles from slippy map services
- Host: GitHub
- URL: https://github.com/stamen/the-ultimate-tile-stitcher
- Owner: stamen
- License: mit
- Created: 2017-07-28T21:22:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-10T19:43:56.000Z (almost 2 years ago)
- Last Synced: 2025-07-04T23:53:43.060Z (10 months ago)
- Topics: carto-tools, scrape, slippy-map, stitch, tilemap
- Language: Python
- Homepage: https://github.com/stamen/the-ultimate-tile-stitcher
- Size: 9.77 KB
- Stars: 36
- Watchers: 13
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# the-ultimate-tile-stitcher
It can scrape things for you and stitch them for you too.
If you're on windows, run `conda install -c conda-forge shapely`
To install: `pip3 install -r requirements.txt`
It needs `python 3.6`.
Make a geojson containing `Polygon` outlines of areas you want to scrape
Then: (assuming your geojson is named `poly.geojson`, amend the instructions if not)
1. `mkdir tiles`
2. `python3 scraper.py --poly poly.geojson --zoom 19 --url http://.../abcd/{z}/{x}/{y}@2x.png --out-dir tiles`
3. `python3 stitcher.py --dir tiles --out-file out.png`
Substitute `http://.../abcd/{z}/{x}/{y}@2x.png` for the url for the slippy map tile service.
If you the scraper repeatedly fails in downloading certain tiles, and the tile urls (put into `failed_urls.txt`) work, then you could set `--max-connections` to something low (default is 8) or increase `--retries` (default is 10)