Skip to content

Commit

Permalink
Merge pull request #127 from nasaharvest/gdal_workaround
Browse files Browse the repository at this point in the history
Gdal workaround for build VRT and translate
  • Loading branch information
ivanzvonkov authored Mar 17, 2023
2 parents 3a940cf + b302816 commit 772f187
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion openmapflow/notebooks/create_map.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@
"%env USE_AUTH_EPHEM=0"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Downgrade gdal \n",
"%%shell\n",
"yes | add-apt-repository ppa:ubuntugis/ppa\n",
"apt-get update\n",
"apt-get install python3-gdal=3.0.4+dfsg-1build3\n",
"apt-get install gdal-bin=3.0.4+dfsg-1build3\n",
"apt-get install libgdal-dev=3.0.4+dfsg-1build3\n",
"C_INCLUDE_PATH=/usr/include/gdal \n",
"CPLUS_INCLUDE_PATH=/usr/include/gdal \n",
"python -m pip install GDAL==3.0.4"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -83,7 +101,8 @@
" get_available_models\n",
")\n",
"warnings.simplefilter(action='ignore', category=FutureWarning)\n",
"print(PROJECT)"
"print(PROJECT)\n",
"os.environ[\"GCLOUD_PROJECT\"] = GCLOUD_PROJECT_ID"
]
},
{
Expand Down Expand Up @@ -313,6 +332,21 @@
"build_vrt(prefix)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Upgrade gdal to 3.3.2\n",
"%%shell\n",
"apt-get install gdal-bin\n",
"apt-get install libgdal-dev\n",
"C_INCLUDE_PATH=/usr/include/gdal \n",
"CPLUS_INCLUDE_PATH=/usr/include/gdal \n",
"python -m pip install GDAL==3.3.2"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 772f187

Please sign in to comment.