Command line utility to convert raster data between different formats.

learn more… | top users | synonyms

0
votes
1answer
14 views

gdal_translate cannot convert MSG3 channels to TIFF

following this guide http://www.gdal.org/frmt_msg.html I want to convert my MSG3 HRIT format files in TIFF but I get this error gdal_translate H-00 ...
0
votes
1answer
21 views

gdal_translate or gdalwarp to define projection

Which of these is the best approach to define (aka. set) a projection for a tiff? 1) gdal_translate -a_srs EPSG:32182 in.tif out.tif 2) gdalwarp -s_srs EPSG:32182 -t_srs EPSG:32182 in.tif out.tif ...
0
votes
1answer
16 views

How to not process when query is outside the raster extent ? (Error when Completely Outside)

Given a West North East South bounding box, I want to crop this data from a hundreds of inputXX.tif. Nearly every times but once, the query first print out that it "falls completely outside raster ...
0
votes
1answer
25 views

How to pass value of a band to and other band and change its value?

Using gdaldem hillshade, I get a one-band hillshade (download here, 2MB) : gdaldem hillshade crop_xl.tmp.tif Shadedrelief.tmp.tif -s 111120 -z 5 -az 315 -alt 60 -compute_edges I currently can ...
17
votes
2answers
407 views

How to create transparent hillshade?

I get elegant transparent hillshades via a combination gdal and convert. Compare to grey-based hillshade commonly used, such transparent hillshades are very cool because they can be placed between the ...
1
vote
1answer
36 views

How to convert from .shp to .csv using python and either gdal_translate of ogr2ogr

I am trying to convert .shp files to csv using either gdal_translate or ogr2ogr and python but its not work. if i run the following from qgis its not giving an error but at the same time its not ...
0
votes
1answer
34 views

mosaicing geotiffs with gdal creates gaps due to alpha layers

I have a series of geotiffs which I'm trying to mosaic together, however when they are combined their individual alpha layers overlap sections of the other images and create gaps in the final mosaic: ...
1
vote
1answer
61 views

jpg to geotiff transformation with gdal_translate and gcps fails

I am trying to create a geotiff from a jpeg by inputting gcps with gdal_translate: gdal_translate -of GTiff -a_srs EPSG:4326 -gcp [1616.0 0 -121.459869532 38.5822533549] -gcp [0 0 -121.460081357 ...
0
votes
0answers
48 views

gdal_merge tries to create image with negative dimensions

I am trying to use gdal_merge.py to create a mosaic from a set of geotiffs, however the command fails with the error message: "ERROR 1: Attempt to create -3510x1817 dataset is illegal,sizes must be ...
0
votes
3answers
96 views

gdal_translate : projection error?

I am using GDAL library routines to build a tiled hierarchy of images for use with Google Earth. The images are just PNG files created using Matplotlib. To tile the images, we are using ...
0
votes
0answers
11 views

Relating to GeoLocation tool of Geospatial PDF Document

I created a PDF file with OGC_BP as GEO_ENCODING option like shown in the below command. The below tif file’s Datum and Projection details are WGS84 /Geographic (lat/lon). ./gdal_translate.exe -of ...
0
votes
1answer
31 views

GDAL - Specify span of elevation values for conversion to Terragen format?

I'm attempting to use the gdal tools to convert some geotiff files I have to the Terragen format. I was hoping to use either gdal_translate or gdalwarp in a similar fashion to this post. (though I ...
0
votes
0answers
53 views

Reprojecting from Lambert Conformal Conic into EPSG:3857?

I'm trying to reproject a plain png image file into EPSG:3857 for use in an OpenLayers application. I'm pulling the image from the NWS site at: ...
0
votes
1answer
76 views

convert raster to xyz without no data values

I want to convert a geotif to an xyz-file by gdal_translate. However, when I use the following statement: gdal_translate infile.tif outfile.xyz -of xyz the nodata values are always within the ...
1
vote
0answers
29 views

How can I improve image quality when using GDAL to generate Google Earth superoverlays?

I'm using the free version of Google Earth, so in order to create superoverlays of my large TIF images I have to use additional software. Google suggests GDAL. Using the instructions Google ...
0
votes
0answers
19 views

Can I export overview with gdal?

How can I export overview for example 1/4 from the orginal raster map to a geotiff file using gdal?
2
votes
2answers
77 views

gdal_translate creates images that are mirrored

I'm having a problem with gdal_translate - when translating from an XYZ file to AAIGrid or geotiff the raster is mirrored and "moved" south on one axis. The top part of the attached image is the ...
1
vote
0answers
50 views

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

How to set -srcwin with python gdalbinding and driver.createcopy

I am using gdal_translate currently to cut a 60000x60000 geotiff into smaller 1000x1000 geotiff files. This works but it takes about 24 hours(and I have 44 of those big images to compute). Im not ...
3
votes
1answer
94 views

How do I get GDAL_translate to output better resolution

I have a set of GeoPDFs that I converted to GeoTiffs. However, the end results are horrible. They are very pixelated. The command I passed was gdal_translate -of GTiff inFile outFile -co ...
1
vote
2answers
84 views

Georeferencing PNG with transparency via gdal produce “green pixels” in QGIS?

This is just intriguing while not blocking my way, but I wonder what is going on and would like to get feedbacks from more experienced users. 1) Given a trans.png file (1.1MB) looks good and ...
0
votes
1answer
50 views

