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

Questions tagged [gdal2tiles]

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

0
votes
0answers
12 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
29 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
votes
0answers
15 views

Looking for portable gdal2tiles

Is there anything out there that would allow the end user to copy a jar file or a few dlls and then call gdal_translate and gdal2tiles without having him to install gdal and worry about getting the ...
1
vote
1answer
18 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
27 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
41 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
13 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
78 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
31 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
180 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
51 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
45 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 ...
1
vote
1answer
203 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
80 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
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
49 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
56 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
37 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
110 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
312 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-...
1
vote
1answer
477 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
122 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
117 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 ...
2
votes
0answers
74 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
47 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
182 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
481 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
85 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
343 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
130 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 ...
2
votes
0answers
317 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
249 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
263 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 ...
3
votes
1answer
81 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
289 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
419 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
171 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
216 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
233 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
837 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
198 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
80 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
134 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
335 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
125 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
184 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
774 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
376 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: ...