Questions tagged [gdal2tiles]

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

Filter by
Sorted by
Tagged with
18 votes
3 answers
24k views

Calculate lat lon bounds for individual tile generated from gdal2tiles

I have multiple tile sources generated using gdal2tiles I'd like to present on the same map. So when presenting a tile I need to determine which source to serve it up from, checking against the bounds....
Gavin's user avatar
  • 525
10 votes
2 answers
15k views

How to use gdal2tiles on a custom tiff image recieved from providers to generate tiles

I have been struggling a bit to generate tiles for a high-resolution image that we have. The current image we have is a very large (+20GB) image, saved as a GeoTiff file. I would like to generate ...
effort's user avatar
  • 123
9 votes
4 answers
4k views

Converting huge geotiffs to tilepyramid

I'm trying to convert a 20 GB LZW compressed geotiff to a tilepyramid using gdal2tiles. Unfortunately, gdal2tiles seems not to be able to handle this, after running it for 10 hours it still hasn't ...
user avatar
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 ...
Poul K. Sørensen's user avatar
8 votes
1 answer
4k views

gdal2tiles.py gives ERROR 6 about EPSG:900913 on fresh Ubuntu 14.04 install

I have a fresh install of Ubuntu 14.04. I installed gdal with sudo apt-get install gdal-bin python-gdal. After this I have: GDAL 1.10.1 released 2013/08/26. I am trying to tile the weather radar ...
hazzey's user avatar
  • 418
7 votes
2 answers
3k views

gdal2tiles misalignment

