gdal Questions

2

I've been running GDAL through python on anaconda for years with no problem. Today when I tried to import gdal I got this error code: On Windows, with Python >= 3.8, DLLs are no longer imported...
Steiermark asked 6/11, 2020 at 2:10

2

Solved

I am trying to install a Python package via Poetry whose version to install should be determined based on the output (~return value) of a Bash command. Is it possible doing something (in the pyproj...
Coitus asked 20/12, 2021 at 15:48

12

Solved

I've done this a dozen times before, but something isn't working this time.. Following the docs: https://docs.djangoproject.com/en/1.11/ref/contrib/gis/install/#windows I'm trying to set up GeoD...
Blastoderm asked 23/5, 2017 at 16:23

12

I started to use gdal_csharp dll in my application and read a geotiff file. but it says: The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception. it's my code string fileName = @"/...
Splay asked 16/1, 2013 at 7:45

5

Solved

Let me start by saying that I have searched for help this problem and gone through the numerous threads that I have found, and none of them have worked, or I wasn't able to understand what they are...
Isador asked 22/12, 2015 at 4:58

3

Solved

My GDAL is showing strange behaviour when I try to use ".py" functions from the command line: 1. For example, when I run gdalinfo --version, I get the standard response: GDAL 1.11.3, released 201...
Flexuosity asked 19/2, 2016 at 7:57

4

Solved

After my old macbook died I am transferring across a Django Webapp I'd been building to my new machine (which is a MacBook Pro M1 2021). I am currently in the process of reinstalling the correct pa...
Strang asked 3/1, 2022 at 22:59

4

I am not able to read the shape file. It says no such working directory. !pip install sentinelsat !pip install geopandas !pip install folium from sentinelsat import SentinelAPI user = '****' pas...
Delative asked 26/4, 2020 at 7:2

1

i'm trying to solve this problem for a week now and it seems i did all i could. this is the error message i'm getting: Traceback (most recent call last): File "C:\Users\\anaconda3\envs\pygdal...
Gegenschein asked 12/7, 2022 at 12:42

4

Solution provided below: Started getting errors when building pygdal on Ubuntu 20.04: # Command python3 -m pip install --no-cache-dir pygdal==3.0.4.* produces the following output Collecting pygda...
Bartlet asked 9/9, 2021 at 18:53

2

Solved

I have a conda environment with rasterio installed and a whole load of other libraries, including gdal. When I do: import rasterio on jupyter notebook, it loads fine and I can utilise it's meth...
Sizable asked 9/4, 2019 at 15:46

3

Solved

I am trying to figure out a way to use progress bar in gdal.Warp() to show how much of a job is done. For progress bar, I am using Tqdm and gdal.Warp() is used to crop image from remote URL def ge...
Tedtedd asked 8/11, 2017 at 15:45

3

I installed libtiff successfully in python 2.7 using "pip install libtiff". It successfully installed the libtiff-0.4.0 package. But when I am importing the package using "import libtiff".I get an ...
Unpractical asked 14/9, 2016 at 5:52

4

Solved

I can install GDAL in Google Colab by running the cell: %%shell sudo yum -y update sudo yum-config-manager --enable epel sudo yum -y install make automake gcc gcc-c++ libcurl-devel proj-devel geos-...
Cognition asked 8/12, 2021 at 13:10

6

Solved

I'm trying to get a django project up and running, which depends on GDAL library. I'm working on a M1 based mac. Following the instructions on official Django docs, I've installed the necessary pac...
Maybellemayberry asked 28/7, 2021 at 13:36

4

I am trying to setup Docker and geodjagno. Upon docker-compose up I have this following error: django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal", "GDAL", "...
Lacking asked 19/9, 2018 at 1:18

2

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 ...
Smutty asked 6/7, 2022 at 17:3

10

Solved

Please point out the point that I am missing: openSUSE 11.3 xx@linux-y3pi:~/Desktop/R> sudo R CMD INSTALL rgdal_0.7-12.tar.gz root's password: * installing to library ‘/usr/lib64/R/library’ * ...
Heathenism asked 27/8, 2012 at 11:51

3

Solved

i have a geotiff images that have 3bands. band1,2 is a actual image values and band3 is a instance angle value. band1,2 is float32 data type under code is that i try before. but it doesn't work...
Athome asked 7/5, 2018 at 4:54

2

Solved

Can someone help me to understanding what is the problem of rgdal ? I installed gdal 2 for centos 6 64 bits but i didn't succeed to install rgdal. I tried to figure out what is the issue but i di...
Loomis asked 23/3, 2018 at 20:50

1

I am trying to install the package in R on a Fedora platform. However, the following error message appears: configure: error: GDALAllRegister not found in libgdal. I don't know what to do with the ...
Swordbill asked 18/3, 2023 at 11:16

1

Solved

I create a fresh environment, install numpy, then install GDAL. GDAL imports successfully and I can open images using gdal.Open(, but I get the ImportError: cannot import name '_gdal_array' from 'o...
Lottielotto asked 7/2, 2023 at 10:46

9

Solved

I am trying to run a Python script test.py to test the gdal library. The script contains the line: from osgeo import gdal At that line I get the traceback: File "~/test.py", line 9, in <modu...
Senegal asked 16/5, 2017 at 15:31

2

Solved

I am looking to replace a number with NaN in numpy and am looking for a function like numpy.nan_to_num, except in reverse. The number is likely to change as different arrays are processed because e...
Northey asked 15/7, 2011 at 1:8

3

EDIT: PARTIAL SOLUTION Using gdal_translate in the command line seems to do the trick, even though the Python binding doesn't work. This worked to crop a GeoTiff removing 300 pixel padding from ...
Scandal asked 30/1, 2018 at 21:48

© 2022 - 2025 — McMap. All rights reserved.