[GIS] How to enable PDF support in gdal

gdalgeopdf

I've installed GDAL2.3dev on my mac using Homebrew, expecting it to support GeoPDFs already. But when I run gdalinfo on a pdf file from USGS, I still get this error:

ERROR 4: `WA_Sunrise_244132_1971_24000_geo.pdf' not recognized as a supported file format.

What do I need to do add PDF support to GDAL?

Best Answer

It seems that osgeo4mac has shifted to a new strategy for PDF support. You now need to install gdal2-pdf:

$ brew install gdal2-pdf

and then, as brew tells you to, link to the plugins:

$ export GDAL_DRIVER_PATH=/usr/local/lib/gdalplugins

Peter

Related Question