Questions tagged [gdal2tiles]
gdal2tiles generates directory with TMS tiles, KMLs and simple web viewers
171
questions
0
votes
0
answers
25
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
11
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 ...
2
votes
2
answers
46
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). ...
0
votes
1
answer
36
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 ...
7
votes
3
answers
284
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
0
answers
64
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
...
2
votes
1
answer
218
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 ...
0
votes
0
answers
38
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 ...
0
votes
1
answer
786
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-...
0
votes
1
answer
104
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 ...
1
vote
0
answers
48
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 ...
3
votes
1
answer
675
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 ...
0
votes
2
answers
137
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
...
1
vote
1
answer
27
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 ...
1
vote
0
answers
27
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....
0
votes
1
answer
79
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 ...
1
vote
1
answer
116
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 ...
1
vote
1
answer
192
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/...
0
votes
0
answers
54
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
0
votes
0
answers
137
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 ...
0
votes
0
answers
52
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 ...
0
votes
0
answers
35
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 (...
2
votes
1
answer
153
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 ...
1
vote
0
answers
118
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 ...
4
votes
1
answer
293
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 ...
2
votes
2
answers
552
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 ...
2
votes
1
answer
253
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 ...
1
vote
0
answers
92
views
How to tile 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
1
answer
30
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 ...
1
vote
1
answer
142
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 ...
1
vote
1
answer
390
views
The position and size of my Tile Map is incorrect when it is displayed in React-Leaflet
I converted the GeoTIFF file to a tiles map. I'd like to display it in react-leaflet, but the size and position are not right.
What can I do to fix it?
This is condition when displayed.
(overlaid on ...
3
votes
2
answers
805
views
gdal2tiles is not recognized as an internal or external command?
I try to follow this guide ► Creating super-overlays with gdal2tiles, everything goes well until it reachs gdal2tiles part.
When I type the command gdal2tiles.py -p geodetic -k bluemarble2.vrt or ...
2
votes
1
answer
4k
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
232
views
Cannot get transparent tiles when using gdal2tiles on a GeoTIFF
I have this GeoTIFF generated through UAV mapping. It has 4 bands: red, green, blue and alpha. I've been trying to use gdal2tiles to use this geotiff as a basemap on a Leaflet project.
The thing is I ...
1
vote
2
answers
431
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 ...
0
votes
0
answers
458
views
Leaflet - do I need the rastercoords plugin for an non-geographical map with CRS.Simple and local tiles?
I got a fictional map set up following this tutorial: https://leafletjs.com/examples/crs-simple/crs-simple.html
But when I try to switch the imageOverlay for map tiles (generated with gdal2tiles-...
0
votes
1
answer
95
views
Why does gdal2tiles sometimes produce a tileset where the image does not fill the tiles?
I'm using gdal2tiles on a vrt that I've warped from Mercator to QSC. I'm using the 'raster' profile. The resulting tiles look correct but there transparent strips on the upper and right edges of the ...
1
vote
1
answer
91
views
gdal2tiles syntax error
I'm attempting to produce tiles for a tif with the following call to gdal2tiles.py:
gdal2tiles.py --profile=raster C:\Users\kcwil\media\bmng_qsc\0\frontside.tif
and I'm getting the following error:
...
1
vote
0
answers
29
views
Hosting multiple TileMaps
I'm setting up this API that let's users upload high resolution images then generate tiles with those images using gdal2tiles. My question is what's the recommended way to host a tile map service? I ...
0
votes
1
answer
285
views
Using gdal2tiles XML output with Proj4Leaflet
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 parameters of ...
1
vote
0
answers
56
views
Merging two pyramid tile sets (directory)?
I was searching on the Internet about the merging of GeoTIFF tiles (pyramid tiles) generated by gdal2tiles.
Below are the steps I performed
Downloaded tif-files.
Converted tif to vrt (below command)
...
0
votes
0
answers
48
views
How fix lengthen tile created by geo tools?
I use gdal2tiles.py for creating tiles from a tif with EPSG:4326. The geotiff information in qgis is as follow:
For zoom=0, x=0 and y=0 it create a tile as follow:
I followed this tutorial to ...
2
votes
2
answers
591
views
Quality of gdal2tiles output
I am trying to generate a tileset from a GeoTIFF using gdal2tiles, e.g.:
gdal2tiles -s EPSG:3448 input.tif outputfolder
But the output tiles’ quality is definitely not what I expected (see images ...
0
votes
1
answer
706
views
Zoom level issue with openlayers 5 and custom tile generation using gdal2tiles
Now i have changed my code but the output is still not what is expected, because the resolution provided is of 0 - 8 zoom but my minZoom starts from 12 itself,
will i get my tiles rendered ?? how ...
0
votes
1
answer
709
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 ...
0
votes
1
answer
183
views
Using gdal_translate command parameters [closed]
Working from these instructions:
https://gdal.org/programs/gdal_translate.html#cmdoption-gdal-translate-gcp
I am trying to run the gdal_translate command, here is a sample of the command I run which ...
1
vote
1
answer
1k
views
Raster Image Tiles created using GDAL2Tiles (from GDAL 2.4.2) does not align properly with Open Street Map Tile layer
I am trying show a custom tile overlay (created from a raster image) on top of openstreetmap base layer using Leaflet.
I used one of the raster images from https://www.naturalearthdata.com/downloads/...
0
votes
0
answers
228
views
Using Pix4d google_tiles KML outside of Google Earth
I am using Pix4d to generate orthomosaic tiles. I would like to display these in something other than the HTML that is provided. Possibly have 2 or three shown on the same window. The full ...
0
votes
1
answer
2k
views
Converting GeoTIFF to tiles using gdal2tiles
I have a GeoTIFF of weather radar data that I cannot seem to get converted to a raster tileset using gdal2tiles. When the tileset is generated, there are TONS of empty folders in the output directory, ...
0
votes
1
answer
82
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....