Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

gdal2tiles georeferenced image as overlay not working

$
0
0

Ive been looking for a solution to my problem for some time now.
I’m using gdal2tiles-leaflet to create tiles for my Leaflet application.
The images i use are GeoTiff’s with the embedded projection WGS84, they are in flight photos taken by a drone.

So I tried gdal2tiles-leaflet. I successfully created a map where i can navigate the image. It works great. But the image is not working properly when i use it as a overlay layer on a normal map, with other base layers. Such as open street map.
The image is then super large, so i have to zoom out really much. And the image covers almost the whole earth. So it’s basically not georeferenced. In the way i’d like it to be.

Here’s some of the commands that i’ve been using:

gdal2tiles-multiprocess.py -l -p raster -z 0-9 test.tif tiles
gdal2tiles-multiprocess.py -l -p raster -z 0-7 -s src.prj -w all test.tif tiles
gdal2tiles-multiprocess.py -l -p raster -z 0-7 -s src.prj -t "+proj=longlat +ellps=WGS84" -w all test.tif tiles
gdal2tiles-multiprocess.py -l -p geodetic -z 14-15 test.vrt

I’ve tried different zoom levels, raster, geodetic and so on. But I cant seem to get the result im looking for.

I know that MapTiler has the functionality to get this to work, i’ve tried it on a smaller image. But the application does not really fit in to my workflow on the server everything is hosted on.
So I would like to be able to use gdal2tiles-leaflet.

I pretty certain im just missing some small thing, so please, can someone help me out?

Thanks!


Viewing all articles
Browse latest Browse all 397

Trending Articles