[R-sig-Geo] Pre-GDAL 2: rgdal changes

Roger Bivand Roger.Bivand at nhh.no
Tue Jun 2 18:37:11 CEST 2015


Please do not use trunk, I never have, and it reflects a frozen state from 
years ago. The live code is in pkg/, current package version 1.0-2. It 
passes check, and packages depending on, importing, or suggesting rgdal 
also pass check if their suggested packages are ignored with this version 
of rgdal and both GDAL 1.11.2 and 2.0.0.beta2.

Hope this helps,

Roger

On Tue, 2 Jun 2015, Michael Sumner wrote:

> Magic! This is really good news, thanks so much.
>
> But, I get this:
>
> sudo R CMD INSTALL rgdal_0.6-28.tar.gz
> * installing to library ‘/usr/local/lib/R/site-library’
> * installing *source* package ‘rgdal’ ...
> gdal-config: gdal-config
> GDAL version 2.0.0 found ...
> For building this version, at least GDAL version 1.3.1 is required.
> ERROR: configuration failed for package ‘rgdal’
> * removing ‘/usr/local/lib/R/site-library/rgdal’
>
> gdal-config --prefix
> /usr/local
> gdal-config --libs
> -L/usr/local/lib -lgdal
> gdal-config --dep-libs
> -L/usr/lib -lnetcdf -lmfhdf -ldf -ljpeg -lz -lpthread -lm -lrt -ldl
> gdal-config --cflags
> -I/usr/local/include
> gdal-config --datadir
> /usr/local/share/gdal
> gdal-config --version
> 2.0.0
> gdal-config --ogr-enabled
> yes
>
> Build notes below
>
>
> Cheers, Mike.
>
> git clone https://github.com/OSGeo/gdal.git
>
> cd gdal
> ./configure
> make
> make install
> export LD_LIBRARY_PATH=/usr/local/lib
>
> cd ~
> svn checkout svn://scm.r-forge.r-project.org/svnroot/rgdal/trunk
> svn export trunk rgdal
> R CMD build rgdal
> R CMD INSTALL rgdal_0.6-28.tar.gz
>
> Rscript -e "library(sp); print(sessionInfo())"
>
> R version 3.2.0 (2015-04-16)
> Platform: x86_64-pc-linux-gnu (64-bit)
> Running under: Ubuntu 14.04.2 LTS
>
> locale:
> [1] LC_CTYPE=en_AU.UTF-8       LC_NUMERIC=C
> [3] LC_TIME=en_AU.UTF-8        LC_COLLATE=en_AU.UTF-8
> [5] LC_MONETARY=en_AU.UTF-8    LC_MESSAGES=en_AU.UTF-8
> [7] LC_PAPER=en_AU.UTF-8       LC_NAME=C
> [9] LC_ADDRESS=C               LC_TELEPHONE=C
> [11] LC_MEASUREMENT=en_AU.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  base
>
> other attached packages:
> [1] sp_1.1-0
>
> loaded via a namespace (and not attached):
> [1] grid_3.2.0      methods_3.2.0   lattice_0.20-31
>
>
>
> On Mon, 1 Jun 2015 at 04:00 Roger Bivand <Roger.Bivand at nhh.no> wrote:
>
>> The second beta of GDAL 2 is now available, and as of revision 535 on
>> R-Forge, the legacy rgdal package passes R CMD check with either GDAL
>> 1.11.2 (or earlier) or GDAL 2.0.0 beta 2.
>>
>> One or two issues are known (Integer64 in vector fields and FIDs not
>> supported in R; gdalDrivers() reports both raster and vector drivers; the
>> MapInfo File TAB driver doesn't work for writing, ...), but others remain
>> to be discovered.
>>
>> For those who need rgdal in production, and can install the 2.0.0 beta, it
>> would be a really good use of time to identify issues now, rather than
>> when GDAL 2 starts to become the standard, stable release. Anyone else
>> needing an itch to scratch is also, of course, welcome to contribute.
>>
>> The rgdal package will continue to condition on GDAL 1 or 2, so hopefully
>> those users who do not need to move to GDAL 2 will not be affected.
>> However, it is worth noting that GDAL is maintained by very, very, few
>> volunteers (even plural is questionable here), and when they feel that
>> backporting fixed from GDAL 2 to GDAL 1 is taking time from more important
>> things, you will be stranded with EOL software.
>>
>> So please consider taking the time to contribute to the idenfication of
>> issues in the development version of rgdal built against GDAL 2 and/or 1,
>> available for anonymous SVN checkout at:
>>
>> svn checkout svn://scm.r-forge.r-project.org/svnroot/rgdal/trunk
>>
>> Enjoy!
>>
>> Roger
>>
>> --
>> Roger Bivand
>> Department of Economics, Norwegian School of Economics,
>> Helleveien 30, N-5045 Bergen, Norway.
>> voice: +47 55 95 93 55; fax +47 55 95 91 00
>> e-mail: Roger.Bivand at nhh.no
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>

-- 
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 91 00
e-mail: Roger.Bivand at nhh.no


More information about the R-sig-Geo mailing list