geotrellis / geotrellis-gdal

Scala wrapper around GDAL java bindings using GeoTrellis
Other
12 stars 12 forks source link

Provide MacOS `brew` instructions for building compatible GDAL. #61

Open metasim opened 5 years ago

metasim commented 5 years ago

Linux would be fine too, but MacOS is current need.

pomadchin commented 5 years ago

https://github.com/OSGeo/homebrew-osgeo4mac/blob/master/Formula/osgeo-gdal.rb

I think just with all is good. I used smth like:

brew install osgeo/osgeo4mac/gdal2 --with-java --with-libkml --with-mdb --with-mysql --with-opencl --with-postgresql

But they changed everything like 18hrs ago.

metasim commented 5 years ago

Yeh, they might have broken it:

Error: invalid option: --with-java
metasim commented 5 years ago

This:

brew install osgeo/osgeo4mac/osgeo-gdal

(no options!)

Installs something that looks correct:

$  /usr/local/opt/osgeo-gdal/bin/gdalinfo --formats | grep JP
  JPEG -raster- (rwv): JPEG JFIF
  JP2OpenJPEG -raster,vector- (rwv): JPEG-2000 driver based on OpenJPEG library
  JPEG2000 -raster,vector- (rwv): JPEG-2000 part 1 (ISO/IEC 15444-1), based on Jasper library
metasim commented 5 years ago

@pomadchin Do you want a PR that adds this to the README?

pomadchin commented 5 years ago

@metasim yes, please! it will be very helpful