Skip to content

Google Colab GDAL update 3.0.4 -> 3.3.2 #126

@bhyeh

Description

@bhyeh

Context:
In most recent Google Colab update (2/17/23) gdal was updated from version 3.0.4 to 3.3.2
Issue:
Running build_vrt in create_map.ipynb does not result in vrts being built from .nc prediction files.

  1. build_vrt call to gdal_cmd terminates with exit code 1
  2. Manually calling gdalbuildvrt results in a warning that images are ungeoreferenced and is skipped.
    image

Temporary Fix:
Add following to a cell in create_map.ipynb to downgrade gdal back to 3.0.4 which makes build_vrt work prior to the GC update.

%%shell
yes | add-apt-repository ppa:ubuntugis/ppa
apt-get update
apt-get install python3-gdal=3.0.4+dfsg-1build3
apt-get install gdal-bin=3.0.4+dfsg-1build3
apt-get install libgdal-dev=3.0.4+dfsg-1build3
C_INCLUDE_PATH=/usr/include/gdal 
CPLUS_INCLUDE_PATH=/usr/include/gdal 
python -m pip install GDAL==3.0.4

Potential Solution:
Investigate changed behavior with gdalbuildvrt from version 3.0.4 and 3.3.2.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions