You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this error and produced the smallest reproducible example that I could. I also have a fix that works for this case, but I am unsure if it would break other examples:
Reproducible Example
require(plotKML)
require(sf)
require(magrittr)
x<- c(sf::st_linestring(matrix(1:6,3)), sf::st_linestring(matrix(11:16,3))) %>%
sf::st_sfc() %>%
sf::st_set_crs(4326)
y<-sf::st_cast(x, "LINESTRING")
plotKML::kml_open("kmltest.kml")
plotKML::kml_layer(y)
# Error:# Error in `[.default`(obj, i.line, ) : incorrect number of dimensionsplotKML::kml_close("kmltest.kml")
Potential Fix
The fixed line is highlighted with a comment below
I ran into this error and produced the smallest reproducible example that I could. I also have a fix that works for this case, but I am unsure if it would break other examples:
Reproducible Example
Potential Fix
The fixed line is highlighted with a comment below
Show that the fix works
The text was updated successfully, but these errors were encountered: