Questions tagged [gdal2tiles]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
113 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 ...
neubert's user avatar
  • 360
0 votes
0 answers
19 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 ...
lizo1122's user avatar
2 votes
0 answers
35 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 $ ...
Mads Skjern's user avatar
0 votes
0 answers
29 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 ...
user9470486's user avatar
1 vote
0 answers
34 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 ']' ...
David 's user avatar
  • 232
0 votes
0 answers
149 views

Mapping a tile in a tile layer to WGS84 bounding coordinates

gdal2tiles splits the Earth into a bunch of grids. Each tile is 256x256 pixels but the difference between the bounding longitudes changes as the latitude changes. How can I determine the bounding ...
neubert's user avatar
  • 360
1 vote
0 answers
83 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 ...
Jeti's user avatar
  • 11
1 vote
0 answers
148 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 ...
SomeOne's user avatar
  • 41
0 votes
1 answer
132 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 ...
neubert's user avatar
  • 360
0 votes
0 answers
106 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 ...
Akhil's user avatar
  • 21
1 vote
1 answer
177 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 ...
Rahul Ahire's user avatar
1 vote
1 answer
598 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 ...
Akhil's user avatar
  • 21
1 vote
2 answers
326 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 ...
Atias's user avatar
  • 41
1 vote
0 answers
27 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 ...
Arash Archer's user avatar
0 votes
0 answers
203 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, ...
Ennio's user avatar
  • 101
0 votes
1 answer
293 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 ...
sobmortin's user avatar
0 votes
0 answers
164 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 ...
sobmortin's user avatar
0 votes
0 answers
146 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 ...
sobmortin's user avatar
1 vote
1 answer
540 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=...
Nidhi Verma's user avatar
0 votes
1 answer
345 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 ...
Jack Duffy's user avatar
0 votes
0 answers
174 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 ...
alturic's user avatar
1 vote
0 answers
305 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 ...
Spatial Digger's user avatar
3 votes
2 answers
653 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). ...
Matt N.'s user avatar
  • 65
1 vote
1 answer
401 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 ...
Matt N.'s user avatar
  • 65
6 votes
3 answers
891 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 ...
David 's user avatar
  • 232
0 votes
0 answers
262 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 ...
colos_enough's user avatar
2 votes
1 answer
607 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 ...
Tom's user avatar
  • 121
0 votes
0 answers
96 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 ...
Tom's user avatar
  • 121
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-...
Morteza Malvandi's user avatar
0 votes
1 answer
339 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 ...
BallpenMan's user avatar
  • 1,217
1 vote
0 answers
209 views

Remove white background after using gdal2tiles

I'm using gdal2tiles in a orthomosaic image exported from metashape. When exporting I select to add the alpha channel as you can see below, but after running gdal2tiles I get a white background ...
TMarconi's user avatar
4 votes
1 answer
2k views

Getting the same result from "Generate XYZ Tiles" and "Gdal2Tiles" in QGIS

I am trying to get the same result from these two functions presented in QGIS 3.16. The first one is "Generate XYZ Tiles (Directory)" that it is embedded in QGIS, while the second one is the ...
Koba's user avatar
  • 139
0 votes
2 answers
406 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 ...
user1298426's user avatar
1 vote
1 answer
93 views

Strange tiles with gdal2tiles

When I run gdal2tiles with this command I get tiles that look like the one below. The Tiff-file is fine, it shows fine in Qgis. The image is 7560x14517 pixels. I tried to scale down the image to ...
Mårten Swärd's user avatar
1 vote
0 answers
55 views

gdal2tiles rx, ry, rxsize, rysize, wx, wy, wxsize, wysize

Reading the source code of gdal2tiles.py, one often comes across the variables rx, ry, rxsize, rysize, wx, wy, wxsize and wysize. For example, when reading raster data, you encounter: data = ds....
bitshift's user avatar
1 vote
1 answer
204 views

