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

Deploying Node.js app with gdal | AWS Elastic Beanstalk

I'm trying to deploy a node.js app but get stuck with an error about missing dependencies for gdal. Error: /lib64/libm.so.6: version 'GLIBC_2.27' not found (required by /var/app/current/node_modules/gdal/lib/binding/gdal.node) How would I go about…
0
votes
1 answer

Python: how to merge two different netCdf filles with different spatial resolution?

Is it possible to merge two netCDF files with different spatial resolution? I have two datasets. The first one is the ESA Land Cover dataset with a spatial resoltion of 300m as netCDF. The first one is the population living in Italy with a spatial…
emax
  • 6,965
  • 19
  • 74
  • 141
0
votes
2 answers

Set CRS to shapefile

Good afternoon, I have a question: how to set CRS to shapefile in python? Using gdal.Polygonize(), I converted raster to vector (shapefile) and then I put it in QGIS, shapefile is without CRS. how to set CRS to shapefile in python?
TimTom
  • 1
0
votes
1 answer

Extract Water Use data from .NC file using python

I am trying to use global wateruse data from the following website https://zenodo.org/record/897933#.Yj4vbufMKUl. I managed to open the zipped file, domestic water use.7z, but noticed that the both files cons_dom.nc and withd_dom.ncare in .nc…
0
votes
1 answer

Generate jpeg-YCbCr tiles in geotiff file with jfif format instead pure jpeg format

Currently, my app creates GeoTiff tiled files using following options: PROFILE=GeoTIFF TILED=YES BLOCKXSIZE=xxx BLOCKYSIZE=xxx COMPRESS=JPEG PHOTOMETRIC=YCBCR JPEG_QUALITY=xx However, some apps that use my served tiles do not work due to "invalid"…
Tio Pepe
  • 3,071
  • 1
  • 17
  • 22
0
votes
1 answer

Trouble installing package "sf" in R (Big Sur)

I tried to install the sf package because it is a dependency for tidycensus, which is the package I'd like to use. I am using a Mac with Big Sur. Per the Github for r-spatial, I tried following the installation instructions here but no dice. My…
TCW
  • 25
  • 9
0
votes
0 answers

Gdal_translate is changing values range

I'm using the following command of gdal_translate to convert GTiff files to JP2 format: gdal_translate image.tif image.jp2 -of JP2OpenJPEG -co QUALITY=25 -ot Int16 However, the output JP2 image has a different range of values compared to the…
Julio
  • 13
  • 2
0
votes
1 answer

Pytest + GDAL: cannot allocate memory in static TLS block

Here's my GitHub Actions workflow: name: Test and merge on: push: branches: - dev jobs: build-test-push: services: postgres: image: postgis/postgis:latest env: POSTGRES_USER: postgres …
Vassily
  • 5,263
  • 4
  • 33
  • 63
0
votes
1 answer

How to get band names in geotiff stack?

From an stack of geotiff (time-series of NDVI) in a file like 'NDVI_TS.tif' I want to get individual band names. For example: 'Band 086: 20190803T004719'. I can see that when I load the stack into QGIS for example. I need to trace back the dates in…
Jonathan
  • 133
  • 1
  • 15
0
votes
1 answer

Get Corner Coordinates TIFF file

I'm using a javascript app to get the borders coordinates of a TIFF file. I'm having trouble getting these coordinates. I'm using this example, but the corner coordinates are returning incorrectly. The correct thing would be to return coordinates…
Agro SEEN
  • 11
  • 1
0
votes
0 answers

Imported GeoTIFF file returns only NAN values

I have been trying to import a GEOTIFF file that shows irradiance data. I am able to plot (see Plot here) the file so I am sure the file has data; however; the raster array contains only nan values. Is there any way to resolve this? I am quite new…
George
  • 1
0
votes
0 answers

Issue installing geopandas package

I understand that GDAL is a prerequisite and have followed other threads to download the wheel file from Laboratory of Fluorescence Dynamics even taking note which file to download based on the python version for compatibility however, there is…
0
votes
1 answer

gdal_viewshed for target above sea level

I'm trying to compute some terrain visibility analysis on DEM data by using GDAL library. The gdal_viewshed worked in the case of target Above Ground Level (AGL). Is there any way to use this routine also for the case: target Above Sea Level (ASL)?…
PietroR
  • 1
  • 1
0
votes
1 answer

Creating georeference geotiff image

I have tried to create a geotiff image after extracting texture feature of a grayscale geotiff image using the below codes. #Creating texture images Texture_Contrast = Image.fromarray(Contrast) #image coordinates…
0
votes
1 answer

Set overview level with gdal_translate for a COG

I have a 5kx5k COG image I'm able to read with gdal_translate for python and output it as a numpy RGB array. However, I'd like to be able to directly select the overview level in the image. If I want to see the entire image, I'd like to make it so…