Skip to content

Commit

Permalink
#9 fix compatibility Lon/long in axis labels
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Feb 25, 2022
1 parent 4834fcf commit d0b16c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/WCSCoverageSummary.R
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ WCSCoverageSummary <- R6Class("WCSCoverageSummary",
refEnvelope <- self$getDescription()$boundedBy
axisLabels <- unlist(strsplit(refEnvelope$attrs$axisLabels, " "))
axisLatIdx <- which(axisLabels == "Lat")
axisLonIdx <- which(axisLabels == "Lon")
axisLonIdx <- which(axisLabels %in% c("Lon", "Long"))
if(axisLatIdx < axisLonIdx) bbox <- rbind(bbox[2,],bbox[1,])
envelope <- GMLEnvelope$new(bbox = bbox)
if(as.numeric(refEnvelope$attrs$srsDimension)>2){
Expand Down

0 comments on commit d0b16c3

Please sign in to comment.