-
Notifications
You must be signed in to change notification settings - Fork 300
Description
I am using the st_read function in sf to read a KML file. As in #499, the result has the appropriate geometry but is missing all of its variables and instead has 'Name' and 'Description' fields.
Following advice in #499, I reinstalled GDAL (upgrading to 2.4.2).
From the terminal, I can verify that LIBKML is installed:
> ogrinfo --formats | grep KML
LIBKML -vector- (rw+v): Keyhole Markup Language (LIBKML)
KML -vector- (rw+v): Keyhole Markup Language (KML)
But sf does not seem to have access to LIBKML, only KML:
> st_drivers() %>% filter(name == 'KML' | name == 'LIBKML')
name long_name write copy is_raster is_vector vsi
1 KML Keyhole Markup Language (KML) TRUE FALSE FALSE TRUE TRUE
I have uninstalled and reinstalled both GDAL (using Homebrew) and sf (using devtools), even rebooting in between every step, and still LIBKML is not accessible to sf.
Here's what I'm running:
OS X 10.12.6
RStudio 1.0.153
R 3.5.3
GDAL 2.4.2
sf 0.7-7
If you have any advice, please, I would very much appreciate it. Thank you for your time and consideration. Please let me know if you need any additional information.