Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [gdal2tiles]

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

0
votes
1answer
28 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 ...
0
votes
0answers
7 views

Incorrect Color Palette for Displaying GRIB Data with gdaldem

I'm trying to display temperature values from a GRIB2 file using gdaldem and gdal2tiles.py. Code gdaldem color-relief -b 1 raw.grib2 -alpha t2m_palette_val.txt -of VRT raw.vrt python ./gdal2tiles.py ...
0
votes
0answers
35 views

gdal2tiles (or some steps before) produces erroneous tiles from a mosaic TIFF

I have for some days now tried to create a image pyramid from a set of around 1400 TIFF files with no luck. I can't get my head around what is the cause of the problem. I will try to explain as good ...
0
votes
0answers
21 views

Determine “automatically” number of zoom levels for a image pyramid

I have created a simple georeferencing web application in where the user uploads a raster image and then by clicking on some points in the image and on the corresponding points in a map can ...
4
votes
1answer
142 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 ...
0
votes
1answer
46 views

Creating tiles from complex VRT

I have thousands of GeoTIFF source files that cover whole country in 6 different layers. I have created VRT file for each layer. I loaded everything in QGIS, assigning correct colors to bands in ...
0
votes
1answer
43 views

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 ...
0
votes
1answer
151 views

Alternative to MapTiler for tiling a GeoTIFF

I'm currently using MapTiler Pro console version, called from C# code as process with the following parameters: -geodetic -nodata 0 0 0 -f png32 -o result/ -tms -resampling bilinear -srs "+proj=...
0
votes
1answer
66 views

Cannot change zoom level parameter dynamically within gdal2tiles call in Python?

I am trying to do the following but it is falling over i.e. (has no error message and doesnt start the tiling process). I think the parsing of the zoom level argument is falling over. I havent been ...
-1
votes
0answers
73 views

Batch processing TIFFs using gdal_translate to get a single vrt file

I am new to GDAL and trying to create a vrt of all TIFFs (listed in an input text file) Is there a way of doing this with gdal_translate? I have tried using the command below called within Python. ...
1
vote
0answers
72 views

How can I stop single pixel nodata values propagating through a tile pyramid when using gdal2tiles?

I am using gdal2tiles_parallel.py to generate a tile pyramid from a single geotiff with nodata value set. I have noticed that if I have a small hole in the original geotiff (say single pixel), then I ...
0
votes
0answers
35 views

gdal retile different resolution datasets into same size tiles

I have DEMs and 1m Aerial imagery. I plan on using gdal_calc to shade the imagery. gdal_calc requires each image to be the same size and no projection checking is performed. so I'd like to retile each ...
0
votes
0answers
44 views

remove white outline artefacts after gdalwarp/gdal2tiles

