2,238 questions
0
votes
1
answer
55
views
GDAL installation on windows 11
I am trying to install GDAL in my virtual Environment which is built based on python 3.13.7.
Following this page, In my environment I do:
pip install gdal
No success though. Please see the error ...
0
votes
0
answers
18
views
How to use GDAL in C++ in MacOS M1? [duplicate]
I have a small C++ file like below
#include <iostream>
#include <string>
#include <sstream>
#include "/opt/homebrew/Cellar/gdal/3.11.5/include/gdal_priv.h"
// #include &...
0
votes
0
answers
42
views
gdal2tiles: alpha value flattened
I have a tif image(RGBA) with following stats for alpha channel:
Band 4 Block=829x2 Type=Byte, ColorInterp=Alpha
Min=1.000 Max=255.000
Minimum=1.000, Maximum=255.000, Mean=202.508, StdDev=46.463
...
3
votes
1
answer
82
views
Compilation error for 'terra' in Rstudio v 4.1.1
I am hoping to install the R-INLA package (https://www.r-inla.org/what-is-inla) which requires the package terra. I need to install the source version of terra to use the INLA package (the binary ...
2
votes
0
answers
62
views
How to get rid of no-data pixels in tif,png
I have a gis image file in tif format which I convert to png based tiles using gdal.
gdalinfo command for tif file shows:
Band 1 Block=1652x2 Type=Byte, ColorInterp=Gray
Min=1.000 Max=255.000
...
1
vote
1
answer
99
views
Python gdal open layer from bytes
I need to perform a conversion from a FlatGeoBuf file that I read as bytes from an http request to a GeoJSON file.
I know that I could save the .fgb on disk, open it with ogr, and then I have a ...
2
votes
1
answer
85
views
gdal2tiles.py hangs when run in Conda Docker environment
I'm running a Python script inside a Conda-based Docker container that processes geospatial data. The script runs a two step GDAL workflow, it uses gdaldem colorrelief to create a colorized GeoTIFF, ...
1
vote
0
answers
50
views
Including Kakadu JPEG2000 Drivers in GDAL3.js
I have downloaded and successfully built the GDAL3.js project, but it does not include any drivers for JPEG2000 (such as Kakadu, or Open JPEG).
I have in the past successfully built the standard GDAL3 ...
0
votes
1
answer
98
views
Missing GDAL header file when building PDAL from sources
I am trying to build PDAL from source. At 57%, the build fails, missing the GDAL header file cpl_vsi.h included in VSIIO.cpp.
In the CMakeCache.txt file in the build directory, there is
//Path to the ...
0
votes
0
answers
61
views
Simple GDAL coordinate transformation failing
I'm in the process of upgrading the version of GDAL that we use to version
3.10.3, which was installed using vcpkg. I noticed that some of our unit tests were failing. Below is an example that fails (...
0
votes
0
answers
20
views
Call Docker image from a running container [duplicate]
So, I have the following Dockerfile to create my Lucee image (I named the built image as "basic").
FROM lucee/lucee:latest
RUN mkdir -p /var/www
COPY www/ /var/www/
And I use this image ...
0
votes
0
answers
1k
views
How to install osgeo package for a virtual environment in python after installing a GDAL wheel?
I have a venv and need to access methods from the gdal package which is included in the osgeo package.
The following command did not work directly:
pip install gdal
So I downloaded this wheel GDAL-3.9....
0
votes
1
answer
24
views
Anaconda Spyder will not import gdal
I have installed gdal at Anaconda base prompt using "conda install -c conda-forge gdal" and also created separate conda environment (geo) and installed at this location using the same ...
0
votes
1
answer
39
views
Dynamic dependency install with pyproject.toml
Is there a way to dynamically check the version of a package installed system wide and set that as a package dependency in the pyproject.toml? Specially, I need to check if a person already has GDAL ...
0
votes
1
answer
78
views
python gdal.warp doesn't properly crop raster over shapefile polygons
I used this script to crop a raster using a polygon shapefile with python gdal.Warp, but it seems it leaves many pixels with value = 1 outside the cropline
gdal.Warp(rasterOut.jp2,
rasterIn....
0
votes
0
answers
31
views
How to change the encoding of fields in .tab file C# + Gdal?
There is a service that exports layer objects to the MapInfo .tab format. This service uses the Gdal 3.3 library version. The service is deployed on a Linux server. There is a problem with exporting ...
0
votes
0
answers
38
views
In Python GDAL, why I get two EPSG attributes in ExportToWkt?
I'm processing some satellite MOD13Q1 images. If I print the ExportToWkt output, I get:
PROJCS["unnamed",GEOGCS["Unknown datum based upon the custom spheroid",DATUM["...
2
votes
0
answers
182
views
"PROJ: proj_create_from_database" error when transferring a KML file to PostgreSQL using ogr2ogr
I am trying to import a KML file into a PostgreSQL database using the ogr2ogr tool, but I am encountering the following error:
ERROR 1: PROJ: proj_create_from_database: C:\Program Files\PostgreSQL\17\...
2
votes
0
answers
83
views
How to skip system dependencies during the pipenv lock process when using Dependabot?
I’ve been using Dependabot to keep my Python packages up to date, but recently it’s been slowing down and not updating as often as I’d like.
After digging into the issue, I found that a specific ...
0
votes
0
answers
155
views
Using gdal_translate to compress multiple TIFF files
Gdal_translate throws "too many command options."
I used a gdal_translate code in a batch file to convert multiple JP2 files to TIFF format, and it worked well.
I then modified that same ...
0
votes
1
answer
119
views
osgeo packages quit running in python evironment without error/warning
I am having problem with running gdal/ogr/osr in python environment. The program just stopped running until the line where I use any of these packages.It doesn't give any error or warning message. I ...
0
votes
0
answers
51
views
gdal_calc.py expression to extract where raster is equal to 2 values
I am trying to extract all raster values where the cell is equal to either 330 or 430, however I can't get the syntax to work. I am using the following:
python gdal_calc.py --co "COMPRESS=DEFLATE&...
0
votes
1
answer
444
views
Exporting Vector and Raster Layers to GeoPackage (gpkg) with PyQGIS
How to export layers(shape-files and GTiff) from a list into one gpkg file?
It works for vector and raster layers separately, but only one type of layers is saved in the output.
I've realised what ...
0
votes
1
answer
128
views
How can I fix this geojson with unwanted vertices?
I'm working with a GeoJSON file that represents the area of the United States at 0 feet elevation. However, when I load it into QGIS, a strange diagonal line appears, stretching across the map. This ...
0
votes
1
answer
111
views
Gdal.translate produces map with latitude axis upside-down
I am trying to process rain radar images of the UK MET weather service for a particular catchment area.
I am stitiching the image together from several png files before georeferencing it with gdal....