The xyz background does not rendering

I am trying to use the orthophotos as my background in project. I have used gdal2tiles to prepare the tiles for xyz. Then in the next step, I have uploaded the folder in our server. Then I make a new ...
Hermetik's user avatar
1 vote
1 answer
233 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 ...
kleio12345's user avatar
1 vote
1 answer
625 views

How to run equivalent of gdal2tiles using GDAL C/C++ API?

GDAL includes a comprehensive low-level API in C and C++. It also includes some high-level APIs that effectively run the equivalent of some of the GDAL command-line utilities. (See: https://gdal.org/...
Son of a Beach's user avatar
0 votes
0 answers
132 views

Difference in pixel size between gdalinfo and gdal2tiles

I'm getting two different pixel size values, does anyone know what is the reason for this issue? From gdalinfo: From gdal2tiles.py: GDAL version: 3.20
Daniel Shlomo's user avatar
0 votes
0 answers
303 views

GDAL2Tiles has low resolution quality

I have a project with a bunch of large, high-resolution Tiff images that I will tilling with gdal2tiles and use on Openlayers. Those Tiff images have been taken on a drone. Example: While I tilling ...
Pika Long's user avatar
0 votes
0 answers
77 views

gdal2tiles QGIS 3.10 not referenced properly

I processed virtual rasters with gdal2tiles. The output seems reasonable and it is displayed correctly on the generated output maps (Leaflet, Openlayers, Google). I then copied the tiles to a nginx ...
salamandra's user avatar
0 votes
0 answers
98 views

GDAL2TILES black triangels and no transparency

I refer to the Problem/Solution in this Article: Output of gdal2tiles has black edges round it I've the same problem and tried so many options and variations with no success. :( I've some geotiffs (...
crazypix's user avatar
2 votes
1 answer
279 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 ...
jr.'s user avatar
  • 141
1 vote
0 answers
178 views

Leaflet in R Shiny -- Custom Color Ramp for Tiled Data?

I have large-ish grids (roughly 9000 x 9000 cells) of model results in single-band GeoTIFFs (re-projected from raw outputs in FLT in a different coordinate system). I am displaying them over a tiled ...
TomEvans's user avatar
4 votes
1 answer
549 views

How generate transparent tiles via gdal2tiles.py?

I have an ecw file and I want create tile via gdal2tiles.py. The file is as follow: Note: Green color is style of a polygon layer that is under the ecw layer. I want to transparent nodata sections in ...
Morteza Malvandi's user avatar
2 votes
2 answers
762 views

GDAL3 gdal2tiles AttributeError: 'SpatialReference' object has no attribute 'this'

Windows10 64bit. I did a clean Python & GDAL install using the instructions on this site, but then for the latest 3.1.2 GDAL version and Python 3.7.9. I'm trying to run a most basic gdal2tiles.py ...
PSZ_Code's user avatar
  • 231
2 votes
1 answer
500 views

GDAL GeoTIFF to GeoPackage overview building failed error

I have multiple GeoTIFFs in UTM projection. I need to create GPKG SQLite databases. I noticed that some (Example3) conversions are failing with overview error. What is cause for the failure ? How ...
addcolor's user avatar
  • 1,272
1 vote
0 answers
148 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", ...
semper's user avatar
  • 11
0 votes
1 answer
39 views

Replacing part of a tileset with gdal2tiles

Is it possible to run gdal2tiles to replace a specific part of a tileset? We've created a tileset whose generation took almost 2 days and then found out that one of the input files had an issue (it ...
BritishSteel's user avatar
  • 6,617
1 vote
1 answer
361 views

GeoTIFF to Web Mercator (tiles)

I was georeferencing a map. (it’s now a working map in the GeoTIFF format) Then I used gdal2tiles -z5-11 myFile.tif myFolder but the resulting tiles were incompatible with Mapbox and compared to ...
DolphinAir's user avatar