PROJ configuration
libproj_version()libproj_has_libtiff()
libproj_has_libcurl()
libproj_temp_dir()
with_libproj_configuration(config, expr)
libproj_configuration()
libproj_configure(
search_path = c(system.file("proj", package = "libproj"),
getOption("libproj.search_path", NULL)),
db_path = getOption("libproj.db_path", system.file("proj/proj.db", package =
"libproj")),
user_writable_dir = getOption("libproj.user_writable_dir", libproj_temp_dir()),
network_endpoint = getOption("libproj.network_endpoint", "https://cdn.proj.org"),
network_enabled = getOption("libproj.network_enabled", FALSE)
)
A named list()
with elements used to temporarily override elements of the
current libproj_configuration()
.
An expression to evaluate with the specified state
A character vector of paths where libproj will look for resource files (e.g., gridshift, database, init files). Defaults to the internal database and init files distributed with the PROJ source.
Independent of search_path
, a character vector of
SQLite databases that may contain updated or alternative
coordinate operations from the default proj.db included in this
package. You must specify at least one database as part of this configuration;
do not rely on search_path
to find this value for you.
A directory that can safely be written to
by this package. This contains a cache of grid shift files downloaded
from the PROJ CDN at network_endpoint
if using with_libproj_network()
.
A mirror of the PROJ CDN of gridshift files. By default, this is set to https://cdn.proj.org.
Whether or not to download gridshift files on the fly.
This defaults to FALSE
.
# NOT RUN {
libproj_version()
libproj_has_libtiff()
libproj_has_libcurl()
libproj_temp_dir()
libproj_configuration()
# }
Run the code above in your browser using DataLab