Skip to main content

Questions tagged [gdal2tiles]

gdal2tiles generates directory with TMS tiles, KMLs and simple web viewers

Filter by
Sorted by
Tagged with
1 vote
2 answers
617 views

gdal2tiles_parallel only creating one file per zoom level

I'm trying to create a TMS layer from a gdal VRT dataset. To speed thing up, I'm trying to use gdal2tiles_parallel (https://github.com/GitHubRGI/geopackage-python/wiki/Usage-Instructions-for-...
1 vote
1 answer
2k views

Converting a 32-bit GeoTIFF to map tiles using gdal2tiles

I have a 32-bit GeoTIFF file I'm trying to convert to map tiles using gdal2tiles.py. What the GeoTIFF is supposed to look like when loaded straight into QGIS (no scaling, styling, etc): And here is ...
2 votes
1 answer
506 views

Reprojecting EPSG:5514 to EPSG:3857 for use in Leaflet

I have one JPG (170 MB) and JGW file of a small area projected in EPSG:5514 (Image provider told me.) JGW file: 0.1250000 0.0000000 0.0000000 ...
2 votes
2 answers
511 views

How to use gdal to generate overview tiles from existing zoom level 21 tiles?

I have multiple PNGs in a quadkey format for zoom level 21, for example: 023012311121232233120.PNG 023012311121232233121.PNG 023012311121232233122.PNG 023012311121232233123.PNG etc.. I used ...
1 vote
1 answer
258 views

Line distortions in tiles generated with gdal2tiles

Objective: generate mercator tiles 256x256 from a huge jpeg2000 image. Tool used: gdal2tiles.py GDAL version: 3.2.2 Command line: gdal2tiles.py -z 19 -r [any] image.jp2 tiles/ Source image: image.jp2 ...
0 votes
1 answer
27 views

Create tile pyramid from large amount of GeoTIFFs

I have a large set of GeoTIFFs, about 12 000 files (total 18GB), that together forms one large map. What would be the best approach to create a tile pyramid out of this dataset? I'm thinking that to ...
1 vote
0 answers
76 views

gdal2tiles-leaflet producing bad tiles

I am using gdal2tiles-leaflet in an attempt to generate a tileset for a map renderer I'm working on, however, the resulting tileset appears to be completely misaligned and won't render properly in ...
2 votes
1 answer
717 views

Error in gdal2tiles with --processes

gdal2tiles -w leaflet --processes=2 -x -a 0 -z 1-15 mercator.tif tiles.webtiles Using gdal from QGIS 3.22.0 this command gives this error immediately after start. Without the processes parameter it ...
2 votes
1 answer
165 views

what's the point of tile layers with kml files?

By default gdal2tiles will create a bunch of *.tif's and *.kml files. I know that KML stands for Keyhole Markup Language and, in my experience, they're an alternative format to shapefiles, but I don't ...
0 votes
0 answers
54 views

RuntimeError: Illegal values for buffer size?

Does anyone know what this "RuntimeError: Illegal values for buffer size" error is? I am running gdal2tiles.py on a geoTIFF. Below is the message in my terminal. I don't know if the buffer ...
3 votes
0 answers
1k views

GDAL tiling DTED (dt2) dataset as gdal2tiles for 3D Maps

i am searching some webgl technologies to create 3d map with digital elevation data. for web tech. i have found ReadyMap SDK to create 3d map from TMS... in ReadyMap for elevation data it uses sth ...
2 votes
0 answers
111 views

Building a tileset incrementally, using GDAL / gdal2tiles.py

I have a tileset covering a local area (currently around 500km2, but growing towards 3000km2). The tileset is built from a number of ecw files with gdal2tiles.py: $ gdalbuildvrt all.vrt parts/*.ecw $ ...
0 votes
0 answers
35 views

Create user interface for gdal2tiles

I am trying to create UI for gdal2tiles which select a Tiff File then use it as gdal2tiles input. I am using Django for backend. but there is a problem in read image. Here is my HTML code: <form ...
1 vote
1 answer
149 views

Unable to install gdal2tiles on PyCharm

I have installed gdal 2.4.1 while installing gdal2tiles. I am getting this error: ERROR: Could not find a version that satisfies the requirement GDAL==2.4.1 (from gdal2tiles) (from versions: 1....
0 votes
1 answer
587 views

Using gdal2tiles XML output with Proj4Leaflet [closed]

I use gdal2tiles to create tiles from a referenced image (with profile parameter set to "raster"). Then I use Proj4Leaflet to display the results. In order to do that I need to specify ...
2 votes
3 answers
3k views

gdal2tiles and QGIS

I have made a tile pyramid of a number of Dutch topographical maps using gdal2tiles. This gives apart from the tiles openlayers.html and tilemapresource.xml. The openlayers shows perfectly and ...
1 vote
2 answers
1k views

Install gdal2tiles inside conda environment

I need to use gdal2tiles with Anaconda 3 on Ubuntu 18.04. I've created the environment using: conda create --name gisenv python=3.6 I've installed GDAL with: conda install gdal After this I've ...
1 vote
1 answer
538 views

How to tile multiple GeoTIFFs exported from Earth Engine?

When exporting large raster datasets from Google Earth Engine, the data is broken up into many GeoTIFFs. What is the best way to create map tiles from these? I have a couple of concerns in regards to ...
1 vote
0 answers
50 views

gdal2tiles finding unexpected state either way this GeoJSON is formatted [closed]

I am using gdal2tiles with a GeoJSON file to process. It is giving the following errors when trying to process the file below : ERROR 1: At line 29, character 16: Unexpected state: ',' or ']' ...
0 votes
1 answer
1k views

Gdal2Tiles getting tif with dtype = uint8 but want int16

I have a gdal2tiles code for getting tiff file. In my code I am getting true tiff format but it makes my dype uint8. I want int16 for dtype. how can I overcome it? I know I have to add gdal.GDT_Int16 ...
1 vote
0 answers
113 views

Save gdal2tiles output folder directly to s3

Using the vsis3 prefix with gdal2tiles command can upload files to s3 bucket successfully. However, gdal attempts to write files with backslashes "{x}{y}{z}.png", although in s3, normal ...
1 vote
2 answers
3k views

No module named 'ogr' in GDAL 3.3.2 installing

I download GDAL 3.3.2(with compiler MSVC 2019) from here. I have downloaded the following components and install them in windows 10 x64: gdal-303-1928-x64-core.msi GDAL-3.3.2.win-amd64-py3.9.msi gdal-...
1 vote
0 answers
166 views

How to display locally stored raster tiles with zoom levels in MapServer

I am completely new to GIS. I am having trouble showing raster tiles from QGIS on MapServer. My goal is to have zoom level tiles shown as basemap on MapServer, on which then I can display features ...
1 vote
1 answer
313 views

How to define origin and extent for Raster Images and getting it work properly in gdal2tiles

I'm trying to generate Raster Tiles for my Nasa's Black Marble which has the dimension of 86,400 x 43,200 that I combined out of all the 8 images. I've been known about gdal2tiles. So basically, I ...
0 votes
1 answer
207 views

Using gdal2tiles with overlapping GeoTIFFs

Say I have these two GeoTIFFs: https://mapwarper.net/maps/67975 https://mapwarper.net/maps/67976 (you can get the GeoTIFFs if you click on the Export tab) I'd like to create a single tile layer ...
0 votes
0 answers
129 views

GDAL command alternative in dzsave

I am new to dzsave (libvips) library. Before I stumbled upon this I was using GDAL to tile images. I decided to look into dzsave because GDAL was taking 40 seconds even after using the --process flag ...
4 votes
2 answers
9k views

Installing GDAL on Windows 10 using binaries for command line functionality

I figured that I would ask this question hoping that someone finds a document or provides a description that actually works. I've followed countless sites, GitHub issues, and other forum posts but ...
1 vote
1 answer
840 views

How to get the Minimun and Maximum zoom level by coordinates

I am new to GDAL, using the below commands I was able to generate tiles for a particular image. After the image is tiled the min and max zoom levels are decided based on the coordinates provided. My ...
1 vote
0 answers
32 views

Tile GeoTIFF images in locations far from each other in one layer

How to tile two aerial TIFF images from two cities in one layer? I understand that first, I should create a virtual layer (vrt) and then tile it after reprojection. However, gdal2tile creates too many ...
1 vote
0 answers
154 views

Tiling Mars themis raster for Cesium

I am trying to tile the Mars themis raster that has the following crs: PROJCS["SimpleCylindrical Mars", GEOGCS["GCS_Mars", DATUM["D_Mars", ...
0 votes
0 answers
299 views

Converting map data to image tiles

I’m trying to find a good solution to convert map data into image tiles that I can display on a website using cesium. I do have a working version of gdal2tile.py script and I can do the conversion, ...
0 votes
1 answer
406 views

gdal2tiles.py Differs from Original Raster

When comparing in QGIS the output of gdal2tiles.py to the raster from which the tiles were generated there is a clear difference. In this image Pink is the gdal2tiles.py output, green is the original ...
0 votes
0 answers
185 views

gdal2tiles.py Only Creating Images for Max Zoom

I set off some tasks running gdal2tiles.py for certain rasters with a zoom range of 8-20. To my dismay I return the next day to find only images for zoom level 20 have been created. I understand that ...
0 votes
0 answers
180 views

Inconsistencies between xyz images in Mapbox and raster

I have a 5m raster that I want to show on Mapbox. Using gdal2tiles.py I created the xyz images and am serving them from s3 up to zoom level 18. The idea is that the user should be able to click on a ...
9 votes
1 answer
1k views

Ignore empty tiles in gdal2tiles.py when generating tiles

I am in the process of generating a large set of tiles from a .vrt file composed of many images. The image is following a road section, being very long and small strip of images and due the shape of ...
2 votes
1 answer
314 views

Is it possible to set a Tile Map Service only by copying the folder structure to a hosted server?

I used gdal2tiles to generate a directory with tiles of a bigger raster. Now, I'm able to see these local tiles on my browser, using the generated web pages (e.g. OpenLayers.html). Thus, I copied the ...
1 vote
1 answer
687 views

gdal_edit not find as internal command in Python

I am writing the geoinformation using the gdal_edit command using python in Jupyter notebook. Below is the syntax. !gdal_edit -a_ullr -1.149576 85.247405 -92.762859 88.022318 -a_srs "+proj=...
0 votes
1 answer
410 views

Make black pixels transparent in GeoTIFF using Python

I'm looking for a tool that will allow me to convert the following black pixels or null data to transparent so when I turn it into tiles I can't see them. I'm trying to do it in Python so I can ...
0 votes
0 answers
246 views

Map tiles, GDAL/gdal2tiles, trying to find where our bottleneck is

I'm new to map tiling and the somewhat extensive testing I've been benchmarking, I've either hit a floor (unlikely imo) or I'm doing something extremely wrong. Server specs are 3.7 ghz/8 threads, 16GB ...
1 vote
0 answers
357 views

How to use gdal2tiles in python and skip/exclude blank tiles

I am using gdal2tiles in python. It all works well. In gdal the flag -x can be used to ignore empty tiles, however in the gdal2tiles documentation there does not appear to be an option for this ...
3 votes
2 answers
946 views

How to not generate .png.aux.xml files when using gdal2tiles?

I am trying to use the GDAL Python script gdal2tiles.py to create a few sets of map tiles. Whenever I execute the script, it also creates a set of .png.aux.xml files for every regular map tile (.png). ...
6 votes
5 answers
8k views

gdal2tiles.py generates wrong tiles / MapTiler the right ones

I'm trying to generate tiles with gdal2tiles.py and the resulting tiles are stored as 18/132639/164219. If I do the same thing with MapTiler (the GUI variant of gdal2tiles) the tile result is 18/...
2 votes
1 answer
307 views

Issue creating tiles from GeoTIFF which crosses the 180th Meridian

I've included more information and the scripts that were used to generate the output. Example results can be found here at the links below and are all generated from the same original GeoTIFF. Each ...
0 votes
1 answer
389 views

"The term 'gdal2tiles.py' is not recognized" error and then gdal2tiles.py script opens instead of running after adding necessary system variables

I'm using GDAL 3.3.1 installed via OSGeo4w. I ran gdal2tiles.py world.tif but it said gdal2tiles.py : The term 'gdal2tiles.py' is not recognized as the name of a cmdlet, function, script file, or ...
2 votes
3 answers
833 views

Merge XYZ tilesets with different origins

So I have hit a snag. I wish to merge multiple XYZ tile sets together. Meaning I have multiple directories which contain tiles in the format /zoom/x/y.png. I tried just copy and pasting them in to ...
6 votes
3 answers
1k views

GeoTIFF creation using gdal_translate fails to produce expected result

I am converting weather radar data (grib2) to raster tiles for Mapbox. The resulting tiles are mis-aligned from the original grib2 data and I am not sure why. I have a 4-step process using GDAL in the ...
0 votes
2 answers
450 views

gdal2tiles has no attribute 'generate_tiles'

I created a new conda environment with python version 3.7 Then installed conda install -c conda-forge gdal=2.4 Then installed gdal2tiles pip install gdal2tiles and then python test.py #test.py ...
0 votes
0 answers
316 views

gdal2tiles generate only missing tiles

I am working on a sentinel-2 satellite images project and I need to create a map from some satellite images. The current flow is something like this: Reproject the images in 3857 with gdalwarp ...
0 votes
0 answers
112 views

Requirements or limits for tiling a huge number of TIFFs

I want to create webtiles from the topographic maps of large areas, eg. a whole country. So I have some 100 GeoTIFFs, all 4000x4000. So first I create a vrt: gdalbuildvrt tifs.vrt tifs/*.tif Second ...
1 vote
2 answers
807 views

Using gdal2tiles on mac [closed]

I need to create some map illustrated tiles to use in leaflet.js for a small web-app I'm building. So far I've been unable to install and configure the GDAL package to work for me. The things I have ...