Questions tagged [gdal]

GDAL (Geospatial Data Abstraction Library) is a library for reading and writing raster geospatial data formats.

GDAL (Geospatial Data Abstraction Library) is a library for reading and writing raster geospatial data formats.

2184 questions
10
votes
3 answers

No module named osgeo.ogr

I need to import osgeo.ogr module to virtualenv python program. Global python has this module: user@ubuntu:~/$ python Python 2.7.8 (default, Oct 20 2014, 15:05:19) [GCC 4.9.1] on linux2 Type "help", "copyright", "credits" or "license" for more…
karavanjo
  • 1,626
  • 4
  • 18
  • 31
10
votes
1 answer

GDAL - gdalbuildvrt "tif file not recognized as a supported file format"

I am trying to create a virtual raster (VRT file), that joins a large amount of GeoTIFF rasters. I am using gdalbuildvrt command in a Windows 7 environment. Below is the syntax used. gdalbuildvrt -input_file_list C:\listing.txt -srcnodata 0…
jhc
  • 1,739
  • 3
  • 21
  • 46
10
votes
1 answer

How to run GDAL (ogr2ogr) in Java to convert Shapefiles to GeoJSON

I'm a beginner at programming and get pretty confused when trying to use external libraries. I have my maps in shapefiles that I convert to GeoJSON using the website Mapshaper.org, and only then can i read the map from my Java application. I want…
user29903
  • 101
  • 1
  • 3
10
votes
2 answers

How to extract vertexes of geometries in ESRI shapefiles using ogr library with c++

I have answered the question and also changed the title of the question from How to access vertices in a polygon layer using ogr library with c++ to How to extract vertexes of geometries in ESRI shapefiles using ogr library with c++. The code can…
Sepideh Abadpour
  • 2,550
  • 10
  • 52
  • 88
10
votes
1 answer

gdal/ogr: How to really crop a shapefile?

Given a SHP file corresponding to European countries, and... Given defined area corresponting to France such : West : 005° 48' W East : 010° E North : 051° 30' N South : 041° N How to get only the dots/geometries which intersects my defined area…
Hugolpz
  • 17,296
  • 26
  • 100
  • 187
9
votes
5 answers

M1 Mac - GDAL Wrong Architecture Error [Django]

I'm trying to get a django project up and running, which depends on GDAL library. I'm working on a M1 based mac. Following the instructions on official Django docs, I've installed the necessary packages via brew $ brew install postgresql $ brew…
SercioSoydanov
  • 980
  • 10
  • 29
9
votes
3 answers

(M1 Mac) Geodjango GDAL: mach-o, but wrong architecture

I am trying to get GeoDjango running on mac os and have hit a problem with GDAL. I have downloaded and installed GDAL without problem (Gdal Complete Binary) also installed from homebrew too. Unfortunately when i was installed gdal with homebrew…
Veli Eroglu
  • 147
  • 2
  • 9
9
votes
1 answer

Convert NetCDF (.nc) to GEOTIFF

I have .nc file sizing around 300MB with a couple of datasets (TEMP, DEWPOINT) forecast data. I need to convert (TEMP) dataset to multiple GEOTIFF (one .tif for each time slice). Here is how the .nc file looks like. Looked into this answer but it…
johnny
  • 2,032
  • 1
  • 25
  • 45
9
votes
2 answers

updating Rgdal in R.3.5.1 C++11 dependency... although C++11 is available

When I am updating (or at least trying to) the rgdal package by compiling from source after updating R from 3.4.4 to 3.5.1, I run into the odd issue that all goes well, but the namespace load fails due to an "undefined symbol" error: ** installing…
FM Kerckhof
  • 1,270
  • 1
  • 14
  • 31
9
votes
4 answers

GeoDjango could not find GDAL library in Windows 10

I am using Django 11.4 on Windows 10 and I am having problems when I try and migrate my models. I receive this error: django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal201", "gdal20", "gdal111", "gdal110",…
Flynnpc
  • 331
  • 2
  • 3
  • 11
9
votes
2 answers

Trouble getting latest version of GDAL on ubuntu running R

My Ubuntu machine has latest GDAL (2.2.1, released 2017/06/23). But R complains that I have gdalversion <2.0 configure: CC: gcc -std=gnu99 configure: CXX: g++ checking for gdal-config... /usr/bin/gdal-config checking gdal-config usability...…
sbaniwal
  • 337
  • 4
  • 6
9
votes
3 answers

Importing GDAL prints lots of error messages, but still works

So, I should not be complaining, but it is annoying. On my setup (Windows Server 2012 R2) importing GDAL in Python in the terminal prints the following: >>> import gdal ERROR 1: Can't load requested DLL: C:\Program Files…
Kartik
  • 8,347
  • 39
  • 73
9
votes
1 answer

gdal_calc amin fails when passing more than 23 input files

I've written an R function that calls gdal_calc.py to calculate the pixel-wise minimum value across a RasterStack (series of input raster files). I've done this because it's much faster than raster::min for large rasters. The function works well for…
jbaums
  • 27,115
  • 5
  • 79
  • 119
9
votes
3 answers

Description of parameters of GDAL SetGeoTransform

Can anyone help me with parameters for SetGeoTransform? I'm creating raster layers with GDAL, but I can't find description of 3rd and 5th parameter for SetGeoTransform. It should be definition of x and y axis for cells. I try to find something about…
david_p
  • 223
  • 1
  • 6
  • 17
9
votes
1 answer

gdalwarp too slow (compared to gdal_merge)

I have 70+ raster images in TIFF format that I am trying to merge. Originals can be found here: http://www.faa.gov/air_traffic/flight_info/aeronav/digital_products/vfr/ After pre-processing (pct2rgb, gdalwarp individual charts, gdal_translate to…
user1667302
  • 593
  • 6
  • 15