Learn R Programming

libproj (version 7.1.0-1)

libproj_version: PROJ configuration

Description

PROJ configuration

Usage

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) )

Arguments

config

A named list() with elements used to temporarily override elements of the current libproj_configuration().

expr

An expression to evaluate with the specified state

search_path

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.

db_path

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.

user_writable_dir

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().

network_endpoint

A mirror of the PROJ CDN of gridshift files. By default, this is set to https://cdn.proj.org.

network_enabled

Whether or not to download gridshift files on the fly. This defaults to FALSE.

Examples

Run this code
# NOT RUN {
libproj_version()
libproj_has_libtiff()
libproj_has_libcurl()
libproj_temp_dir()
libproj_configuration()


# }

Run the code above in your browser using DataLab