GDAL (Geospatial Data Abstraction Library) is an open source translator library & set of command-line utilities for processing raster spatial data formats. As a library, it presents a single abstract data model to the calling application for all supported formats. It also comes with a variety of ...

learn more… | top users | synonyms

1
vote
1answer
5 views

Gdal read as array different values that gdal read band

I am confused about why if I open a band with GDAL I get, for example, band.GetMaximun(): 1000, but if I do ReadBandAsArray I get myArray.max(): 1200 (the same if I do np.max(myArray)). Does someone ...
1
vote
1answer
10 views

Error installing GDAL on Centos 7 [on hold]

I'm trying to install Postgis/GDAL on CentOS using yum, but there are broken dependencies. I've looked around and everybody says I should install EPEL, but I've already done that. (see also: Install ...
1
vote
0answers
17 views

rasters written with gdal show up with units of meters when they should be degrees

I have some SMOS soil moisture data packaged in a netcdf format distributed by "cp34-bec". I have been able to use GDAL to extract this data as a raster layer, using a projection i think is ...
1
vote
1answer
20 views

Spatial Resolution Reprojection - rom Angular to Rectangular Values with GDAL?

I have an image in a WGS 84 / No Defs projection. I can get it spatial resolutions in angular units for X axis and Y axis through geotransform parameters. If I would reproject this image into WGS 84 ...
1
vote
1answer
23 views

Downsampling Geotiff using summation - Gdal/Numpy

I am trying to downsample a 1 square km raster dataset to a much larger (.5 degree x .66 degree) dataset by summing all of the pixel values within this large grid cell. gdal_warp does not contain a ...
1
vote
0answers
22 views

rgdal with multiple Feature Datasets in R

I am trying to read shapefiles contained within a geodatabase file (.gdb) into R. The .gdb contains two Feature Datasets with multiple Feature Classes within each. The problem is only one of the two ...
0
votes
0answers
18 views

Extracting pixels latitude into new raster [on hold]

when extracting pixels latitude into new raster the boundary not matched, what shal in do? # -*- coding: utf-8 -*- #!/usr/bin/env python print("Started\n") import gdal import numpy as np ...
0
votes
1answer
20 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 ...
1
vote
0answers
18 views

BlueMarble is appearing strange

I am fairly new to WorldWind and want to make WorldWind Server 1.5 server blue Marble Imagery to worldwind 2.0. I am using WMSLayerManager applet to test my server. Blue marble appears strange on ...
0
votes
1answer
29 views

Create ID for each string attribute in QGIS

I'm trying to rasterize a vector layer by using an attribute filed stored as string, I got the confirmation through the GDAL mailinglist serv that gdal_rasterize does not work with string field. So my ...
0
votes
1answer
24 views

Generating elevation 'database' from NED IMG data

I'm starting to work with the NED 1/3 and 1/9 arc-second data. I've been using gdal in Python and QGIS to do some basic conversions of the raw .IMG data from USGS. My goal is to get elevation data of ...
1
vote
1answer
34 views

Where can I find GDAL Python bindings for python 3.4?

Am using python 3.4 for development. I need GDAL python bindings for python 3.4. I have already gone through this site. I can find up to only 3.3?
1
vote
1answer
15 views

Cesium Terrain Builder : Could not open GDAL Dataset

