tilescraping:在网络上抓取地图图块的指南

  • Z8_811565
    了解作者
  • 7.5KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-14 03:11
    上传日期
瓷砖刮 在网络上抓取地图图块的指南。 此处的脚本使用 ,这是 tilelive 的命令行实用程序。 例子 Z/X/Y 到 MBTiles 以常见的 z/x/y 格式抓取 Web 墨卡托图块并将它们存储在 MBTiles 中。 请注意使用-b 、 -z和-Z参数来指定要抓取的区域(边界框)和最小/最大缩放级别。 npm install -g tl mbtiles tilelive-http tl copy -z 15 -Z 17 -b ' -80.897226 35.636093 -80.881262 35.648578 ' ' http://tile.openstreetmap.org/{z}/{x}/{y}.png ' mbtiles://./tiles.mbtiles 类似的模式使用从非缓存的 ArcGIS Server 地图服务中抓取 Web 墨卡托切片。 tl copy
tilescraping-master.zip
  • tilescraping-master
  • scraper.jpg
    7.1KB
  • README.md
    1.4KB
内容介绍
## Tilescraping ![alt tag](scraper.jpg) A guide for scraping map tiles on the web. The scripts here use [tl](https://github.com/mojodna/tl), a command line utility for tilelive. ### Examples #### Z/X/Y to MBTiles Scrape web mercator tiles in the common z/x/y format and store them in MBTiles. Notice the usage of the `-b`, `-z`, and `-Z` arguments to specify the area (bounding box) and min/max zoom levels to scrape. ```bash npm install -g tl mbtiles tilelive-http tl copy -z 15 -Z 17 -b '-80.897226 35.636093 -80.881262 35.648578' 'http://tile.openstreetmap.org/{z}/{x}/{y}.png' mbtiles://./tiles.mbtiles ``` A similar pattern uses the [tileify-ags-proxy](https://github.com/JasonSanford/tileify-ags-proxy) to scrape web mercator tiles from a non-cached ArcGIS Server map service. ```bash tl copy -z 15 -Z 17 -b '-80.897226 35.636093 -80.881262 35.648578' 'http://tileify-ags.herokuapp.com/tiles/{z}/{x}/{y}?url=http%3A%2F%2Fweb2.mobile311.com%2Farcgis%2Frest%2Fservices%2FIredell%2FIredell%2FMapServer&transparent=true&layers=show%3A136' mbtiles://./tiles.mbtiles ``` #### Mapbox Studio to MBTiles Scrape a vector tiles style and store in MBTiles. This will fail on any styles that utilize Mapbox studio fonts. You can work around this by using custom fonts. ```bash npm install -g tl mbtiles tilelive-tmstyle tilelive-mapbox tl copy -z 13 -Z 17 -b '-80.897226 35.636093 -80.881262 35.648578' tmstyle://./pencil.tm2/ mbtiles://./tiles.mbtiles ```
评论
    相关推荐