Questions tagged [gdal2tiles]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
23 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
1answer
16 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
0answers
14 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
1answer
54 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
1answer
36 views

Line cracks 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
1answer
59 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
0answers
28 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
0answers
59 views

Moving gdal2tiles.py output directly to s3 from inside a fargate task

I am running the latest version of gdal in a docker container built using: FROM osgeo/gdal. The docker container is running on AWS as a fargate task. I want to use gdal2tiles.py to create a large ...
0
votes
0answers
75 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
0answers
9 views

gdal2tiles with RGBA GeoTIFF?

I tiled hillshading RGBA GeoTIFF with gdal2tiles but produced tiles has no transparency and instead it is blended to black. Is there a way to preserve transparency?
0
votes
0answers
38 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
0answers
19 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 (...
0
votes
0answers
31 views

How to converts TIFF+ERS to GeoTIFF?

I have a .tif file and .ers .tfw with the same name, I would like to transform it to a GeoTIFF to raster it using gdal2tiles. the .ers file content looks like: DatasetHeader Begin Version = &...
2
votes
1answer
106 views

Issue creating tiles from GeoTIFF which crosses the 180th Meridian

UPDATE: 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. ...
1
vote
0answers
68 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
1answer
163 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
2answers
338 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
1answer
131 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
0answers
53 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
1answer
24 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
1answer
75 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 ...
0
votes
1answer
225 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 ...
2
votes
2answers
399 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
1answer
2k 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
1answer
126 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 ...
0
votes
2answers
230 views

Using gdal2tiles on mac

I'd really appreciate some guidance with this. I need to create some map illustrated tiles to use in leaflet.js for a small web-app I'm building. So far though I've lost about five days to installing ...
0
votes
0answers
282 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
1answer
40 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
1answer
43 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
0answers
25 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
1answer
149 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
0answers
38 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
0answers
44 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
1answer
336 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
1answer
424 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
1answer
422 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
1answer
110 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
1answer
647 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
0answers
157 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
1answer
1k 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
1answer
47 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
1answer
504 views

GDAL - creating tiles from TIFF with world file

Several years ago I created multiple tiles (xyz) from orthophotomaps using GDAL with success but now I'm getting this error and I don't know what I'm doing wrong. This is the error: Traceback (most ...
2
votes
0answers
201 views

Creating transparent PNG tiles (for TMS service) from transparent TIFF

I read nice tutorial about making transparent DEM TIFF on (Creating transparent hillshade?) My Goal is creating transparent PNG tiles from transparent GeoTIFF for serving my own TMS map service. I ...
1
vote
1answer
104 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 ...
0
votes
0answers
257 views

gdal2tiles.py using param: -nb_processes does not use multicore, only one core fully working [duplicate]

I'm using gdal2tiles to tile huge geoTIFF image, but it takes a long time. I tried using the nb_processes param but only one core is working hard. My command line: gdal2tiles.py -e -p geodetic -...
0
votes
1answer
221 views

gdal2tiles -e giving error about Processing of several input files is not supported received?

I'm using gdal2tiles for tile huge geoTIFF image. The problem is that only 1 core cpu was being used so I stopped the process for use the -np_processes param to try use paralellism beacuse there have ...
1
vote
1answer
239 views

Trying to make calculation with gdal_calc.py?

I have a tif image that I'm trying to run gdal_calc.py. In the source file the values are between 1,118-9,704 and I want to divide all the values by 10,000 to get results between 0-1. This is the ...
1
vote
1answer
228 views

gdal2tiles.py multithreaded only works with base tileset

I'm using GDAL 2.4.0 on Ubuntu 18.04 Installed from the ubuntugis-unstable repository. When I use the gdal2tiles.py with the '--processes=n' flag the multithreaded operation works fine for processing ...
0
votes
1answer
425 views

Convert a .png file to a GeoTIFF while knowing the boundings

Disclaimer: I've already found this link Convert PNG to GeoTiff using GDAL - but it was of no help. Actually I've got a .png file of a hand-drawn map (I also got it in the .svg format in case this ...
4
votes
1answer
460 views

Mismatch between OpenLayers 5 and XYZ-layer on some zoom-levels

I have an image pyramid that I created with gdal2tiles. Then I displayed this layer on top of another map in OpenLayers 5 with the XYZ source. On the map zoom levels 0-8 the XYZ layer is not aligning ...