I am trying to run Cesium terrain Builder on Ubuntu 14.04. On running ctb-tile dem.tif I get the error: Error: could not open GDAL datasetERROR 4: `dim.tif' does not exist in the file system, and ...
0
votes
0answers
14 views

Generating Scale Bar for Raster Image Data

My goal is to create a scale bar for a printed map at 1:1,000,000 scale. The input dataset is a Mercator projected geotiff. Using GDAL it is possible to get the spatial reference information and ...
0
votes
0answers
24 views

Gdal Polygonize Java

I tried to use the gdalPolygonize function within in java. What I did Installed gdal-111-1800-x64-core from the following link ...
1
vote
1answer
45 views

What resampling method is used in gdal_merge?

I am using the gdal_merge python script to merge rasters that have slightly different, though similar, input resolutions. The documentation advertises that it can handle different resolutions, and in ...
0
votes
0answers
15 views

Why does R(gdal) mangle data when converting to geojson?

I've encountered issues with projections in .geojson files created by rgdal, but I never thought it would destroy my data, until I tried this (reproducible example): ...
0
votes
0answers
27 views

Is there an open source solution to access raster layers in an ESRI File-GeoDatabase?

I'm looking for a way to access raster layers in an Esri File-GeoDatabase without using ArcObjects or ArcPy, specifically I would like to access the raster layers with GDAL. I understand that the GDAL ...
0
votes
1answer
44 views

Can't get gdal_merge Python script to run

I downloaded and installed GDAL. I am using Python 27. I had to use the following commands at the IDLE Python GUI: from osgeo import gdal,ogr sys.path.append('C:\Program Files\GDAL') import ...
1
vote
0answers
9 views

Rasterstats throwing error: Cannot open as GDAL raster

I'm using the rasterstats zonal_stats function (pip installed), and running it on a .vrt file. Everything runs perfectly in my Ipython notebook, but when I try to run it in my regular python ...
0
votes
0answers
24 views

gdal tool for extracting data

Is there any gdal tool available for obtaining data from number of files. actually i need atmospheric parameters which are downloaded from modis website. some datasets are not having data i.e ...
3
votes
0answers
34 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
1answer
14 views

Join line segments sharing a common attribute, using GDAL

I'm having trouble rendering a shapefile consisting of trail routes broken down into many short segments. So I'd like to combine them into a small number of line features, which share a NAME and touch ...
1
vote
0answers
27 views

MS Visual 2013 with GDAL and HDF 4

I'm using MS Visual Studio 2013, C++ and newest gdal downloaded from here http://www.gisinternals.com/query.html?content=filelist&file=release-1800-x64-dev.zip In readme and libraries I can see ...
1
vote
1answer
42 views

How to use gdal.FillNodata in python?

I am trying to use gdal.FillNodata in python on a ".tif" raster. The nodata value is set to -3.402823e+38. Here is my code : import gdal from gdalconst import * ET = ...
0
votes
1answer
44 views

Grid-type shapefile from raster GeoTIFF

I need to produce a shapefile from a raster. I need to be able to specify either an interval, or manually define the intervals. The input file is a GeoTIFF. I would like to use GDAL and/or Python. ...
1
vote
0answers
35 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 ...
1
vote
1answer
98 views

Interpolation grid for scattered data having (latitude, longitude) coordinates

I've got some scattered data in the form of (latitude, longitude, someParameterValue). I'm using inverse distance weighting interpolation method to interpolate them in a rectangular grid of pixels. ...
0
votes
1answer
32 views

projection for high accuracy small areas

I need to convert (lat,long,height)points into a cartesian system for an area as small as 40kmx40km or even 10kmx10km. I'm currently using the UTM projection, but there are some issues regarding ...
1
vote
1answer
86 views

Sample for MS Visual Studio C++ using GDAL library

Good day, I need to create a sample console application on c++ that will use *.hdf file as an input and will read it. As I got, I need a GDAL library. I've found a GDAL tutorial on official GDAL ...
0
votes
1answer
41 views

How to place an numpy array into GeoTIFF image using python-gdal

I am attempting to export data of varying scales into GeoTIFF images...a new method for me. The problem I'm running into is when using the GDT_Byte pixel type, data values < 0 and > 256 are not ...
-1
votes
1answer
18 views

ReadRaster() C# [closed]

I am new with GDAL in c#. Can some body help me to uderstand the method band.ReadRaster(). I need to know wich one is the return in C# and as well some documentation about what it means each ...
0
votes
0answers
25 views

GDAL Create Layer WFS

So I'm trying to write a program that has the ability to read and write data from a WFS (Web Feature Service) I've managed to pull all the data I want from the WFS. Now I'm trying to write to it and ...
1
vote
0answers
62 views
+50

How to build gdal_calc.py from source in MinGW

I was wondering how to install the gdal python binding from source using MinGW. In particular, I need to use python scripts such as gdal_calc.py. I've searched around and found this question about ...
2
votes
1answer
45 views

Properly Converting from UTM to Lat/Long with gdalwarp

I have a file in GeoTiff format in UTM coordinates. I convert the file to LatLong, then back to UTM, and the coordinates aren't what I started with. I have the printout of the process below. ...
0
votes
0answers
19 views

How to overlay dem (100m) over MODIS (500m) in square grid?

I have SRTM Dem data and the resolution 90m approx at the equator however the resolution varies as we move from equator to poles. For my case the study area is Himalayas. My plan is to get the square ...
0
votes
1answer
24 views

Changing the origin of a Geotiff and resampling

I have georeferenced data from 1 to 10M resolution in GeoTiff format. I can use gdal to resample everything to 5M, but I would like to store the data so that rather than having an origin at a decimal ...
0
votes
0answers
22 views

Proper projection name for NAD83 2011 revision

I have two PRJ files, one from ESRI and another from some custom GDAL/OGR code I wrote (pasted below). I was trying to have both work in NAD83 UTM10N with the 2011 revision. The ESRI file has 2011 in ...
0
votes
0answers
39 views

Create GeoTIFF from JPG and JFW files with gdal

I have a JPG image and the corresponding geospatial information on a JFW wolrd file in a ETRS89 geodesical system and UTM coordinates (EPSG:25830) 5.0000000000 0.0000000000 0.0000000000 -5.0000000000 ...
0
votes
1answer
28 views

How to cut contour lines at the edge of a data source

I have calculated some contour-lines using gdal-contour for two elevation model into a Postgis database. One is high res and the other lower res. Now I am seeing problems at the edge of my high ...
0
votes
0answers
40 views

ogr2ogr failing to open/convert GML

I'm trying to convert a GML file into GeoJSON using ogr2ogr, I've compiled GDAL, Expat and Xerces from source, but when I run my command I get an error. My convert command ./ogr2ogr -f "GeoJSON" ...
1
vote
0answers
18 views

QGIS Georeferencer adds padding to image after save

I am attempting to georeference an aerial image using satellite imagery. I'm successful in getting an output, however I notice there is an issue where QGIS's georeferencer is adding padding to all the ...
6
votes
2answers
117 views

How to convert the geographical projection of an extremely large file (GDAL)

My Task I need to convert 9 x 14Gb GeoTiff files to WGS84 geo projection. The rough size in pixels is about 200k x 100k. The data-type is byte and it is not a subject to interpolation, it is some ...
0
votes
2answers
36 views

It's possible to use gdal_calc.py with an entire path of rasters?

I try to use gdal_calc.py to scale and transform a time-series of MODIS images. I've done that when i worked with a single image in the -A variable and a mask in -B, but i need to work with a ...
1
vote
1answer
39 views

Read raster at request size through Python

I'm trying to read the raster (tif) file using Python. What I want is to read the raster at a specific request size rather than its original resolution. Example: If a raster has a cellsize of 5 x ...
1
vote
1answer
22 views

Grass r.out.gdal, wrong values when importing to QGis

I have a problem with export/import functionalities between Grass and QGis. I create a raster file in Grass (with r.wind.sun, but that most likely does not matter) It has the following properties: ...
0
votes
0answers
13 views

Escaping the MODIS Swath Projection with GDAL: MOD06_L2: MRT Swath Tool not working

Stackexchange, I am looking at ftp://ladsftp.nascom.nasa.gov/allData/6/MOD06_L2/2012/222/MOD06_L2.A2012222.0800.006.2015062054108.hdf Trying to get the SDS (in WGS84 Projection and as GeoTiff): ...
0
votes
1answer
25 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 ...
2
votes
0answers
48 views

Zonal computations: computing raster pixel counts within polygons using GDAL versus rasterstats

I'm computing some zonal statistics, and was comparing the results obtained using the GDAL cookbook example code here with the rasterstats zonal_stats function. I want to compute the mean value per ...
1
vote
0answers
46 views

Use Gdal from Python IDE

I am just starting to experiment with writing python scripts. I have been using QGIS and the Osgeo4w shell for sometime now. I would like to be able to call Gdal from the python IDE i have installed ...