137 questions
0
votes
0
answers
34
views
Open OSGeo4W Shell in VSCode
I would like to add the OSGeo4W shell to the list of terminal options (currently includes R, Python, powershell, etc...) in VS Code. How can add that here?
Search results suggest running VSCode from ...
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
178
views
import osgeo: ImportError: DLL load failed while importing _gdal
I'm loading osgeo in a conda python environment. Initially I installed again gdal and libgdal according to this post and seems to work. I'm using the python located at: C:\\Users\\Admin\\AppData\\...
1
vote
1
answer
1k
views
No module named 'osgeo._gdal_array' - Docker image with Python and GDAL
I'm having trouble using GDAL in docker.
My application locally but when on docker I get this error:
ModuleNotFoundError: No module named 'osgeo._gdal_array'
I created here a small example to make ...
1
vote
3
answers
13k
views
ERROR: Failed building wheel for osgeo, Failed to build osgeo
when i install osgeo on my anaconda prompt i got the error message looks like " Exception: In order to be able to run from osgeo import gdal,
You were probably trying to install gdal by ...
1
vote
1
answer
676
views
GDAL Warp produces a black image
I am calling GDAL warp using the python distribution on a NITF file and it simply outputs all zero values which creates an empty black image. The command I'm calling is
import osgeo.gdal as gdal
gdal....
8
votes
2
answers
26k
views
Install GDAL on LINUX Ubuntu 20.04.4LTS for python
I've been having a lot of problems with this install, especially with various unmet dependencies.
these are my system infos:
Linux
Ubuntu 20.04.4 LTS
64-bit
Gnome_Version: 3.36.8
Python
using a &...
7
votes
2
answers
25k
views
why do I receive these errors "WARNING: Ignoring invalid distribution -yproj " while installing any python module in cmd
WARNING: Ignoring invalid distribution -yproj (c:\users\space_junk\appdata\local\programs\python\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -yproj (c:\users\space_junk\appdata\...
4
votes
1
answer
4k
views
Solution to installing GDAL/PROJ/GEOS in windows 10 for Django/Geodjango
Whether you are finding it difficult to install the GDAL library or have been able to install it but do not know how to make it work in Django for your geoDjango app, I would like to share how I was ...
0
votes
1
answer
4k
views
having trouble installing osgeo to work with gdal
I'm using Ubuntu 20.04. My goal is to add georeferencing to an image. I have a simple script below. It's confusing because I have gdal installed, but I can't call it by itself. I need to use "...
0
votes
0
answers
276
views
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(<filepath>)
This gives the following undescriptive output:
TIFFReadDirectory: ...
0
votes
1
answer
907
views
Accessing M-values associated to LINESTRING M and MULTILINESTRING M geometries
How can I access a line geometry's multiple M-values? Consider that the line geometry in question can be either a LINESTRING M or MULTILINESTRING M geometry that was created using osgeo/ogr.
Here's a ...
2
votes
0
answers
249
views
Problems with GDAL, Libspatialite, Rasterio and Sumo (ImportError, Symbol _GEOSArea not found, Referencing from libspatialite.7.dylib)
I'm new to using gdal/libspatialite/rasterio/sumo and all the family of library and packages that is related to geographical, time and space. But I was just wondering what's this error here? Does ...
0
votes
0
answers
1k
views
Install GDAL Library in Docker Container
I'm trying to install GDAL in a docker container running the CVAT tool. The base docker file can be found here https://github.com/openvinotoolkit/cvat/blob/develop/Dockerfile . I modified it to add ...
1
vote
3
answers
2k
views
create a FID column in shapefile in ogr or geopandas python
I need the information of the FID column from a shapefile. Somehow that column is not "shown" when you load shapefile. I need the information of that column because I need to say something ...
1
vote
0
answers
205
views
DeprecationWarning: gdal.py was placed in a namespace, it is now available as osgeo.gdal
I have a problem with my script. I would like to use a package that allows me to use the qgis software directly in my code. This package is called qgis.core. I had some trouble installing it, but it ...
1
vote
0
answers
2k
views
Error installing/importing gdal (No module named 'osgeo')
i've been stuck at this for hours and i can't get it to work.
I've fresh installed the newest version of anaconda3 from their website, but running "conda install -c conda-forge gdal' failed with &...
2
votes
1
answer
2k
views
How do I build GDAL with OpenCL against a custom CUDA installation?
I am trying to build GDAL against OpenCL to get GPU accelerated raster operations, depending on Cuda. I managed to get ./configure to complete and start compiling with make. However, when compiling ...
1
vote
0
answers
855
views
Problem using VSCode for OSGEO4W and Python development
I want to use VSCode as editor for my OSGEO4W development. I can write and debug and run my programm, but the "outline"-window (which is pretty necessary) on the left side is not working.
...
1
vote
0
answers
2k
views
Change CRS of .tif file using gdal command
I am trying to change the CRS of a .tif file using gdalwarp in the OSGeo4W command prompt. Before I would do it manually in QGIS by Export > Save As > Set CRS. However I have a lot of files so I ...
0
votes
1
answer
491
views
What am I doing wrong while creating Image pyramid in geoserver?
I have geoserver 2.15.0 installed and I'm following these steps to create Image pyramid https://docs.geoserver.org/stable/en/user/tutorials/imagepyramid/imagepyramid.html I created all the tiles and ...
1
vote
0
answers
1k
views
pip3 install gdal ERROR: Command errored out with exit status 1
Premise:
I have a macbook-pro with Catalina (10.15.4), I have installed: python 3.7 and the GDAL 2.4 and Qgis 3.12 library. (I don't use anaconda or miniconda and I installed homebrew)
Everything ...
1
vote
2
answers
730
views
Geo Django GDAL: Unable to open EPSG support file gcs.csv
I recently did a clean window installed. I installed OSGeo4W via: https://trac.osgeo.org/osgeo4w/
I installed GDAL by downloading the pip wheel GDAL-2.3.2-cp36-cp36m-win_amd64.whl
I also configured my ...
1
vote
1
answer
1k
views
Create new raster (.tif) from standard deviation stretched bands, works with dstack but not to write a new file, Python
I am sorry if the title is unclear, I am new to python and my vocabulary is limited.
What I am trying to do is apply a standard deviation stretch to each band in a .tif raster and then create a new ...
2
votes
1
answer
3k
views
Translate .ecw to .tif with GDAL from OSGeo in Python
I have about 250 .ecw files I want to transform to .tif or .png or .jpg using GDAL and Python. This is my code:
from osgeo import gdal
inputfile = gdal.Open('C:/Users/Berteld/aGIS/python/data/wms/...