Skip to content

Commit

Permalink
Update DBgetXY.R
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrescino committed Aug 23, 2023
1 parent aa70740 commit 75f1329
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions R/DBgetXY.R
Original file line number Diff line number Diff line change
Expand Up @@ -807,17 +807,7 @@ DBgetXY <- function (states = NULL,
}
}
} else {

## Check for indices
if (evalCur || measCur) {
chk <- chkidx(dbconn, xynm, c("STATECD", "UNITCD", "COUNTYCD", "PLOT"))
if (is.null(chk)) {
message("to speed query... add an index to the plot table")
message("createidx(dbconn, '", xynm,
"', c('STATECD', 'UNITCD', 'COUNTYCD', 'PLOT'))")
}
}


plotnm <- NULL
if (measCur) {
xyvarsA <- paste0("p.", unique(xyvars))
Expand Down

0 comments on commit 75f1329

Please sign in to comment.