Georeferencing jpg via Gdal_translate output a GIS tif 15.5 times bigger [duplicate]

Given as input a light 874kb jpg, I use gdal_translate -a_ullr (source) to reinject GIS georeferencing : -a_ullr ulx uly lrx lry : Assign/override the georeferenced bounds of the output file. ...
2
votes
3answers
103 views

Using GDAL translate in Pythonwin

I want GDAL translate in Pythonwin to process some GeoPDFs to GeoTiffs. I can't call up GDAL module in Pywin. I used the OSGeo4 installer for original GDAL install and can leverage GDAL properly from ...
1
vote
0answers
58 views

GDAL “Permission Denied” [closed]

I'm trying to convert a file using gdal-translate and keep getting a "Permission Denied" message. Looking online (including here) the solution is usually to make sure you have write access to the ...
0
votes
0answers
53 views

Fetch from WMTS with gdal_translate

I'm trying to create an input XML file for gdal_translate to fetch tiles from a WMTS service. The service I'm interested in is the Polish Geoportal's scans of topographics maps. The XML format is ...
0
votes
1answer
99 views

How can I create a kml file from a geotiff with alpha layer

I am trying to create a kml version of a map tile using gdal_translate on a geotiff with alpha layer (link here) as follows: gdal_translate -of KMLSUPEROVERLAY input.tif output.kml however, the ...
3
votes
1answer
105 views

Generating a GDAL script through the QGIS Georeferencer

For several months, I have been georeferencing files manually using the Georeferencer plugin within QGIS. I am now attempting to automate this process using GDAL. The Georeferencer provides a ...
2
votes
1answer
44 views

warping and outputting coordinates of GeoTiff data: advice and error checking

So I have a massive TIF file (projected in Lambert azimuthal equal-area), and I'm trying to get lat/lon coordinates for each point of the grid. My first step is to warp the projection to the WGS84 ...
3
votes
2answers
115 views

gdalwarp leaves horizontal artifacts regridding from EASE-Grid (laea) to Polarstero (stere)

I'm trying to understand how to use gdalwarp to warp an image. I believe I'm doing the basics correctly, but I might be missing some gdalwarp options? Any help would be greatly appreciated. The ...
0
votes
0answers
35 views

GDAL_Translate not compressing when NoData value is set

I am trying to compress a .TIF file using GDAL_Translate or GDAL_Warp. My Raster is 32mb to start with. When I use GDAL_Translate with the COMPRESS=PACKBITS option, it compresses to 1.9mb. However ...
1
vote
1answer
142 views

Using gdalwarp with multiple elevation models

I'm trying to use gdal_warp to slice and convert some SRTM data. The data I'm interested in are in S30E152.hgt and S30E153.hgt. What I'd like to do is: Convert these DEM files from EPSG:4326 to ...
0
votes
0answers
149 views

How to save a WMS layer at multiple resolutions as .tif using pyqgis

