MichaelKreil / rc3-21-map-scraper

Home Page:https://michaelkreil.github.io/rc3-21-map-scraper/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rc3-map-scraper

scraping every room of rc3 world

  • scrapes every room
  • finds links to more rooms (function scanForMapUrls)
  • generates screenshots (function generateScreenshot)
  • Uses force-directed graph layouting to arrange all rooms in one map.
  • Starts with a rough layout and gradually increases the repulsion forces to prevent overlaps.
  • The result is saved by exportVRT() as images/map.vrt in a VRT (GDAL Virtual) format
  • Uses gdal_translate to merge all the room images described in map.vrt as a large GeoTIFF, since GeoTIFF can handle the size of 131'072 x 131'072.
  • Uses gdal2tiles.html to split and merge the GeoTIFF into a tree of map tiles.
  • Reduces the size of the tile tree down to 20% by:
    1. deleting all empty tiles (black tiles with the same md5 hash). Leaflet takes care of missing tiles by using the layer option errorTileUrl,
    2. using pngquant to reduce the file size of the remaining tiles.

About

https://michaelkreil.github.io/rc3-21-map-scraper/

License:MIT License


Languages

Language:JavaScript 96.3%Language:Shell 3.7%