Skip to content

Commit

Permalink
eblondel#43 consolidate
Browse files Browse the repository at this point in the history
  • Loading branch information
abennici committed Jul 9, 2021
1 parent 556328e commit 65f4c26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/WMSLayer.R
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ WMSLayer <- R6Class("WMSLayer",
write(obj, destfile)
# }else if(destext == "xml"){
# write(obj, destfile)
# }
}

ftFeatures <- NULL
if(destext == "xml"){
Expand All @@ -320,9 +320,9 @@ WMSLayer <- R6Class("WMSLayer",
ftFeatures<-data.frame(variables)
}else{
#THREDDS STRUCTURE
ftFeatures<-data.frame(xml_list,stringsAsFactors=FALSE)
names(ftFeatures)<-gsub("^.*\\.","",names(ftFeatures))
ftFeatures<-sf::st_as_sf(ftFeatures,coords= c("longitude","latitude"))
ftFeatures<-data.frame(xml_list,stringsAsFactors=FALSE)
names(ftFeatures)<-gsub("^.*\\.","",names(ftFeatures))
ftFeatures<-sf::st_as_sf(ftFeatures,coords= c("longitude","latitude"))
}
}else{
ftFeatures <- sf::st_read(destfile, quiet = TRUE)
Expand Down

0 comments on commit 65f4c26

Please sign in to comment.