Skip to content

Commit

Permalink
Fix for gpkg_spatial_ref_sys()
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Mar 3, 2024
1 parent 7ae9d38 commit be82dc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/gpkg-srs.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ gpkg_create_spatial_ref_sys <- function(x, default = TRUE, query_string = FALSE)
definition TEXT NOT NULL,
description TEXT
);"
gsrs <- data.frame(srs_id = integer(0L))
} else {
q <- character()
gsrs <- gpkg_spatial_ref_sys(x)
}
gsrs <- gpkg_spatial_ref_sys(x)
if (isTRUE(default) || is.character(default)) {
if (is.logical(default) || length(default) == 0) {
default <- c("cartesian", "geographic", "EPSG:4326")
Expand Down

0 comments on commit be82dc8

Please sign in to comment.