Questions tagged [gdalinfo]

Commandline utility to list information about raster data.

Filter by
Sorted by
Tagged with
8
votes
1answer
925 views

Can GDAL report if a .tiff is tiled or not?

A certain piece of software that I use doesn't support .tiff DEM's that are tiled. Is there a way with a GDAL utility to determine if a .tiff DEM is tiled or not? gdalinfo dem.tif will report the ...
5
votes
1answer
571 views

Is there a way to get only a single output from GDALinfo?

I want to get just the Pixel size of a raster (in an automated workflow), and gdalinfo looks like the best tool for that; The trouble is that it gives a whole lot of info which I don't need. So ...
4
votes
1answer
246 views

gdal java API returning different WKT from gdalinfo

I am running into an interesting bug where the wkt returned from dataset.getProjection() does not match the wkt returned from gdalinfo. (simplified) code: final Dataset dataset = gdal.open("<...
3
votes
2answers
1k views

How to create Raster statistics with GDAL externally?

If I want to create a GDAL PAM statistics file with the command gdalinfo -stats from a GRIB file, e.g. needed for DynamicColorMapping, GDAL only creates the statistics internally inside the sourcefile....
3
votes
1answer
261 views

Gdalinfo - missing corner coordinates

I came across some KAP charts which don't display correct corner coordinates from gdalinfo; despite them having REF fields in the header. For the NOAA file11425_3.KAP gdalinfo displays the coordinates:...
3
votes
1answer
99 views

Trying to store Metadata in GeoPDF

Isn't it possible to store Metadata directly in GeoPDF files using GDAL command line tools (gdal_translate, gdal_edit) or GDAL Python? Something like: gdal_edit -mo "CUTLINE=POLYGON(...)" orig.pdf ...
2
votes
2answers
1k views

Showing only raster attribute table using GDAL?

I have a binary ArcGRID raster (AIG/Arc/Info Binary Grid) with an attribute table. I would like to get only this attribute table but gdalinfo outputs also projection information and bounds and then ...
2
votes
2answers
22 views

Information in gdalinfo not shown

I have a geotiff and I checked it's metadata using gdalinfo.exe: Driver: GTiff/GeoTIFF Files: C:/image_test.tif Size is 3956, 34151 Coordinate System is `' GCP Projection = GEOGCS["WGS 84", ...
2
votes
1answer
899 views

Why doesn't gdalinfo report pixel size?

When I run gdalinfo (v2.2.2) on a geotiff that I created from a pdf using gdal_translate, I don't get the pixel size as shown in the docs. Does the pixel size have to be explicitly stored in the tif ...
2
votes
1answer
975 views

gdalinfo image.tif>stats.txt - returns empty text file (Windows 7 64 bit)

I am trying to output the gdalinfo image statistics results into a text file with the following command: gdalinfo image.tif>stats.txt The stats.txt file gets created, however it is empty. It ...
2
votes
1answer
164 views

Counting the number of layers in a GeoPackage

I'm trying to figure out a best practice for determining what are the names of layers in a GeoPackage and counting the total number of them. I've been able to list all the layers of a GeoPackage ...
2
votes
0answers
85 views

gdalinfo on NetCDF - cell centers or edges?

I was given a NetCDF file and the gdalinfo result for it shows this: NC_GLOBAL#XORIG=-126.0800018310547 NC_GLOBAL#YORIG=41.45000076293945 The gdalinfo command is showing the lower-left cell in the ...
2
votes
1answer
556 views

Export GeoTIFF with color table from web service using gdal_translate

The gdal_translate program has an option to define an XML file with the necessary information to download an image using various web map server specifications. I am trying to download a file that ...
2
votes
0answers
150 views

GDAL c# API returned different WKT from gdalinfo

I've found completely different results in WKT strings while using gdalinfo utility and method from c# API GetProjectionRef(). In the first case the result was: PROJCS["WGS 84 / Pseudo-Mercator", ...
2
votes
0answers
149 views

How to add Geo PDF header to a PDF rendered with mapnik?

I rendered a PDF with mapnik and I am now trying to add geospatial header information to the PDF. I tried the method add_geospatial_pdf_header() from mapnik.printing.PDFPrinter. I do get some Geo PDF ...
1
vote
1answer
164 views

Why does gdalinfo -hist give values outside of [0 - 65535]?

I am running gdalinfo -hist on a 3 band tif file and am getting the following output (see below). Notice it says 256 buckets from -78 to 40184. That's fine, but then when it shows the histogram, ...
1
vote
1answer
128 views

Understand gdalwarp and gdalinfo on raster files [closed]

I am using: PostgreSQL 9.5 PostGIS 2.2.1 GDAL 1.11.3 I have two raster files: -rw-rw-r-- 1 jlandercy jlandercy 1,3G Aug 25 21:02 contour_raster.dem -rw-rw-r-- 1 jlandercy jlandercy 2,0G Sep 7 17:...
1
vote
1answer
1k views

Getting warning when opening NetCDF file using gdal?

I am using windows 7(32-bit) and want to warp NetCDF (nc) files and save the output as GeoTIFF. First I run gdalinfo first to get the info of the subdataset I need and added NETCDF in the beginning(e....
1
vote
1answer
47 views

GdalInfo and Mapserver : Difference between data

I'm trying to create a generic XML response from DescribeCoverage response. For my tests, i used Mapserver 7.0.7 With gdalinfo, i got this : Driver: GTiff/GeoTIFF Files: geostationary_ir-...
1
vote
2answers
131 views

gdalinfo for Modis layer “NDVI”

I am trying the following command to get info on the NDVI MODIS layer stored in HDF file. I always receive an error. the command and error as below: gdalinfo HDF4_EOS:EOS_GRID:MYD13A2.A2015297.h16v05....
1
vote
0answers
67 views

GDAL : transfer metainformation

I'm using Agisoft Photoscan 1.4.2 to build DEM from UAV photos and in last versions thay produce DEM multipage tiff format and I want to convert it to tiff with metainformation preserved. According ...
1
vote
0answers
59 views

Why gdalinfo don't show subdatasets in sentinel-2 imageries?

In this article Sentinel-2 products have 'Subdatasets' where I can open the 10 meters resolution bands. But in some imageries there isn't this sector. For example in imagery 'de4388a9-13e1-4c5c-affe-...
1
vote
0answers
218 views

gdalinfo corner coordinates off file

When running gdalinfo on an SRTM file, I get the corner coordinates. However, when I attempt to get the elevation at those coordinates using gdallocationinfo -wgs84 file.hgt {corner coordinates} I get ...
1
vote
0answers
161 views

Changing Ascii grid file inside a GeoJSON polygon

I have a Digital Terrain Model ASCII grid file that gdalinfo recognizes as AAIGrid. Its resolution is 2m. I need to alter it simulate the construction of an embankment, so as to feed it to a modelling ...
1
vote
0answers
107 views

Does gdalinfo report tifftag_datetime capture date?

Is gdalinfo meant to report the date a geotiff was captured? When I run it in qgis the tifftag_datetime seems to report the date it was saved to disk, rather that capture/creation date. Is there a ...
1
vote
0answers
859 views

Origin line in gdalinfo output

I am a novice when it comes to GIS systems and information. But, I am having a real problem trying to wrap my brain around a specific value that gdalinfo puts out. Here is what gdalinfo shows from my ...
0
votes
1answer
83 views

Gdal not open Sentinel 2A

What is the problem with gdal info for sentinel 2 level 2A? gdalinfo SENTINEL2_L2A:S2A_MSIL2A_20181227T125301_N0211_R052_T24LXN_20181227T145100.SAFE/MTD_MSIL2A.xml ERROR 1: Invalid syntax for ...
0
votes
1answer
647 views

Add bands' name and description to the Metadata when stacking using rasterio

I'm using this code, of @Loïc Dutrieux, to stack 8 Landsat bands. with rasterio.open(final_list[0]) as src0: meta = src0.meta with rasterio.open('stack.tif', 'w', **meta) as dst: for id, layer ...
0
votes
1answer
225 views

Problem with GDAL distribution and netCDF support

I have a problem with a GDAL distribution downloaded from http://www.gisinternals.com. It is the "release-1800-x64-gdal-2-2-1-mapserver-7-0-6.zip", downloaded just today. In the information about ...
0
votes
1answer
18 views

Calculate the area of a map using gdalinfo

I'm using gdalinfo to get some information out of a map, and want to use it to calculate the area represented by the map. I'm currently doing it (when the units are given in metres), by multiplying ...
0
votes
2answers
235 views

gdalinfo and other applications not running through Anaconda Prompt

I am using GDAL 2.0.3(installed through wheel) in Anaconda 4.2.0 with Python 3.5 installed. I am able to import GDAL in my code. But whenever I am trying to run gdalinfo and other applications(such ...
0
votes
0answers
46 views

Inconsistent origin when using GDAL translate to generate worldfile

Did anyone here face the issue of inconsistent worldfile generated from gdal_translate? Currently I am converting a geotiff file to jpeg, in the process also generate a prj and jgw file (jgw file is ...
0
votes
1answer
322 views

Using gdalwarp to merge bands into a mosaic created by gdal_merge?

I have created a mosaic with gdal_merge.py using the following command: gdal_merge.py -createonly -separate -co PHOTOMETRIC=RGB -o merged.tif LE07_L1TP_046030_20180810_20180810_01_RT_b3.tif ...
-2
votes
1answer
30 views

What do some of the parameters in gdalinfo represent? [closed]

For example, on the gdalinfo documentation, we have gdalinfo ~/openev/utm.tif Driver: GTiff/GeoTIFF Size is 512, 512 Coordinate System is: PROJCS["NAD27 / UTM zone 11N", GEOGCS["NAD27", ...