Skip to content

rgdal: About the new gdal3 and proj >=6 condition

5 messages · Robin Lovelace, Abdoulaye Sarr, Roger Bivand

#
Brian Ripley (thanks!) provided a patch for rgdal's configure.ac, and the 
R-forge build and check processes now succeed, so please try to install 
either downloading 
http://download.r-forge.r-project.org/src/contrib/rgdal_1.5-9.tar.gz and 
installing from the command line (after running R CMD check), or 
install.packages("rgdal", repos="http://R-Forge.R-project.org").

Remember that if GDAL is < 3, and PROJ >= 6, you need the configure 
argument: --configure-args=--with-proj_api=proj_api.h.

Roger
On Sun, 31 May 2020, Roger Bivand wrote:

            

  
    
#
Confirmed: this worked perfectly for me.

Video evidence that this is fixed:
https://asciinema.org/a/zPQFbI6Q01oqUy1HRauCjLUXY

Thanks Roger!

Robin
On Tue, Jun 2, 2020 at 4:00 PM Roger Bivand <Roger.Bivand at nhh.no> wrote:

            

  
  
#
Have a problem with needed gdal version on mac
On Tue, Jun 2, 2020 at 4:04 PM Robin Lovelace <rob00x at gmail.com> wrote:

            

  
  
#
On Wed, 3 Jun 2020, Abdoulaye Sarr wrote:

            
Please be much more specific. CRAN has macOS binaries of rgdal 1.5-8. Are 
you trying to install all the external software dependencies then rgdal 
from source? If this is difficult, rely on the CRAN macOS binaries, even 
though the PROJ and GDAL versions do not yet support WKT2 CRS 
representation. If you have installed PROJ and GDAL successfully, and PROJ 
< 6 && GDAL < 3, or PROJ >= 6 && GDAL >= 3, you should be OK. If you have 
the pointless PROJ >= 6 && GDAL < 3, you need the 1.5-9 tarball from 
R-forge, download locally and run R CMD INSTALL 
--configure-args="--with-proj_api=proj_api.h" rgdal_1.5-9.tar.gz.

Please report back on specifics, or simply use CRAN binaries and report 
that.

We are actively looking for ways to prevent macOS users getting trapped 
into trying to install from source when such a choice is not appropriate. 
We have no control over the provenance of the installed software as we 
have for Windows, thanks to Jeroen's rwinlib/gdal3 collection.

Roger

  
    
#
I was trying from source, but now installed the binary.

Thank you
On Wed, Jun 3, 2020 at 3:30 PM Roger Bivand <Roger.Bivand at nhh.no> wrote: