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
0
votes
1 answer

How to fix "ERROR 1: Cannot get geotransform" in GDAL

I am trying to read values from a geoTiff and am using gdallocationinfo for that purpose. However, when I try to do that, e.g with gdallocationinfo out.tif -wgs85 8.5 47.3, the following error occurs: root@bc21abca5e07:/usr/src/app# gdallocationinfo…
0
votes
2 answers

Stack raster in loop working with HDF files directly (not tif files)

I'm working with 1.460 HDF files (4 years daily data). I'm interested in obtaining MEAN AOD from all the files. With the following code I only obtain information from the last file, not the combination of all the files I'm working with and I'm not…
0
votes
0 answers

Incorrect image size when generating raster png images from vector data

I am writing a python API (WMS format) to fetch the gridded weather data(rainfall) and convert it into png images. I am using GDAL for this and involves below steps: Fetching data from database using the BBOX from WMS Rasterizing the data using…
Prashant
  • 55
  • 1
  • 9
0
votes
0 answers

why is gdal error saying file does not exist when file.exists = TRUE

I'm getting this error message and I'm stumped as to why. > gdalwarp("Data/Land_Cover/Northern_Land_Cover_2000/landcover_mosaic_originalCRS.tif", dstfile = "Data/Cleaned_Data/landcover_mosaic_lcc.tif", t_srs = LCC, output_Raster = TRUE, overwrite =…
canderson156
  • 1,045
  • 10
  • 24
0
votes
1 answer

Run Django in docker container with GDAL

I am currently trying to run a Django project inside a docker container, to provide the project with a local DB. The Project is depending on GDAL, but when trying to install the requirements it always runs into the same problem. The following is my…
Falko
  • 33
  • 8
0
votes
0 answers

How to solve Error 2 in Make command on Windows?

I'm trying to install the following GitHub Repository in my machine: Br-Altlas The instructions tell me to install Gdal before clonning it, and then run npm install and run the command "make". When I run the make command in the Git Bash, I have the…
Cezene
  • 73
  • 2
  • 14
0
votes
0 answers

Trying to install APLS on Google Colab

So basically i'm trying to install Apls from this repo: https://github.com/CosmiQ/apls However, I keep running into issue with GDAL and Fiona. First, I tried to install it on my local machine (Windows_10_x64), by creating a visual environment in…
AndBol
  • 11
  • 2
0
votes
1 answer

Stack geotiff images while retaining individual bands

I have two images with 3 and 5 bands respectively. How do I retain each image's individual bands after merging? from osgeo import gdal img_list = ['img1.tif', 'img2.tif'] vrt = gdal.BuildVRT("merged.vrt", img_list,…
Umar Yusuf
  • 926
  • 2
  • 13
  • 30
0
votes
3 answers

Is there a faster method for iterating over a very big 2D numpy array than using np.where?

i have a huge 2D numpy array filled with integer values. I collect them from a .tif-image via gdal.GetRasterBand(). The pixel values of the image represent unique cluster-identification numbers. So all pixels inside one cluster have the same…
Maniiko
  • 1
  • 1
0
votes
2 answers

How to install GDAL on Google Colab fast?

I can install GDAL in Google Colab by running the cell: %%shell sudo yum -y update sudo yum-config-manager --enable epel sudo yum -y install make automake gcc gcc-c++ libcurl-devel proj-devel geos-devel cd /tmp curl -L…
zabop
  • 6,750
  • 3
  • 39
  • 84
0
votes
1 answer

Python fails to start a GDAL command

The error message is as follows: python3.exe: No module named gdal2tiles I downloaded the Osgeo4w installer and through this I installed GDAL\OGR 3.4 and python3-gdal libraries. This is the command line I'm trying to launch: python3 -m gdal2tiles…
Koba
  • 81
  • 10
0
votes
1 answer

Cannot install GDAL from source on ubuntu

sudo apt-get install build-essential python-all-dev wget http://download.osgeo.org/gdal/3.4.0/gdal-3.4.0.tar.gz tar xvfz gdal-3.4.0.tar.gz cd gdal-3.4.0 ./configure --with-python make sudo make install When I run the code above to install gdal…
Jake
  • 57
  • 3
  • 9
0
votes
0 answers

SIGSEGV when trying to open tiff with gdal

All I am trying to do it run the basic command: from osgeo import gdal if __name__ == '__main__': gdal.Open() This gives the following undescriptive output: TIFFReadDirectory: Warning, Unknown field with tag 42112 (0xa480)…
nikojpapa
  • 660
  • 1
  • 8
  • 16
0
votes
1 answer

Reading M-Values from shapefiles using GeoPandas/Fiona

I am working with a set of line features (roads) that are represented as "polyline ZM" in shapefiles. However, when using geopandas/fiona to read the shapefiles, the return geometry is always LineString Z. I read online that GDAL supports reading…
Lucas Yu
  • 13
  • 1
0
votes
0 answers

How to resize image of earth to be flat in Python for Leaflet?

I got two images of earth from NASA, both 2400x2400px in size that I've processed to be heatmaps and finally combined into one image of size 4800x2400px. This image will be used as an overlay in a web application using Leaflet and OpenStreetMap.…
user15227672
  • 51
  • 1
  • 9
1 2 3
99
100