-
Notifications
You must be signed in to change notification settings - Fork 301
Closed
Description
Bug
I've seen that sf can have (geo)Parquet support. However, I'm not able to get this on Ubuntu 24.04 Linux x86_64 GNU/Linux.
When looking at the drivers within sf, there is no parquet.
library(sf)
# Linking to GEOS 3.12.2, GDAL 3.11.4, PROJ 9.4.1; sf_use_s2() is TRUE
library(dplyr)
st_drivers()|>filter(grepl(pattern = "^pa",x = name, ignore.case = TRUE))
[1] name long_name write copy is_raster is_vector vsi
<0 rows> (or 0-length row.names)
How then to install the package so that there is Parquet support?
Setup
echo $(lsb_release -a -s)
Ubuntu Ubuntu 24.04.4 LTS 24.04 noble
sudo apt -y update && sudo apt install -y libudunits2-dev libgdal-dev libgeos-dev libproj-dev libsqlite3-dev
and this :
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt update
sudo apt install libudunits2-dev libgdal-dev libgeos-dev libproj-dev libsqlite3-dev
gdalinfo --version
GDAL 3.11.4 "Eganville", released 2025/09/04
This is the beginning of the output of install.packages("sf", type = "source"). I also installed the arrow library in R.
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/sf_1.0-24.tar.gz'
Content type 'application/x-gzip' length 9876893 bytes (9.4 MB)
==================================================
downloaded 9.4 MB
* installing *source* package ‘sf’ ...
** this is package ‘sf’ version ‘1.0-24’
** package ‘sf’ successfully unpacked and MD5 sums checked
** using staged installation
Details
configure: CC: gcc -std=gnu2x
configure: CXX: g++ -std=gnu++17
checking for gdal-config... /usr/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 3.11.4
checking GDAL version >= 2.0.1... yes
checking for gcc... gcc -std=gnu2x
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc -std=gnu2x accepts -g... yes
checking for gcc -std=gnu2x option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for gdal.h... yes
checking GDAL: linking with --libs only... yes
checking GDAL: /usr/share/gdal/pcs.csv readable... no
checking GDAL: checking whether PROJ is available for linking:... yes
checking GDAL: checking whether PROJ is available for running:... yes
configure: GDAL: 3.11.4
configure: pkg-config proj exists, will use it
configure: using proj.h.
configure: PROJ: 9.4.1
checking PROJ: checking whether PROJ and sqlite3 are available for linking:... yes
checking for geos-config... /usr/bin/geos-config
checking geos-config usability... yes
configure: GEOS: 3.12.2
checking GEOS version >= 3.4.0... yes
checking for geos_c.h... yes
checking geos: linking with -L/usr/lib/x86_64-linux-gnu -lgeos_c... yes
configure: Package CPP flags: -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -DHAVE_PROJ_H -I/usr/include/gdal -I/usr/include
configure: Package LIBS: -lproj -L/usr/lib/x86_64-linux-gnu -lgdal -L/usr/lib/x86_64-linux-gnu -lgeos_c
configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C++ compiler: ‘g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0’
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -DHAVE_PROJ_H -I/usr/include/gdal -I/usr/include -I'/usr/local/lib/R/site-library/Rcpp/include' -
Here is a list of libraries installed on my machine
dpkg --list | grep -E 'units|gdal|geos|proj|sqlite'
ii gdal-bin 3.11.4+dfsg-1~noble0 amd64 Geospatial Data Abstraction Library - Utility programs
ii gdal-data 3.11.4+dfsg-1~noble0 all Geospatial Data Abstraction Library - Data files
ii gdal-plugins:amd64 3.11.4+dfsg-1~noble0 amd64 Geospatial Data Abstraction Library - Plugins
ii libgdal-dev 3.11.4+dfsg-1~noble0 amd64 Geospatial Data Abstraction Library - Development files
ii libgdal34t64:amd64 3.8.4+dfsg-3ubuntu3 amd64 Geospatial Data Abstraction Library
ii libgdal37:amd64 3.11.4+dfsg-1~noble0 amd64 Geospatial Data Abstraction Library
ii libgeos-c1t64:amd64 3.12.2-1~noble0 amd64 Geometry engine for Geographic Information Systems - C Library
ii libgeos-dev 3.12.2-1~noble0 amd64 Geometry engine for GIS - Development files
ii libgeos3.12.2:amd64 3.12.2-1~noble0 amd64 Geometry engine for Geographic Information Systems - C++ Library
ii libproj-dev:amd64 9.4.1-1~noble0 amd64 Cartographic projection library (development files)
ii libproj25:amd64 9.4.1-1~noble0 amd64 Cartographic projection library
ii libqt5sql5-sqlite:amd64 5.15.13+dfsg-1ubuntu1 amd64 Qt 5 SQLite 3 database driver
ii libsqlite3-0:amd64 3.45.1-1ubuntu2.5 amd64 SQLite 3 shared library
ii libsqlite3-dev:amd64 3.45.1-1ubuntu2.5 amd64 SQLite 3 development files
ii libsqlite3-mod-spatialite:amd64 5.1.0-3build1 amd64 Geospatial extension for SQLite - loadable module
ii libudunits2-0 2.2.28-7build1 amd64 Library for handling of units of physical quantities
ii libudunits2-data 2.2.28-7build1 all Data for handling of units of physical quantities
ii libudunits2-dev 2.2.28-7build1 amd64 Development files for the libunits physical units package
ii libwebrtc-audio-processing1:amd64 0.3.1-0ubuntu6 amd64 AudioProcessing module from the WebRTC project.
ii proj-bin 9.4.1-1~noble0 amd64 Cartographic projection library (tools)
ii proj-data 9.4.1-1~noble0 all Cartographic projection filter and library (datum package)
ls /usr/lib/x86_64-linux-gnu | grep libproj
libproj.so
libproj.so.25
libproj.so.25.9.4.1
apt-cache pkgnames libproj
libproj-dev
libprojectm2v5
libproj25
libprojectm-dev
Details
R version 4.5.2 (2025-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.4 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so; LAPACK version 3.12.0
locale:
[1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
[4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
[7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C
time zone: America/Toronto
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.5.2
And for sf :
sf::sf_extSoftVersion()
GEOS GDAL proj.4 GDAL_with_GEOS USE_PROJ_H
"3.12.2" "3.11.4" "9.4.1" "true" "true"
PROJ
"9.4.1"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels