Skip to content

HOWTO Create tiles with a drone

Justin Forest edited this page Sep 13, 2024 · 9 revisions

It is possible and rather easy to create detailed base map layer with consumer grade drones. The procedure is the following.

Table of Contents:

Capture the images

Just fly with your drone over the area that you would like to capture, point the camera down, and take photos. Best to keep altitude fixed, like 100 or 150 meters above ground. It is best to use Litchi to perform automated flights and ancient land to create flight plans.

This tutorial was tested with DJI Mini 2, works fine.

Stitch the images

OpenDroneMap is a software that takes a bunch of drone photos and stitches them together to create a single image with combined data. The easiest way to use it is from the command line, using Docker, as described on this page.

TLDR: create a folder named datasets/project/images, put your images in that folder, then run the following command:

docker run -ti --rm -v $PWD/datasets:/datasets docker.io/opendronemap/odm --project-path /datasets project

It will take a short while, then your resulting image will be available in datasets/project/odm_orthophoto/odm_orthophoto.tif.

Create tiles

Tiles are small square image files which are actually used by Leaflet and other map frameworks. This is usually done using the GDAL software, which is again easiest to do with Docker, by running the following command:

docker run --rm -v $PWD:/home ghcr.io/osgeo/gdal:alpine-normal-latest gdal2tiles --zoom=2-25 /home/datasets/project/odm_orthophoto/odm_orthophoto.tif /home/tiles

This will take some times, then your tile images will be ready in the tiles folder.

See also

Clone this wiki locally