Command line utility to convert raster data between different formats.

learn more… | top users | synonyms

0
votes
0answers
24 views

Unable to generate tiles using gdal2tiles.py for a single band gray image

I am using and playing around with Cesium at the moment, and I am enjoying the functionality so far. I am trying to provide my own imagery to Cesium with the TMS imagery provider: imageryProvider: ...
2
votes
1answer
60 views

KEA File Conversion using gdal_translate

I was using ARCSI (The Atmospheric and Radiometric Correction of Satellite Imagery) to convert a 'kea' file format to 'tif' format using this gdal statement (gdal_translate –of GTIFF LS8_sref.kea ...
1
vote
0answers
48 views

How can I prevent gdal_translate from rounding coordinates when clipping?

I want to clip a raster (a VRT of several Ascii files) to a set of coordinates. Ideally I'd like to use gdal_translate to do this, but I only get an accurate result when using gdalwarp. gdal_translate ...
0
votes
0answers
26 views

Creating superoverlay from geotiff covered whole globe, shouldn't of?

I am new to this GIS world and found this blog post: https://developers.google.com/kml/articles/raster#step-1-download-and-install-gdal Following its instructions I used my own geotiff (ntif) image ...
0
votes
0answers
34 views

GDAL Warp giving garbage data on edges when transforming to WGS 84

I want to change one tiff file to USGS DEM file. For that I am doing following steps: Transform the tiff file to WGS84 coordiantes using Gdal Wrap utility gdalwarp -t_srs EPSG:4326 -dstnodata -...
4
votes
2answers
81 views

Convert MODIS HDF file in sinusoidal projection into GeoTiff with

I'm looking for a way to convert MODIS LST data from HDF to Tiff format, and reproject from sinusoidal to WGS84 - all using python GDAL. An example file is here (I only care about band 0) : http://...
1
vote
0answers
43 views

Converting TIFF (DIMAP) to .xyz file format with GDAL

We are attempting to convert a .tif file into .xyz file. We have been using gdal_translate on a linux box and this is the line we've used: gdal_translate -strict -of XYZ ABC.tif ABC.xyz -mo ABC.dim ...
0
votes
0answers
9 views

Converting classified raster *.tif file to Northwood Classified Grid Format *.grc

What is the reason why I'm getting the error message when converting classified raster *.tif file to Northwood Classified Grid Format *.grc. ****"ERROR 6: GDALDriver::Create() ... no create method ...
0
votes
0answers
39 views

How to convert raster in UTM to lat/lon using GDAL (or other tool)

I have a .tiff file given with UTM coordinates that I'd like to convert to a .nc (NetCDF) file with latitude/longitude coordinates. I've tried with gdal_translate and gdal_warp but these did not work. ...
0
votes
1answer
17 views

Compute GCP values for gdal_translate in a PNG image

I am using the incorrect GDP for gdal_translate based on gdlainfo command line since image is offset from correct location. Image is at correct location when I use QGis GeoReference using my clicked ...
1
vote
0answers
73 views

How to make NoData transparent?

I have been using python to turn a netcdf into a geotiff. Once I have the geotiff, I am using gdalwarp to transfer it into the right projection. Then use gdal_translate to get the tif into a vrt file....
1
vote
2answers
107 views

Reproject raster without projection info

I'm pretty new to gdal and got a presumably easy question for experienced gdal users. My problem: I have a raster ascii file of which I don't know the projection or epsg code. However, I want this ...
2
votes
0answers
23 views

gdal_translate to get full vector extent of geo spatial referenced PDF

I am creating GeoTif images from a USFS geospatial referenced PDFs using gdal_translate. I turned off all of the layers that I did not want and it produces a GeoTif of just the center window of the ...
0
votes
0answers
42 views

How to improve poor image quality of “gdalwarp” operation result?

I'm trying to improve the result of gdalwarp operation. The image width and height are 6732x4721 GCP's are: -gcp 0 0 38.005301407753 55.048725423557 -gcp 6732 0 38.184943751144 55....
0
votes
0answers
29 views

intersect geotiff with bbox

In a project using gdal I need to crop a geotiff file with bbox in pixel or coordinates epsg:4326. This step is ok. The next step is to manage cases where the image size is "lower" than the bbox size ...
0
votes
1answer
49 views

white page border when converting geoPDF to geoTiff with gdal_translate

I am using gdal_translate to convert some USFS geoPDF maps to geotiff images. I actually set more layers off than is listed in the code snippet below but I've pulled them for clarity. The resulting ...
1
vote
0answers
62 views

error using gdal_translate with -projwin option

I have to crop geotiff image, I'm using gdal assembly and I'm trying to use the gdal_translate method If I crop my image using the -srcwin option all is fine gdal_translate -srcwin 0 0 400 400 ...
3
votes
0answers
31 views

gdal_translate multiple GDAL_PDF_LAYERS_OFF entries gives error

The documentation says that GDAL_PDF_LAYERS_OFF takes a list of comma separated layers. Examples look just like what I am trying to do. Executing the following gives an error FAILURE: Too many ...
2
votes
1answer
40 views

Using gdalwarp to remove one row of pixels or add one row of pixels

I am trying to use GDAL_calc but my two rasters are off by one pixel in the y dimension. One is 256005 the other is 256004 so GDAL_calc fails with a multiplication. Is it possible in gdalwarp to ...
1
vote
1answer
105 views

GRIB to NetCDF with GDAL, specifying dimensions

I have a GRIB dataset representing temperature over North America, in Lambert Conformal Conic (with specified central meridian, latitude of origin, etc.). It has what should be understood as a ...
1
vote
1answer
73 views

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 ...
1
vote
1answer
77 views

Why is GDAL/QGIS creating Geospatial PDF's with erroneous spatial data?

I have a GeoTiff that I wish to convert into a geospatial PDF for use in Avenza. I attempted to use gdal_translate, and also used the QGIS's Raster->Conversion->Translate which apparently just builds ...
4
votes
1answer
33 views

Gdal_translate command for SDS having spaces in its name

Can anyone help me with using gdal_translate on an HDF4 dataset that a space? One SDS in the the HDF is: HDF4_EOS:EOS_GRID:"MOD13Q1.A2004001.h08v05.005.2007234070731.hdf":...
0
votes
0answers
17 views

Specifying column to use in gdal_translate

I am using gdal_translate to convert a tiff file to ascii. The tiff file is a raster with several columns in the attribute table. How do I specify to gdal_translate, which column to use for creating ...
10
votes
0answers
293 views

PyQGIS save raster as rendered image, then use GDAL tools on it

I have tried to use the code from QGis Save Raster as Rendered Image. i is a raster layer: pipelayer = i pipeextent = pipelayer.extent() pipewidth, pipeheight = (pipelayer.width(), ...
1
vote
1answer
44 views

Bad corner coordinates transforming SRTM *.hgt files to GRD format using gdal_translate

I'm transforming some SRTM *hgt files (1 second resolution version) to GRD format using dal_translate. For example, one of my orders is: gdal_translate -of AAIGrid N43W001.hgt N43W001.grd The ...
3
votes
1answer
67 views

Geo-Referencing an image from google maps with gdal_translate

I am trying to geo-reference an image using gdal_translate in a command prompt. Currently I have the following gdal_translate.exe -of GTiff -a_nodata 0 --config GDAL_DATA "Config location" -a_ullr -...
1
vote
1answer
205 views

Transform an image with projection EPSG:4326 to EPSG:3857

I have an image with known boundary and projection EPSG:4326 and want to overlay it to openstreetmap using Leaflet.js. I have tried using function imageoverlay, but the image is not aligned with the ...
3
votes
2answers
229 views

Can GDAL extract a raster window from disk without loading the whole file to memory?

I have a 500MB GeoTIFF with 3 bands on disk. I can easily read a very small, 25x25-pixel subwindow using GDAL like so: gdal_translate -srcwin 600 550 25 25 hugeimage.tif smallwindow.tif Does this ...
0
votes
1answer
75 views

GeoServer WMS: Retrieved GeoTIFF band contains integer values instead of floats

I am using gdal_translate to import a GeoTIFF into an oracle database. The import as well as the layer creation in GeoServer works without errors. GeoServer correctly recognizes the band data type as "...
1
vote
2answers
78 views

gdal_translate crashes on huge jp2

I have 44GB jp2 file, I want to translate it to tif file, but once it reaches 10% it crashes. No messages, just stopped. This is my command: gdal_translate.exe -of GTiff --config GDAL_CACHMAX 8000 -...
1
vote
0answers
51 views

Handling warning about DX and DY in gdal_translate from .Gtiff to .ASC?

When I try to convert Gtiff to .asc file, QGIS shows the warning: Producing Golden Surfer style file with DX and DY instead of CELL SIZE since the input pixels are non-square. Use the FORCE CELL SIZE ...
1
vote
1answer
36 views

How to make transparent the Index 0 of the color table of a Tif/GTiff/GeoTiff using gdal?

With a Tif file, I'm trying to generate tiles using gdal tools. gdalinfo gdalinfo I_III_IVA_MRA_WGS.tif | more Output Driver: GTiff/GeoTIFF Files: I_III_IVA_MRA_WGS.tif Size is 17119, 23309 ...
1
vote
1answer
554 views

Converting large jp2 files using GDAL

I have a bunch of jp2 files with size going from 40MB to 1GB and I need to convert them all to GeoTiffs (.tif format). When using gdal_translate for the small files (having the jasper driver to ...
0
votes
0answers
73 views

How to transform any GTiff to Lambert Azimuthal Equal Area with GDAL?

I am trying to transform a GTiff EPSG:4326 +proj=longlat +datum=WGS84 +no_defs and a GTiff EPSG:31982 +proj=utm +zone=22 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs both to EPSG:...
1
vote
0answers
86 views

GDAL - replacing rgb value (0,0,0) with (nodata,nodata,nodata)

I have a set of rasters in which I want to replace any rgb value of (0,0,0) with (nodata,nodata,nodata) I've tried using gdal_translate -a_nodata "0,0,0" in.tif out.tif But this seems to convert ...
1
vote
0answers
45 views

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 ...
0
votes
0answers
85 views

Define band specific metadata of a GeoTIFF file using GDAL (gdalwarp/gdal_translate)

Does anybody know how to change or set the "Description" option/tag (band specific metadata) of a GeoTIFF file using GDAL? To specify what I mean, this is an example of gdalinfo return from a GeoTIFF ...
1
vote
0answers
108 views

GDAL and WMTS supprt

I have researching possibility to fetch raster file from WMTS server via GDAL. I have found some old post about that GDAL doesn't support WMTS (WMS only). However, I also find this information: http://...
4
votes
0answers
224 views

How to remove nodata values from XYZ output with GDAL?

I have a buffered line route that is overlayed on a DEM: I've clipped the DEM to the buffered line, and exported it as an ADF ESRI grid file. I then used gdal_translate to convert it from the Arc/...
1
vote
0answers
111 views

WKID issue when adding raster layer from ArcGIS “mapserver” to QGIS via REST

QGIS docs here describe how to do this. I am trying to add a layer from this MapServer: gps.digimap.gg/arcgis/rest/services/JerseyBaseMap/MapServer When I try the following command from the Python ...
3
votes
1answer
63 views

Display or export gdal_translate exponential scaling equation

I have an GeoTiff raster that contains elevation information at each pixel. As OpenLayers 2 can't display GeoTiff, I convert it to a PNG image and have to apply an exponential scale so the resulting ...
3
votes
0answers
45 views

gdal_translate bilevel tiff output

I have a geotiff image that rings in at about 290MB. However, once I smooth it using a gaussian filter I'm unable to get it back to that size, it ends up being 1720MB. The size isn't really the ...
3
votes
2answers
363 views

How to have GDAL print layers of GeoPDF AND say which are raster vs vector

My Objective: I would like to use GDAL to convert a GeoPDF. I want the vector layers as shp files and the raster layers as tif files. I want to do this in a programmatic way. Edit: In reality, I ...
0
votes
0answers
81 views

What are the units in GMTED2010 elevation data?

I have downloaded the GMTED2010 elevation data from http://topotools.cr.usgs.gov/gmted_viewer/viewer.htm I am merging all the files/tiles (to create a global dataset) with: gdal_merge.py There is ...
3
votes
0answers
149 views

How do I specify an outsize for gdal translations to an ENVI file?

I'm trying to create an elevation map using the output from gdal_translate. When I run gdal I can convert to both PNG and ENVI and combine the results to make something like the following image. ...
1
vote
2answers
72 views

Black image using gdalwarp

Im a geomatics student; Currently, I try to geo-referencing a tif image with the QGIS GUI, and then I load and save the Gdal script. With the QGIS GUI, I managed to get a decent picture, then I ...
5
votes
0answers
184 views

can I preserve a fading alpha layer when mosaicing images with gdal?

I am mosaicing some images with gdal and would like to improve the final result by using a fading / gradual alpha layer towards the edge of each image to remove the sharp edges in the middle of the ...
0
votes
0answers
34 views

Is gdal_translate ignoring the CPL_TMPDIR switch?

I've tried both... /usr/bin/gdal_translate -q --config CPL_TMPDIR /opt/xipi/nitf/scratch -of KMLSUPEROVERLAY /opt/xipi/nitf/scratch/sample-100000001.ntf /opt/xipi/nitf/out/sample-100000001.kmz ......
1
vote
0answers
57 views

Extra white space in ASCII file due to Translate GDAL from QGIS Modeler

Could anyone enlighten me why do I get an extra white space in from of my first column in an ASCII file generated through a model? With ArcGIS it doesn't happen. Output raster type: Int32 Output size:...