I am struggling with the similar problem as described here but with some differences: every raster I project twice using GDALWarp - into their initial projection (raster + .tfw) and then to EPSG:3857 (...
0
votes
0answers
32 views

gdal2tiles tiling raster crosses 180 meridian

I have raster that has extra 180 longitude (Chukotka peninsula area) and I would like to make tiles (in gdal2tiles) of this .tif and there are some problems: When trying to reproject raster to EPSG:...
0
votes
0answers
98 views

How use GDAL in java?

I use a GDAL command for creating tiles from an ecw file as follow: gda2tiles.py --profile=mercator -z 1-8 me.ecw me Now, I want to run this command from a java application. How do I do that?
0
votes
0answers
256 views

GeoTiff to PNG tiles and leaflet (gdal2tiles-leaflet) latlong projection

I am new to geolocation and tiff. I have a big GeoTiff Image with following gdalinfo : Driver: GTiff/GeoTIFF Files: ImageNew.tif Size is 8501, 8544 Coordinate System is: PROJCS["WGS 84 / Pseudo-...
0
votes
1answer
352 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 ...
0
votes
1answer
96 views

Portable gdal2tiles.py

I want to realize "Portable gdal2tiles.py" in both Windows and Mac environment. "Portable" means, run script without installing something. To realize this, I believe, we have to have such components: ...
2
votes
0answers
110 views

Reprojecting EPSG:5514 to EPSG:3857 for use in Leaflet

I have one JPG (170 MB) and JGW file of a small area projected in EPSG:5514 (Image provider told me.) JGW file: 0.1250000 0.0000000 0.0000000 ...
1
vote
0answers
70 views

Homebrew (OS X), gdal, and gdal2tiles.py/python

I had a previous installation of gdal (v. 1.11.5_3) that included in its binaries python files like gdal2tiles.py. I recently upgraded gdal with to 2.2.4 using Homebrew, but the result seems to have ...
0
votes
0answers
39 views

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 ...
0
votes
1answer
160 views

Implementing gdal2tiles tools by using GPU or OpenGL to accelerate speed?

The gdal2tiles.py is very useful, but it is some slow when I want 10 or up levels. I think the bottleneck is I/O, so I want to how solve the problem by GPU?
1
vote
1answer
423 views

gdal2tiles.py how to find optimal zoom level for leaflet?

I working on a project need to tackle with deal with geotiff image file. I'm new to leaflet and geotiff image.I got an image from client and i need to overlay it to leaflet map from geotiff. I used ...
0
votes
0answers
83 views

Why MacOS recognize EPSG 900913 and Ubuntu does not

I'm working with gdal and trying to run gdal2tiles.py. The command gdal2tiles.py -z 4-18 image.tif tile works on my mac, but it does not work when I run in a linux machine. I found the solution, ...
0
votes
2answers
313 views

How do I make a slippy map with a GeoTiff?

It seems that most applications I use for serving map data, gdal2tiles or Geoserver takes the supplied GeoTiffs and chops it up into png files with no metadata. What is the standard practice to place ...
0
votes
1answer
123 views

Does gdal2tiles strip elevation data?

I have a GEOTiff file that has elevation data associated with it . It seems like the resulting png/jpg files I get after feeding it to gdal2tiles does not have elevation data. Same thing with the tms ...
0
votes
0answers
62 views

Problem of EPSG during tiles generation of GeoTiff file using gdal2tiles.py

I am using gdal2tiles.py for my project to generate tiles of Geotiff file and display that tiles on website to do measurements on it using Openlayers. The Geotiff files provided to us by our client ...
2
votes
0answers
297 views

gdal2tiles “ERROR 5: Illegal values for buffer size” error for a single zoom level only

I'm experiencing what seems to be a very particular issue when running gdal2tiles on a virtual raster at zoom levels 10 to 17. The function runs without issue for all zoom levels except for zoom level ...
1
vote
1answer
225 views

Merge XYZ tilesets with different origins

So I have hit a snag. I wish to merge multiple XYZ tile sets together. Meaning I have multiple directories which contain tiles in the format /zoom/x/y.png. I tried just copy and pasting them in to ...
1
vote
1answer
2k 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'...
0
votes
1answer
236 views

gdal2tiles Can Not Open Input File

I am using gdal2tiles to convert a vrt to tiles but getting the following message: ERROR 4: 'Depth (Max).vrt' not recognized as a supported file format. Usage: [.....] gdal2tiles.py: error: It ...
4
votes
1answer
78 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 ...
0
votes
1answer
267 views

Displaying tiles build with gdal2tiles in QGIS 2.14

I'm trying to create a WMTS service showing an orthophotography. I've build the tiles with gdal2tiles (https://gdal.gloobe.org/gdal/gdal2tiles.html) and it seems to be ok as i can see the tile in the ...
2
votes
0answers
378 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 ...
1
vote
0answers
155 views

GeoJSON in Leaflet generated by gdal2tiles

I have generated a leaflet map with gdal2tiles out of my rasters and it works wonderful. Now I want to add my shapes in form of GeoJSONs and I have my difficulties. To the gdal2tiles generated script,...
0
votes
1answer
197 views

gdal2tiles_parallel only creating one file per zoom level

I'm trying to create a TMS layer from a gdal VRT dataset. To speed thing up, I'm trying to use gdal2tiles_parallel (https://github.com/GitHubRGI/geopackage-python/wiki/Usage-Instructions-for-...
1
vote
0answers
228 views

How to create tiles using GDAL from georeferenced tiff in C++?

I used GDAL to georeference a static image. However, when I load it in the map canvas (QGIS API), the image gets blurry when I zoom in. I need to generate map tiles but I cannot figure out how I would ...
2
votes
1answer
783 views

How to create tiles from tiff file using python?

I'm trying to create python script that will batch create tiles from tiff file. Using python gdal2tiles.py -s EPSG:4326 -z 11-17 -w none tif_4326.tif I get folder with png files, but this pngs is not ...
2
votes
0answers
188 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 ...
1
vote
0answers
77 views

How to build tiles and display them without georeferencing?

When I work with georeferenced image (GeoTiff) I can use gdal2tiles.py to build tiles and generate googlemaps.html, leaflet.html, openlayers.html, etc. which I can upload to server and share with ...
0
votes
1answer
129 views

Why does MapBox serve trasparent pixels only below a certain zoom level?

We're using MapBox to serve a raster tileset. At low zoom levels the transparent pixels are seethrough: When you zoom in though it goes black (we've added oppacity): Questions: Why is this How to ...
1
vote
1answer
323 views

Does maptiler support DEM .tif images?

Does maptiler support DEM *.tif images? I was generating terrain tiles via cesium-terrain-builder but I wonder can I use maptiler somehow?
4
votes
0answers
2k 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: ...
1
vote
0answers
124 views

Leaflet displaying oddly curved TMS tiles

I'm trying to display some data using arctic ice extent data (projected in EPSG:3413, NSIDC Polar Stereographic North). I have processed the distributed images using gdal2tiles with the following ...
0
votes
0answers
177 views

Any 16-bit TMS/WMS tile renderer/servers?

I am looking for something like Geoserver or gdal2tiles.py that can render tiles to 16 bit PNG files (grey-scale). The tech needs to be open source. The geoserver PNG grey-scale output is not 16 bit ...
1
vote
0answers
737 views

Converting a 32-bit GeoTIFF to map tiles using gdal2tiles

I have a 32-bit GeoTIFF file I'm trying to convert to map tiles using gdal2tiles.py. What the GeoTIFF is supposed to look like when loaded straight into QGIS (no scaling, styling, etc): And here is ...
1
vote
1answer
344 views

gdalwarp causes ERROR 6: PNG driver doesn't support 6 bands in gdal2tiles

I've a problem with my gdalwarp function. What I've done: I built a .vrt file from 6 .tif images: gdalbuildvrt -overwrite /input/base.vrt /home/tiles/BASE/*.tif My gdalinfo looks like that: ...
1
vote
1answer
80 views

QGIS Project to Raster (Geotiff)

I've a question about rendering a qgis project (src: postgis) into raster files (e.g. geotiff). My Goal is it to render my qgis project into 256x256 tiles for Mapnik. I know there are a lot of python ...
0
votes
1answer
395 views

Generating XYZ tiles in nodejs

I'm looking to create XYZ tiles for use in leafletjs with nodejs. Previously I've been creating my tiles using this python library (gdal2tiles). I was wondering if anyone had yet written a nodejs ...
3
votes
2answers
270 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 ...