Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 2856

GDAL (Geospatial Data Abstraction Library) is an open source translator library for raster and vector geospatial data formats.

7 votes
Accepted

How to install stable GDAL on Ubuntu 11.10?

GDAL 1.9 is available for Oneiric 11.10 in ubuntugis unstable. https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable? …
user2856's user avatar
  • 69.6k
1 vote

GDAL API tutorial does not link: As if CreateLayer is not a member of GDALDataset: Why?

I assume you are using GDAL/OGR 1.11 and reading the API tutorial for the latest (2.x) version. The API changed quite a bit between 1.x and 2.x. … The OGR API tutorial for GDAL 1.11 is http://gdal.org/1.11/ogr/ogr_apitut.html …
user2856's user avatar
  • 69.6k
2 votes

Gdalbuildvrt dosen't output the vrt file

i.e: subprocess.check_call([r"C:\Path\to\gdalbuildvrt", "-separate", "-input_file_list", inlist, outVRT]) OR os.environ['PATH'] = ';'.join(r'c:\Path\to\gdal\bin\directory',os.environ['PATH']) subprocess.check_call …
user2856's user avatar
  • 69.6k
5 votes
Accepted

Using rasters with different dimensions in GDAL_calc.py

No, you'll have to clip to match. But you can speed up the process considerably by writing out a VRT instead of a GeoTIFF. gdalwarp -of VRT -q -cutline convex_hull.shp -tr 0.5 0.5 -of GTiff -srcnoda …
user2856's user avatar
  • 69.6k
1 vote

Does gdal_calc.py not calculate arithmetic with in the same file?

The output data data type defaults to the input data type which is Byte in your case. Your output needs to be floating point as all the values will be between -1 and 1. When the values get written to …
user2856's user avatar
  • 69.6k
1 vote
Accepted

gdalcompare.py not found in GDAL 1.10.1

Without downloading the whole gdal package, you can get it from http://svn.osgeo.org/gdal/trunk/gdal/swig/python/scripts/gdalcompare.py …
user2856's user avatar
  • 69.6k
1 vote
Accepted

why gdaldem is not producing any result?

You have a typo in your command - the 1st argument should be "color-relief" not "color-relif".
user2856's user avatar
  • 69.6k
1 vote

GDAL Virtual File System (vsitar, vsizip, vsicurl) not working

I couldn't open it using /vsigzip//vsicurl/ or /vsitar//vsicurl/. It's a tar.gz of multiple files. Your best option is to download it (manually or you can script with curl or wget, or in python vi …
user2856's user avatar
  • 69.6k
4 votes
Accepted

GDAL in global silent mode

As you've noticed, some GDAL commandline tools support a -q flag, but not all. There's no -q or --quiet type flag in the arguments common to all GDAL raster and vector commandline tools. …
user2856's user avatar
  • 69.6k
2 votes

GDAL: *.nc rasters, opened as "netCDF/Network Common Data Format" under Linux and as " HDF5/...

C:\Temp>gdalinfo --version GDAL 1.11.2, released 2015/02/10 I think there are 2 issues: 1. … The Windows NetCDF driver isn't trying to open your .nc file Your answer that says "Under Windows (at least with GDAL installed using the OSGeo4W installer) GDAL comes with an older library for netCDF …
user2856's user avatar
  • 69.6k
1 vote
Accepted

Error 193 while running gdal_calc.py using subprocess.call in Python

The gdal_calc.py script isn't an executable. Try calling python gdal_calc.py etc... subprocess.call([sys.executable, 'C:\\gdal_calc.py', '-A', 'C:\\a.tif', '--outfile=C:\\result.tif', '--calc="A+1"'] …
user2856's user avatar
  • 69.6k
2 votes

AttributeError with ExecuteSQL

ExecuteSQL is a method of a DataSource object, not a Layer. Use something like the following instead: data_source = ogr.Open(dataset) full_lyr = data_source .GetLayer(0) layerName = full_lyr.GetName …
user2856's user avatar
  • 69.6k
1 vote
Accepted

GDAL 2.x method for determing if an object is a raster or a vector

You can use Dataset.RasterCount to test if the dataset is raster and Dataset.GetLayerCount() for vector. Source: http://osgeo-org.1560.x6.nabble.com/Discover-whether-a-GDALDataset-is-raster-or-vector …
user2856's user avatar
  • 69.6k
2 votes

Best way to copy GDAL metadata from one JP2 image to another

(untested as I'm not running GDAL >=2.0dev): from osgeo import gdal def read_vsimem(filepath): """ Read GDAL vsimem files """ vsifile = gdal.VSIFOpenL(filepath,'r') gdal.VSIFSeekL(vsifile, … 0, 2) vsileng = gdal.VSIFTellL(vsifile) gdal.VSIFSeekL(vsifile, 0, 0) return gdal.VSIFReadL(1, vsileng, vsifile) def write_vsimem(filepath,data): """ Write GDAL vsimem files """ vsifile …
user2856's user avatar
  • 69.6k
1 vote

Using GDAL to convert a .bin to .tif

Delete that and your .hdr file will work and your .bin will be recognized by GDAL. Even better, use the VRT's suggested by @mdsumner. …
user2856's user avatar
  • 69.6k

1
2 3 4 5
22
15 30 50 per page