Skip to content

lanets/ugly-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  • docker
  • docker-compose
  • The emperor of Makind.

Dev setup

git clone https://github.com/caflamand/ugly-map.git
sudo docker-compose up

Convert png to tiles

Convert png to tif

Covert png to tif with this online tool

https://onlineconvertfree.com/convert/png/

Install GDAL Ubuntu 20.04

sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update
sudo apt-get update
sudo apt-get install gdal-bin
sudo apt-get install libgdal-dev
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
pip install GDAL

Use GDAL2tiles.py

If not in path: /usr/bin/gdal2tiles

gdal2tiles.py -p raster --s_srs ESPG:xyz --xyz -z 0-6 -w leaflet -t LanETS-MAP.png <input_file> <output_directory>/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published