Performs a runtime configuration of PROJ, which can be used in place of a build-time linked version of PROJ or to add in support if PROJ was not linked at build time.

sd_configure_proj(
  preset = NULL,
  shared_library = NULL,
  database_path = NULL,
  search_path = NULL
)

Arguments

preset

One of:

  • "homebrew": Look for PROJ installed by Homebrew. This is the easiest option on MacOS.

  • "system": Look for PROJ in the platform library load path (e.g., after installing system proj on Linux).

  • "auto": Try all presets in the order listed above, issuing a warning if none can be configured.

shared_library

An absolute or relative path to a shared library valid for the platform.

database_path

A path to proj.db

search_path

A path to the data files required by PROJ for some transforms.

Value

NULL, invisibly

Examples

sd_configure_proj("auto")