pgPostGIS | R Documentation |
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, SFCGAL and Raster extensions.
pgPostGIS(
conn,
topology = FALSE,
tiger = FALSE,
sfcgal = FALSE,
raster = FALSE,
display = TRUE,
exec = TRUE
)
conn |
A connection object (required, even if |
topology |
Logical. Whether to check/install the Topology extension. |
tiger |
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. |
sfcgal |
Logical. Whether to check/install the SFCGAL extension. |
raster |
Logical. Whether to check/install the Raster extension |
display |
Logical. Whether to display the query (defaults to
|
exec |
Logical. Whether to execute the query (defaults to
|
If exec = TRUE
, returns (invisibly) TRUE
if PostGIS is installed.
Mathieu Basille mathieu@basille.org and Adrián Cidre González adrian.cidre@gmail.com
## 'exec = FALSE' does not install any extension, but nevertheless
## check for available and installed extensions:
## Not run:
pgPostGIS(con, topology = TRUE, tiger = TRUE, sfcgal = TRUE,
exec = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.