GDAL

GDAL installation

Install GDAL on Windows

download wheels from

https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal


# download GDAL and FIONA from 
# https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal

python -m pip install --upgrade pip

pip install GDAL-3.4.1-cp38-cp38-win_amd64.whl
pip install Fiona-1.8.20-cp38-cp38-win_amd64.whl
pip install geopandas
pip install geos
pip install proj
pip install matplotlib

Install via conda

conda install -c conda-forge gdal

Links

https://medium.com/@chrieke/howto-install-python-for-geospatial-applications-1dbc82433c05

https://geoffboeing.com/2014/09/using-geopandas-windows/

https://geopandas.org/install.html


install GDAL on macOS

https://medium.com/@vascofernandes_13322/how-to-install-gdal-on-macos-6a76fb5e24a4


#macosx
brew install gdal
ogr2ogr --version

brew install gdal

#install gdal macosx
pip install gdal==2.4.2
 
#brew install gets
#brew install matplotlib
brew install numpy
brew install geos
pip3 install https://github.com/matplotlib/basemap/archive/master.zip
brew install proj


#rtree used in geopandas
brew install spatialindex

gdal python bindings

download http://www.kyngchaos.com/software:frameworks

https://stackoverflow.com/questions/38630474/error-while-installing-gdal

gdal-config --version

#mdkir /gdal 
#pip download GDAL==2.3

#tar xzf GDAL-2.3.0.tar.gz
#cd GDAL-2.3.0

#gdal-config --cflags

pip install GDAL==$(gdal-config --version | awk -F'[.]' '{print $1"."$2}')

#python setup.py build_ext --include-dirs=/usr/local/Cellar/gdal/2.3.0/include
#python setup.py install

compile

https://gis.stackexchange.com/questions/263495/how-to-install-gdal-on-centos-7-4

http://wiki.wildsong.biz/index.php/Building_GDAL_on_Linux


yum install openjpeg libjpeg-devel


#download GDAL
wget http://download.osgeo.org/gdal/2.3.0/gdal-2.3.0.tar.gz

#Untar
tar xzf gdal-2.3.0.tar.gz
cd gdal-2.3.0

#Compile from source
./configure --with-libkml --with-python --prefix=/usr/local/gdal --with-openjpeg
make
make install
ldconfig

export LD_LIBRARY_PATH="/usr/local/gdal/lib:$LD_LIBRARY_PATH"
#export PATH="/usr/local/gdal/bin:$PATH"
#export PYTHONPATH="/usr/local/gdal/lib/python2.7/site-packages/:$PYTHONPATH"

Tools

GDAL for windows

https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal

https://www.rpmfind.net/linux/rpm2html/search.php?query=gdal

GDAL binaries

https://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries

GDAL sources

http://download.osgeo.org/gdal/2.3.0/

Geo tools

https://github.com/giswqs/python-geospatial

GDAL docker

https://github.com/geo-data/gdal-docker

CMake

https://cmake.org/download/