-
Notifications
You must be signed in to change notification settings - Fork 300
Description
Hi
I am reading a kml file with st_read
, and have the issue that it only reads the geometry field, as well as two empty fields Name and Description, but not the rest. Interestingly, this only happens on one machine that uses the driver KML (st_read gives 2 fields), but not on another machine that uses LIBKML (st_read gives 24 fields).
Should I actually put specify options when using KML instead of LIBKML? Or try to have the LIBKML driver on the machine, hoping that would temporarily solve the issue?
Thanks!
library(sf)
nc = st_read(system.file("shape/nc.shp", package="sf"), quiet=TRUE)
st_write(nc, "test.kml")
st_read("test.kml")
Output on machine that has only driver KML:
Reading layer
test' from data source
/home/stigler/GIS/test.kml' using driver `KML'
Simple feature collection with 100 features and 2 fields
Output on the other machine using driver LIBKML
Reading layer
test' from data source
/home/matifou/test.kml' using driver `LIBKML'
Simple feature collection with 100 features and 24 fields