Questions tagged [gdal2tiles]

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

This utility generates a directory with small tiles and metadata, following the OSGeo Tile Map Service Specification. Simple web pages with viewers based on Google Maps and OpenLayers are generated as well - so anybody can comfortably explore your maps on-line and you do not need to install or configure any special software (like MapServer) and the map displays very fast in the web browser. You only need to upload the generated directory onto a web server.

GDAL2Tiles also creates the necessary metadata for Google Earth (KML SuperOverlay), in case the supplied map uses EPSG:4326 projection.

World files and embedded georeferencing is used during tile generation, but you can publish a picture without proper georeferencing too.

gdal2tiles uses the TMS specification for tile naming (bottom to top), while services that use Google/Openstreetmap tiles expect an inverted naming system (top to bottom).

192 questions
5
votes
2 answers

Output of gdal2tiles has black edges round it

I have a tif file with 3 bands and want to tile it with gdal2tiles.py. After experimenting this now works well, except for the issue that points around the edges, not in the original image, are appearing in the PNG images as black and not…
Peter Cooper
  • 331
  • 1
  • 12
2
votes
0 answers

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 followed tutorial with SRTM1 N35E128.hgt dem…
Wewebang
  • 21
  • 2
2
votes
1 answer

gdal2tiles in FWTools Shell

I install FWTools in Windows7 and run FWTools Shell,after type gdal2tiles,but give error 'no module named osgeo' . also i installed OSGEO4W ,but another error to happen
mhkyazd
  • 121
  • 3
1
vote
0 answers

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 slash should be used instead "/{x}/{y}/{z}.png". Any ideas how…
Jeti
  • 11
  • 3
1
vote
1 answer

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 2000x3840 pixel and the it worked as…
1
vote
1 answer

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 is in CRS Lambert93 (2154), coming from IGN…
kleio12345
  • 31
  • 3
1
vote
1 answer

gdal2tiles.py: ERROR 6: PNG driver doesn't support 13 bands

Does anybody have some insight to an error I am getting when I use gdal2tiles.py: ERROR 6: PNG driver doesn't support 13 bands. Must be 1 (grey), 2 (grey+alpha), 3 (rgb) or 4 (rgba) bands. I am starting with my original file, "my-file.tif" going…
0
votes
0 answers

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 (tif + tfw) with a black background (this shoud be…
crazypix
  • 21
  • 2
  • 5
0
votes
1 answer

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 right-most and top-most tiles: The above image…
kcwill2
  • 35
  • 2
0
votes
0 answers

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

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 -nb_processes=4 -k -v -w google image.tif TILES/ How…
Neisy
  • 15
  • 2
0
votes
1 answer

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 spent 3 days and still running... Now when I'm…
Neisy
  • 15
  • 2
0
votes
0 answers

gdal2tiles for both raster and vectors with a directory of input files (shps and .tifs)

I am looking to tile a large dataset that was split into raster areas based on political borders (ie. 1 raster file for each area). I have a few hundred .tiffs and shapefiles for the area and am trying to find the easiest way to tile them rapidly…