gpkg_validate {gpkg} | R Documentation |
Validate a GeoPackage
Description
Checks for presence of required tables, valid values and other constraints.
Usage
gpkg_validate(x, diagnostics = FALSE)
Arguments
x |
A geopackage object, or character path to GeoPackage |
diagnostics |
Return a list containing individual diagnostic test results (see Details) |
Details
Several tests are run on the input GeoPackage, including:
-
required_tables
: logical.TRUE
ifgpkg_contents
andgpkg_spatial_ref_sys
tables exist -
has_contents
: logical.TRUE
if the number of rows ingpkg_contents
table is greater than0
and all tables listed ingpkg_contents
are in the database -
has_spatial_tables
: logical.TRUE
if the number of tables ingpkg_contents
withdata_type
"features"
or"2d-gridded-coverage"
is greater than0
Value
logical. TRUE
if valid. FALSE
if one or more problems are found. For full diagnostics run with diagnostics = TRUE
to return a list containing results for each test run on the input GeoPackage.