
The function checks for the availability of the PostGIS extension, and if it is available, but not installed, install it. Additionally, can also install Topology, Tiger Geocoder and SFCGAL extensions.
pgPostGIS(
conn,
topology = FALSE,
tiger = FALSE,
sfcgal = FALSE,
display = TRUE,
exec = TRUE
)
TRUE
if PostGIS is installed.
A connection object (required, even if exec =
FALSE
).
Logical. Whether to check/install the Topology extension.
Logical. Whether to check/install the Tiger Geocoder extension. Will also install extensions "fuzzystrmatch", "address_standardizer", and "address_standardizer_data_us" if all are available.
Logical. Whether to check/install the SFCGAL extension.
Logical. Whether to display the query (defaults to
TRUE
).
Logical. Whether to execute the query (defaults to
TRUE
).
Mathieu Basille basille@ufl.edu
## 'exec = FALSE' does not install any extension, but nevertheless
## check for available and installed extensions:
if (FALSE) {
pgPostGIS(con, topology = TRUE, tiger = TRUE, sfcgal = TRUE,
exec = FALSE)
}
Run the code above in your browser using DataLab