Command line utility to convert raster data between different formats.

learn more… | top users | synonyms

0
votes
1answer
12 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
30 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
15 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
2answers
59 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
9 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
27 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
35 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
56 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
20 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
69 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
42 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
19 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
74 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
74 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
46 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
94 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
52 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
39 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
69 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
99 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
106 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
34 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
128 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
143 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
164 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
126 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
416 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
163 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
746 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
120 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
219 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
62 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
56 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
63 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
94 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
92 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
117 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
140 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
69 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
82 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
149 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
73 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 ...
3
votes
1answer
221 views

How to preserve original resolution of scanned 1-bit PDF raster with gdal_translate?

I am using gdal_translate to convert non-spatial PDFs to non-spatial TIFFs (intended for subsequent manual georeferencing). This is my gdal_translate command: gdal_translate -of GTiff -sds -co ...
1
vote
0answers
261 views

Converting GRIB to Geotiff with gdal_translate in Python

I want to extract each band from a GRIB (gridded binary from http://data-portal.ecmwf.int/data/d/interim_daily/) in a single Geotiff image. I´m using Python with gdal_translate in a QGIS backround, ...
0
votes
1answer
320 views

Error with Gdal 1.10 install on Ubuntu 13.10

I've installed GDAL 1.9 then upgrade to 1.10 on Ubuntu 13.10 and then now it's error (gdalwarp can work but gdal_translate is fail) gdal_translate ERROR 1: gdal_translate was compiled against GDAL ...
3
votes
1answer
1k views

Georeferencing an image with GDAL, based on QGIS Georeferencer Plugin

I would like to georeference an image with GDAL. The image already has a spatial reference set (EPSG:31276). For the georeferencing, I have a list of 4 ground control points (also in EPSG:31276). ...
1
vote
0answers
32 views

Problem defining the tiling starting point

We are tiling a image datasets. However, we want to specifically define custom windows. To do this, we are using -te option during warping. The warped output is then tiled. The problem though is that ...
1
vote
2answers
377 views

Why do I get a gdal_translate error when creating ecw from tif

I have python 2.7 and the latest gdal 32bit core with also GDAL-1.10.1.win32-py2.7.msi and the ecw plugin on windows xp. I have checked that the ecw plugin works by checking the installed formats with ...