Skip to content

Instantly share code, notes, and snippets.

@vincentsarago
Created January 18, 2019 21:49
Show Gist options
  • Save vincentsarago/6d7cc78627fe64d9de9a7fb468b2d40f to your computer and use it in GitHub Desktop.
Save vincentsarago/6d7cc78627fe64d9de9a7fb468b2d40f to your computer and use it in GitHub Desktop.

Install CURL with HTTP/2 support

$ brew install nghttp2
$ brew uninstall curl --force --ignore-dependencies

# Due to recent change to curl formula we need to use an old version 
# more https://github.com/Homebrew/homebrew-core/issues/31510
#
$ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/ec361bc7710ffffa46ad7aceb76bfad8513a7399/Formula/curl.rb … --with-nghttp2 --HEAD
$ brew tap osgeo/osgeo4mac && brew install gdal2 --with-complete

Install rio-glui and test

$ pip install rio-glui --no-binary rasterio
$ GDAL_HTTP_VERSION=2 \
  GDAL_HTTP_MERGE_CONSECUTIVE_RANGES=YES \
  GDAL_HTTP_MULTIPLEX=YES \
  rio glui https://oin-hotosm.s3.amazonaws.com/59c66c5223c8440011d7b1e4/0/7ad397c0-bba2-4f98-a08a-931ec3a6e943.tif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment