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
0 answers

How can I add a package to my Jupyter Notebook

I am an inexperienced Python user, so please forgive me if this is worded in a way that is somewhat confusing. I currently use a Python setup that has been handed down to me by a colleague who has now left our team. I open Anaconda, use jupyter…
Tom
  • 377
  • 3
  • 13
0
votes
0 answers

Installing GDAL via poetry on mac getting EnvCommandError error

I've been trying to install GDAL via poetry on mac but i keep getting an EnvCommandError error. I've tried reinstalling command line tools on mac and i even tried this stack overflow solution where i could log in to poetry's shell, try installing…
Dogfish
  • 94
  • 8
0
votes
1 answer

convert grib to geojson

I want to convert a grib2 file to a geojson with the following format: { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "ID": 0, "sigwaveht": 1.000000 }, "geometry": { "type": "LineString", "coordinates": [ […
jms1980
  • 1,017
  • 1
  • 21
  • 37
0
votes
0 answers

python not giving same results as gdal command line

I have an interpolated file which has positive Z values , so I want to use gdal_calc to make them negative. This works on the gdalcommand line with gdal_calc -a interpolated.tif --outfile gdal_negative.tif --calc="-abs(-a)" Based on this, I wanted…
0
votes
0 answers

How to use mapFieldType with gdal.VectorTranslate

I'm trying to export a postgresql database into a .gpkg file, but some of my fields are lists, and ogr2ogr send me the message : Warning 1: The output driver does not natively support StringList type for field my_field_name. Misconversion can…
0
votes
0 answers

GDAL Java API - How to get warp result bytes in memory

I am developing a raster service using the Java bindings of GDAL. When I execute a warp to extract a portion of the original photo, the result saves a new file by default. For performance purposes, I would like the result to stay in memory from…
0
votes
2 answers

Install spatial packages like terra, sf, raster had non-zero exit status on databricks

I want to install terra package and other spatial packages (raster,sf) on databricks but running into below issues. On my databricks notebook, I do install.packages("terra") Based on the error message, the gdal is not configured. I am trying to…
89_Simple
  • 3,393
  • 3
  • 39
  • 94
0
votes
1 answer

Spyder does not find gdal package even though it is installed

I have installed gdal with miniconda in the working environment for spyder. After restarting the PC, the conda list shows me that gdal is installed. However, I can not import the package. """Error: No module named 'gdal'""" The PythonPath Manager…
0
votes
0 answers

PyCharm cannot find gdal libraries when using os system in WSL Ubuntu

The problem is that within the PyCharm editor, the gdal applications (e.g. gdalwarp or gdal_grid https://gdal.org/) cannot be found when using os.system. For example the code: os.system(f"gdalwarp -t_srs EPSG:27700 {fnc} {tname}") returns this error…
0
votes
2 answers

GeoTiff raster data to Delta Lake / Parquet format?

Our organisation has been using Databricks recently for ETL and development of datasets. However I have found the libraries/capabilities for raster datasets very limiting. There are a few raster/Spark libraries around, but they are not very mature.…
TheRealJimShady
  • 777
  • 3
  • 9
  • 24
0
votes
0 answers

Convert 6.3GB .TIFF to GeoJSON with gdal_polygonize.py Crashes at 70%

hoping for a bit of help with this question as I've been trying to figure out how to convert a 6.33GB .TIFF file to GeoJson format for a couple of weeks now. I'm trying convert this data set -…
0
votes
0 answers

Reproject IMERG to lambert conformal projection using gdalwarp

I need to change IMERG hdf5 file projection to Lambert conformal conic projection. IMERG file is in IMERG is EPSG:4326. below is gdalinfo. …
singsung
  • 27
  • 3
0
votes
1 answer

Gdal connection to Azure Data Lake Storage (Gen 2) virtual file using AZURE_STORAGE_ACCESS_TOKEN

I want to access my Azure Data Lake Storage (Gen 2) files from gdal version 3.5 using authentication with AZURE_STORAGE_ACCESS_TOKEN as described here:https://gdal.org/user/virtual_file_systems.html#vsiadls None of the other authentication options…
0
votes
0 answers

Plot geopandas dataframe on top of raster using matplotlib/gdal(numpy)/geopandas

I want to plot my geopandas objects on top of a raster. Other people have asked this question here before and all answers seems to be: convert numpy array(raster) into Rasterio object. Is there a solution to plot this without Rasterio? Seems crazy…
Qiicken
  • 43
  • 3
0
votes
1 answer

gdal2tiles outputting wrong zoom levels for TOC maps

I've been searching for any reference to the problem I am currently having but so far haven't found it being experienced by anyone else so I'm here asking for guidance on a possible solution. I have a CADRG map in EPSG:4326 projection with a file…
MCBama
  • 1,432
  • 10
  • 18