I have a map image that I have reprojected from OSGB36 to googleMaps projection (EPSG:900913). When I run gdal2tiles on the reprojected map, the results are not alligned with the google maps images (...
spiderplant0's user avatar
7 votes
0 answers
4k views

What is the fastest version of gdal2tiles?

I have multi-CPU linux server, so I wonder what is the fastest parallel version of gdal2tiles.py ? My Ubuntu version: lsb_release -a Description: Ubuntu 12.04.5 LTS How I install the package: ...
mrgloom's user avatar
  • 621
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/...
user avatar
6 votes
3 answers
3k views

Is there any way of merging two sets of tiles with gdal2tiles?

I've executed gdal2tiles against 2 raster coverages: One big raster coverage, composed by several TIFF files. Example of tile: http://dl.dropbox.com/u/6599273/319.png One single TIFF file, ...
Jorge Arévalo's user avatar
6 votes
2 answers
1k views

OSGeo4W (gdal 2.1.0) and gdal2tiles

I've tried the x86 and x64 versions of OSGeo4W, but gdal2tiles is missing. Has gdal2tiles been removed from OSGeo4W? -={ OSGeo4W Shell Commands }=- bmp2tiff msencrypt ...
user8709's user avatar
  • 253
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 ...
David 's user avatar
  • 232
5 votes
2 answers
1k views

How to merge 2 tile sets?

How to merge 2 overlapping tile sets into one tile set? What gdal utils can be used for that? By tile set I mean folder with tiles produced by gdal2tiles If it matters tiles are in .png format.
mrgloom's user avatar
  • 621
5 votes
2 answers
1k views

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 ...
Peter Cooper's user avatar
5 votes
1 answer
1k views

gdal2tiles.py problem - creating mini tiles

I have a similar problem to the issue posted here (gdal2tiles problem). I have 80 GeoTIFFs (4000x4000) with EPSG:27700 projection embedded and TFW and PRJ files. These I have built into a virtual ...
mixedbredie's user avatar
  • 1,870
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
4 votes
1 answer
857 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 ...
Mårten Swärd's user avatar
4 votes
1 answer
5k views

Creating tile server from geotiff

I'm developing a solution to serve a pan-tropical (and perhaps ultimately global) raster dataset to a cartoDB application. I'd prefer to stick to GDAL/open source tools if possible, but would be glad ...
Charlie Lefrak's user avatar
4 votes
1 answer
2k views

raster tiles from vector data with GDAL - how to avoid aliasing artefacts?

Prequesites I have vector data in a Shapefile N47E007_CONTOURS.shp produced with wget -O N47E007.zip http://e4ftl01.cr.usgs.gov/SRTM/SRTMGL1.003/2000.02.11/N47E007.SRTMGL1.hgt.zip unzip N47E007.zip ...
das-g's user avatar
  • 1,445
4 votes
2 answers
3k views

Why do I get different output from gdal2tiles vs. maptiler?

I am trying to generate map tiles using gdal2tiles for an area much larger than MapTiler can handle. However, my tile caches are not showing up on the maps. I checked gdal2tiles by running the same ...
deepwinter's user avatar
4 votes
3 answers
2k views

Mosaic the output of gdal2tiles

I have a folder with a gdal2tiles output: 6 levels of zoom (and folders), with subfolders and .png tiles. Is there a gdal tool to merge in a single geotiff file these .png tiles?
aborruso's user avatar
  • 1,279
4 votes
1 answer
603 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
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 ...
lve's user avatar
  • 141
4 votes
0 answers
2k views

How to make NoData transparent?

I have been using python to turn a netcdf into a geotiff. Once I have the geotiff, I am using gdalwarp to transfer it into the right projection. Then use gdal_translate to get the tif into a vrt file....
Wesley Bowman's user avatar
3 votes
2 answers
7k views

GDAL2Tiles: MapTiles from BSB/KAP are Switched

As an example I have a BSB file from NOAA which is a navigational map. The map has a SRS of WGS84 and a Mercator projection. I initially translate the file from BSB format to GTiff format using the ...
user914425's user avatar
3 votes
2 answers
4k views

Implementing OpenLayers3 basemap from tiles created using gdal2tiles

I recenty discovered the gdal2tiles.py tool which is working great with OpenLayers 2.x, but I wanted to use the new release of OL and I'm having some troubles. I have googled for a solution but i did ...
Julian Bogdani's user avatar
3 votes
1 answer
2k views

gdal2tiles generates small picture inside 256x256 tile

I've used gdal2tiles for generating tiles in number of different polar projections and always experienced the same problem — strange small picture inside normal 256x256 png with the rest of space ...
dobrych's user avatar
  • 286
3 votes
2 answers
880 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
3 votes
1 answer
4k views

How do I convince gdal2tiles to output pngs with transparency?

I have a tiff that was created with Pix4dmapper. This tiff has coordinates embedded (as seen in the logs below) (I think that makes it a geotiff?) as well as a tfw file associated with it. Opening ...
RobotCaleb's user avatar
3 votes
2 answers
2k views

Use Gdal2tiles to generate 512px tiles

I'm a newbie in gdal2tiles & python but I would like to modify gdal2tiles to create 512px tiles for retina display (screen). Can someone suggest how I can do this?
user3736776's user avatar
3 votes
1 answer
5k views

Generating JPEG tiles using gdal2tiles.py?

I am using gdal2tiles.py to generate tiles and packing it into MBTiles using mb-util. gdal2tiles by default generates PNG tiles. When I convert PNG tiles to JPEG large black area around tiles are left ...
user1667302's user avatar
3 votes
2 answers
1k 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 ...
Dan's user avatar
  • 1,060
3 votes
1 answer
121 views

Patching hole in TMS?

I created a large TMS (couple of gigs) using gdal2tiles, just to discover in the end that there was a hole (a gap) in the images, similar to the example bellow. Since then I've obtained the missing ...
Daniel's user avatar
  • 2,443
3 votes
1 answer
556 views

gdal2tiles pixel shift in output tiles

I would like to re-calculate large geotiff files (10,000 x 10,000px) with the help of gdal2tiles into little (256 x 256px) tiles. The process works fine. However, the result is not perfect. There is ...
nrhode's user avatar
  • 171
3 votes
1 answer
1k views

gdal2tiles georeferenced image as overlay not working

I'm using gdal2tiles-leaflet to create tiles for my Leaflet application. The images I use are GeoTiff's with the embedded projection WGS84, they are in flight photos taken by a drone. So I tried ...
Simtrax's user avatar
  • 127
3 votes
2 answers
1k views

Generating tiles from multiple rasters - gdal2tiles.py

I have 3 rasters, each is in the same SRS but with differing extents I want to combine them into a single tile set using gdal2tiles.py eg:- gdal2tiles.py -z '2-4' -e -p raster -r average --s_srs ...
CitizenFish's user avatar
3 votes
1 answer
765 views

Setting up Tile Map Service on Apache

I am trying to set up a tile map service on Apache. I tried following this: Setting Up a TMS Tile Map Service on a Web Server but when I go to load the page it's not loading the images in my /var/www/...
wxcoder's user avatar
  • 141
3 votes
0 answers
1k views

Subdividing large files due to gdalwarp - too big image size

I can't figure out how to warp a large file (2GB+) with no specified to CRS, to a specified CRS - I keep getting a "Too big image size" error. For context, I want to take large NITF files, warp them ...
Catsbergers's user avatar
3 votes
0 answers
379 views

Applying unified color scale to tiles with gdal2tiles?

Background: I have a series of about 40 small GeoTIFFs that need to be merged together to make one large image. Each GeoTIFF has 2000 bands. I've tried using both gdal_merge and gdal_retile to pull ...
adam's user avatar
  • 131
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 ...
urcm's user avatar
  • 22.5k
2 votes
1 answer
151 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
2 votes
1 answer
2k views

Displaying tiles generated by gdal2tiles with OpenLayers?

I'm currently facing issues displaying tiles generated with gdal2tiles.py in OpenLayers 4.5.6 My geotiff is issued from SHOM catalog. To generate the tiles, I had to translate my tif to vrt to be a ...
Miuu's user avatar
  • 23
2 votes
2 answers
781 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
2 answers
4k views

OSgeo4W64 Windows 7 & ImportError: No Module Named Site

I realize this question has been asked a lot, but I was not able to resolve my issue through the answers posted elsewhere... I am new to Python, gdal, OSgeo4W, etc. but have experience with ArcGIS. I'...
mastermapper's user avatar
2 votes
1 answer
363 views

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's user avatar
  • 121
2 votes
1 answer
1k views

GDAL tiling with a lot of MrSID files

I'm trying to generate tiles for a region with a surface of 85k km2. The data source are MrSID files (2734 files). I'm using gdal to achieve this task. It works fine with a small subset of MrSID, but ...
alasarr's user avatar
  • 451
2 votes
1 answer
2k views

gdal2tiles problem

Im using the following to try to produce a tms tileset: gdalbuildvrt test.vrt *.tif gdal2tiles -p raster --zoom=0-6 test.vrt out Two tifs work fine, more than that and it seems to miscompute the ...
Peter's user avatar
  • 467
2 votes
2 answers
1k 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 ...
BritishSteel's user avatar
  • 6,647
2 votes
2 answers
432 views

Determine map projection

I need to convert a JPEG into a Geo-referenced TIF and generate tiles from it for overlaying them on Google Maps. The JPEG is available at ftp://ftp.bom.gov.au/anon/gen/radar_transparencies/IDE00035....
Kartins's user avatar
  • 283
2 votes
1 answer
2k views

specify the bounding box for gdal2tiles

I want to generate tiles for an PNG file. In the MapTiler(GUI wrapper of gdal2tile), I can specify the bounding box and the zoom level, then it does the good job, which generates the tiles only for ...
stevenhz's user avatar
  • 167
2 votes
1 answer
2k views

Can gdal2tiles create tiles at zoom levels > 10?

I am trying to create tiles from tif images using the gdal2tiles command (at the OSGeo4W command line). I've been asked if it would be possible to create tiles at zoom level 12. Using the -z switch ...
jbchurchill's user avatar
  • 4,489