How can I export a wms-map-extent as a .tif from QGIS? Is it possible to call the "Save as.." function of a WMS-raster-layer from pyqgis? (E.g. by simulating right-clicking the layer, choosing "Save ...
1
vote
2answers
192 views

Using very large image formats with GDAL

I would like to use gdalwarp and gdal_translate with some very large raster images (313,040 x 313,040 px) and I'm wondering what the best format or method is to do this, if it's even possible. I have ...
1
vote
1answer
135 views

geotiff conversion to coordinate system with gdal

I would like to get the coordinates X Y Z from a geotiff file. I am using the gdal translate for the conversion. Which output format is the more adequate for containing a 3 numpay array X Y Z ?
4
votes
1answer
487 views

Why the result of a merge of multiple raster is so big?

I try to merge 14 geotiff like this : Each geotiff is about 50Mb. I need a geotiff at the output My workflow : gdalbuildvrt -input_file_list list.txt test.vrt (where my list contains the name ...
1
vote
0answers
172 views

gdal_translate wms [closed]

Help me, pls, vs gdal_translate and wms i created this xml conf file <GDAL_WMS> <Service name="TMS"> ...
1
vote
1answer
951 views

How to add a color table to a one band tiff using GDAL?

I have 1-band GeoTIFF file. The color interpretation for band is gray. I want a color table in order to transform my Col.tiff to Col.jpeg or Col.png. I tried putting a color table in this tiff via a ...
2
votes
1answer
150 views

ENVI raster file with nodata change to 0

I have a geotiff that I converted to a ENVI raster file with the following command: gdal_translate -of ENVI srtm_05_08.tif data.bil The geotiff has water values supposedly set to nodata. I am ...
1
vote
1answer
277 views

How do I convert a .bil (and associated .clr, .blw, .hdr, and .stx) files into georeferenced rasters in R? OR to geotiffs using gdal_translate?

The title says it all. I've got a bunch of .bil files, which I can open in R using the raster command pointed to the path to the .bil file. But I don't know how to efficiently incorporate the ...
1
vote
0answers
71 views

GDAL Color distortion around nodata value stitching

I am trying to extract JPEGs from SID images using GDAL. I ran into a an issue where black lines were present and figured out that it was a nodata issue, so I added -src/dst/vrt nodata arguments and ...
0
votes
0answers
60 views

QGIS translate BAG surface to XYZ

I have a BAG (Bathymetry Attributed Grid) from NOAA which I wish to export to XYZ. The grid imports fine as a raster and plays nicely with most of the raster tools that I have tried. It does, ...
2
votes
0answers
69 views

How to preserve GCP's after gdalwarp

I'm trying to figure out how I can preserve my GCP's after a gdalwarp. I need the georeferenced GCP's data, so I can calculate the Root Mean Squared Error. Is there a way to preserve this data, and ...
0
votes
1answer
108 views

gdal_contour transparent contour as png

I started using the GDAL Library in a c++ project. It is a great library, but I am a bit stuck right now with different aspects of it. What is the best way to use gdal_contour in my c++ programm? ...
1
vote
2answers
107 views

How to translate tens of images from a directory as a batch with gdal_translate?

For example i have a dataset of images in *.cub format like $path: /work/120614/mg_1164/ f01.img.cub_E.cub f02.img.cub_E.cub ' ' f0n.img.cub_E.cub for converting a single image I use gdal_translate ...
0
votes
1answer
130 views

GDAL TIF to JPG Creates Dark Image

I'm using the GDAL Raster>Translate to create JPGs from Georeferenced TIFs. The translation is working, but the resulting JPGs are significantly darker than the TIFs they are being created from. ...
2
votes
1answer
162 views

gdalwarp won't export AAIGrid

I'm trying to use gdalwarp to reproject an ascii grid file. According to http://www.gdal.org/formats_list.html this shouldn't be a problem and indeed I can happily use gdal_translate to create grd ...
0
votes
0answers
74 views

Run this module in GRASS 6.4.3 command line in Windows 7 or QGIS Grass Module

I have GRASS 6.4.3 running and working in windows. I would like to use this script (http://grasswiki.osgeo.org/wiki/AVHRR) Scroll down to Import to see the code. I have the correct EPSG set but ...
1
vote
0answers
92 views

Gdal_translate and transparent rasters in PDF

I am trying to make an application that creates geospatial pdf's from my website, but I am encountering problems with Gdal_translate and transparency of rasters. The setup that I am working up ...
0
votes
1answer
174 views

Trying to use gdal_translate on WMS

I am trying to export a raster image from a WMS using gdal_translate and have not had any success. I have read http://www.gdal.org/frmt_wms.html but still no success. In my XML file, what should the ...
1
vote
1answer
74 views

Can I dewarp an image using GDAL?

I have a GeoTiff image mymap.tif https://www.dropbox.com/s/51chrzv9vp9olg8/mymap.tif $ gdalinfo mymap.tif Driver: GTiff/GeoTIFF Files: mymap.tif Size is 1085, 281 Coordinate System is: GEOGCS["WGS ...