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

GDAL read several pictures from wmts server using same opened connection

I use C++ code to read pictures from WMTS server using DGAL. First I initialize GDAL once: ... OGRRegisterAll(); etc. But new connection is opened every time I want to read new image (different urls): gdalDataset = GDALOpen(my_url,…
0
votes
1 answer

Builing gdal from source gives linking error with openssl

I'm trying to build gdal==3.4.1 from source on Redhat UBI8.6 with conda in a python 3.8 environment and proj 8.2.1 using the following: ./configure --prefix=$CONDA_PREFIX --with-netcdf=$CONDA_PREFIX --with-proj=$CONDA_PREFIX --with-curl=no make -j…
Shejo284
  • 4,541
  • 6
  • 32
  • 44
0
votes
1 answer

Projection problem from gdal2tiles.py to R Leaflet

I do have a projection problem when making tiles with GDAL command and using the same for Leaflet in R. The steps I am following are: I save the Tiff in QGIs with the following configuration: In Centos Amazon Linux 2 and GDAL I Run the following…
RRuiz
  • 2,159
  • 21
  • 32
0
votes
2 answers

Get raw buffer for in-memory dataset in GDAL C++ API

I have generated a GeoTiff dataset in-memory using GDALTranslate() with a /vsimem/ filepath. I need access to the buffer for the actual GeoTiff file to put it in a stream for an external API. My understanding is that this should be possible with…
0
votes
1 answer

Is it possible to merge raster bands from several folders using GDAL?

I have two folders containing about 15 000 .tif files. Each file in the first folder is a raster with 5 bands, named AA_"number" meaning it looks like AA_1.tif, AA_2.tif, ..., AA_15000.tif. Each file in the second folder is a raster with 2 bands…
Elias B
  • 1
  • 2
0
votes
0 answers

Writing geotiff is grayscale instead of color python-gdal

I am trying to upscale an geotiff, using deep learning network. I read in a color geo-tiff using gdal and process each band separately and write that band back into the new geo-tiff driver. The code snippet that does this is given below. # Remove…
spacemanspiff
  • 113
  • 12
0
votes
0 answers

Postgis ST_TRANSFORM failing with ESPG 27200

I have a database that was using postgis 2.2.1 extension on postgresql 9.5 database on server A. But, recently I have upgraded this to 2.5.5 and copied this database to new server B which also has postgis 2.5.5. Result of Postgis_full_version() on A…
rajnz18
  • 60
  • 5
0
votes
1 answer

why is the BIGTIFF=YES not exectuted though I wrote in in the command?

I am trying to run gdal_merge using BIGTIFF=YES from python. command = "gdal_merge.py -co BIGTIFF=YES -o " + output_path + "/merged.tif" + " -of gtiff " + merge_string print(os.popen(command).read()) for example this kind of command will be…
komura_
  • 9
  • 2
0
votes
1 answer

plot KML library load fail, unable to load shared object

Not sure if relevant, but I'm getting this error after a recent update to Mac OS Monterey Version 12.5.1. After trying library(plotKML) I get the following: Error: package or namespace load failed for ‘plotKML’ in dyn.load(file, DLLpath = DLLpath,…
0
votes
1 answer

R terra package error in reading netcdf: No UNIDATA NC_GLOBAL:Conventions attribute

I am trying to read the below netcdf using terra package. The netcdf file contains data for 3 years. When I load the data, it gives me below warning which I never had before. gdp <- terra::rast(file.path(dir_ls$base, 'v3.nc')) Warning message: In…
89_Simple
  • 3,393
  • 3
  • 39
  • 94
0
votes
0 answers

Raster in Spyder about save, export etc

I have a problem about with Spyder. I want to saving the raster output to created with rasterio module. But where is the Created output in Spyder? I must find Because I cant export the raster Thanks :)
edaasc
  • 3
  • 2
0
votes
1 answer

Cartopy: Albers Equal Area projection not working

I am trying to plot a topographic raster in Cartopy. I have downloaded some sample GeoTIFF data from this database: https://zenodo.org/record/3940482. I then import the data and metadata using the Python GDAL library: from osgeo import gdal …
Fab von Bellingshausen
  • 1,387
  • 1
  • 8
  • 16
0
votes
0 answers

gdal_translate in bat with "for" keeps repeating one loop

I'm new in batch files and in gdal, so I've been trying to run this script in .bat, BUT it keeps repeating one loop, so if I have 2 *.tif (utm1.tif and utm2.tif) files in the folder, it creates 3 .tif (testeutm1.tif, testeutm2.tif and…
0
votes
0 answers

reading NetCDF files - tibble columns must have compatible sizes

I like to read NetCDF files via stars::read_ncdf or tidync::tidync but get an error message like #> Error: #> ! Tibble columns must have compatible sizes. #> • Size 2: Columns `filter_id` and `filter_params`. #> • Size 3: Column `chunksizes`. #> ℹ…
ckluss
  • 1,477
  • 4
  • 21
  • 33
0
votes
0 answers

Setting PATH for R calling gdal_calc.py in Windows

I am looking for advice on how to install R 4.2.1 and GDAL on Windows 10. This is a work machine that the IT department manages, but they are not sure how to proceed. The machine has: R4.2.1, Rtools 42, and GDAL (installed from OSGeo4W last…
michela
  • 61
  • 1
  • 1
  • 3