Questions tagged [gdal-translate]

Command line utility to convert raster data between different formats.

The gdal_translate utility is part of the GDAL - Geospatial Data Abstraction Library. It is used to convert raster data between different formats. It can also performing additional operations like subsetting, resampling, and rescaling pixels.

567 questions
14
votes
1 answer

Does gdal_translate support multi thread?

I've seen that gdalwarp has the -multi option to use multiple threads. But I don't see that option for gdal_translate. Does gdal_translate support multi thread?
Daniel
  • 2,443
  • 1
  • 22
  • 36
11
votes
1 answer

gdal_translate: Can I suppress the creation of auxiliary files?

Using this command (DOS window in Win7): gdal_translate name.tif -of AAIGrid name.asc Each conversion creates the desired name.asc file, but in addition a name.prj and a name.asc.aux.xml which I do not need. Eventually I have over 20000 of these…
Stormwind
  • 293
  • 3
  • 9
4
votes
1 answer

gdal_translate KMLSUPEROVERLAY creates blank black image

I am trying to convert a geotiff to kmz file to view in GE. The geotiff is 878,720 KB. Using a 'regular kml' - the resolution is very low in GE. Having read around - it seems as conversion to a superoverlay is the best method? I have chosen to…
Becky
  • 627
  • 2
  • 6
  • 16
4
votes
1 answer

gdal_translate 16bit to 16bit truncating whites

I have a .CUB map from the USGS, the Mars MOLA image, which is about 46000x23000 pixels and 2GB. I am trying to convert it from .CUB to .TIF but I want to keep it 16 bit. I ran: gdalinfo -stats…
Blake
  • 43
  • 2
3
votes
2 answers

gdal_translate - raw to png?

I have a raw binary file containing color (RGB, 1byte per channel) with band interleaved by pixel (BIP) layout that I'd like to translate to a PNG. I could probably use some other non-GIS specific tool for this (recommendations welcome), but I'd…
user8709
  • 253
  • 2
  • 9
2
votes
1 answer

Getting srcwin from projwin

I have approximate coordinates of a box I need to work with the data, but I want the integer window in order to use the exact edge pixels. Using gdal_translate I get the box using projwin but I want to know the computed srcwin and use that…
2
votes
0 answers

How to change nodata with gdal_translate

I am trying to create a tiff file using gdal_translate. Initially my noDataValue was 0.0, but my client suggested that - noDataValue should be -9999.0, so I changed it to -9999.0. gdal_translate -of GTiff -a_nodata -9999.0 -a_srs EPSG:4326 -a_ullr…
Rauph
  • 21
  • 3
2
votes
0 answers

Problem converting from float 32 tif to 8bit tif in QGIS using GDAL

I am using GDAL translate to convert tif in float 32 to Byte format. When I run the conversion using GDAL translate, the output is useless (see pictures). GDAL does not seem to have this problem with other formats, Int 16 worked fine, but I need…
Geodatsci
  • 123
  • 9
2
votes
0 answers

Using gdal_translate to generate large raster from tile service?

I'm calling gdal_translate from the windows command line. My objective is to obtain a large geotiff, of a predefined region, from a Tiled Map Service (TMS) hosted at the University of Wisconsin. When I run the following, I get a world map. My desire…
Cutter
  • 51
  • 1
1
vote
2 answers

Using GDAL_Translater to convert and append TIF files into sqlite database - ERROR 6: New data has not the same SRS as existing data

I have a number of TIF files provided by Ordnance Survey (OS OpenMap Local) that I am trying to add to a sqlite database. The first line in my code creates the sqlite database and adds the first TIF but then then all the following lines produce the…
Shev
  • 43
  • 4
1
vote
0 answers

Converting from 16-bit TIFF image to 8-bit with GDAL does not work properly

I am a beginner in the area of GIS and remote sensing image analysis. I am dealing with the satellite images from the **VNP46A1 Daily At-sensor TOA Nighttime Radiance Product. I want to get the TIFF images from the DNB_At_Sensor_Radiance_500m…
FandaK
  • 11
  • 3
1
vote
2 answers

gdal_translate: error 1: Could not find an appropriate zoom level

I'm trying to put a jpeg file (a map) into Sqlite mbtiles. The command: gdal_translate \ -gcp 0 0 6.756394 45.192361 \ -gcp 0 1080 6.756394 45.127057 \ -gcp 1820 0 6.912606 45.192361 \ -gcp 1820 1080 6.912606 45.127057 \ etache.jpg…
1
vote
1 answer

gdal_translate with srcwin and center reference point

i want to use subset a large raster image using gdal_translate with srcwin parameter but i want also to give some reference point to be at the center of the output file . so if the output file size is 2000X2000 pixel for exemple, i want that my…
user2475096
  • 247
  • 3
  • 7
1
vote
1 answer

gdal_translate using /vsistdin/ and /vsistdout/ to pipe commands

I am trying to pipe some of my commands with gdal_translate's output. These commands should read from standard input, so I'm writing to /vsistdout/. However, I am getting some errors. To be a bit more generic, I tried some other commands to…
fzd
  • 125
  • 1
  • 5
1
vote
0 answers

gdal_translate- limit memory usage

I am using gdal_translate to clip raster data (using -srcwin and -projwin). This works fine for me until I'm trying to run some concurrent processes of this command. In this case I get random error massages of "Out Of Memory in…
user45581
  • 11
  • 3
1
2