Skip to content

Commit

Permalink
#9 fix WCSGetCoverage
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Mar 4, 2022
1 parent 7a635bb commit e65c067
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/WCSGetCoverage.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ WCSGetCoverage <- R6Class("WCSGetCoverage",
if(tolower(subset)=="time") value <- time
if(tolower(subset)=="elevation") value <- elevation
if(is.null(value)) value <- envelope$upperCorner[,i]
if(is(value, "character")){
subsetKvp <- sprintf("%s(\"%s\",\"%s\")",subset, value, value)
}else{
if(is(value, "numeric")){
subsetKvp <- sprintf("%s(%s,%s)",subset, value, value)
}else{
subsetKvp <- sprintf("%s(\"%s\",\"%s\")",subset, value, value)
}
}
URLencode(subsetKvp)
Expand Down

0 comments on commit e65c067

Please sign in to comment.