Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDF Support for gdal2 #478

Closed
DevinRouth opened this issue Sep 26, 2018 · 7 comments
Closed

HDF Support for gdal2 #478

DevinRouth opened this issue Sep 26, 2018 · 7 comments

Comments

@DevinRouth
Copy link

DevinRouth commented Sep 26, 2018

Hello everyone,

Firstly, thanks for offering homebrew support for gdal!

To my question: I recently have been trying to help a colleague process some HDF (HD4 in particular) files, and I'm unable to install a version of gdal that includes the HDF drivers.

I tried a "brew uninstall --force gdal2" to start fresh, then a "brew install gdal2". This resulted in a successful "gdalinfo --version" call that returns "GDAL 2.3.1, released 2018/06/22". However, when I try to run "gdalinfo test.hdf", I still see "ERROR 4: `test.hdf' not recognized as a supported file format.".

My machine runs MacOS 10.13.5.

What would folks recommend?

Thanks!

Cheers,
Devin

@DevinRouth
Copy link
Author

Hi HomeBrew GDAL Devs,

I wanted to followup quickly on this issue. Is there a chance at a quick fix for this, or should I temporarily try to sidestep using HomeBrew for GDAL (i.e., using a packaged version of GDAL instead)?

Thanks!

Cheers,
Devin

@Aegman
Copy link

Aegman commented Oct 2, 2018

Hi,
I'm no Homebrew expert, but I've got HDF/NetCDF working in GDAL Homebrew using the following command:
brew install gdal2 --with-complete

@DevinRouth
Copy link
Author

Hi Aegman,

It seems the "--with-complete" flag was what I needed. Thanks for the suggestion!

Cheers,
Devin

@ivanhigueram
Copy link

With the new version of Homebrew, is not possible to use options like --with-complete when installing libraries anymore. There is an option to link the hdf4 with the gdal installation? I think osgeo4 makes something similar.

@mpmarcaida
Copy link

I have a sticky situation in installing gdal with hdf4 in Mojave. I tried the command:

brew install gdal2 --with-complete

but get I this error:

invalid option: --with-complete

Anyone found a workaround for this? Thanks!

@fjperini
Copy link
Collaborator

@mpmarcaida It is not an error, that option is already by default.

use: brew install osgeo-gdal.

@MichaelChaoLi-cpu
Copy link

brew install osgeo-gdal
@fjperini
I use this command, but I get the warning as follows:

Warning: No available formula with the name "osgeo-gdal".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants