I am trying to work in R with the NYC 3D building models, specifically http://maps.nyc.gov/download/3dmodel/DA_WISE_Multipatch.zip. This is the package I use:
> library(sf)
Linking to GEOS 3.9.1, GDAL 3.2.1, PROJ 7.2.1; sf_use_s2() is TRUE
The GDAL docs say this:
The OpenFileGDB driver provides read access to vector layers of File Geodatabases (.gdb directories) created by ArcGIS 9 and above. The dataset name must be the directory/folder name, and it must end with the .gdb extension.
It can also read directly zipped .gdb directories (with .gdb.zip extension), provided they contain a .gdb directory at their first level.
A specific .gdbtable file (including “system” tables) can also be opened directly.
So it seems to be straightforward but I have been unsuccessful loading it into R using the SF package. I've tried loading the zip file with the directory in it and also a gdbtable file within the directory.
> model <- sf::st_read("DA_Wise_multipatch.zip")
Error: Cannot open "DA_WISE_Multipatch.zip"; The source could be corrupt or not supported. See `st_drivers()` for a list of supported formats.
How do I import this?