diff --git a/404.html b/404.html index 6e65c2f..791b293 100644 --- a/404.html +++ b/404.html @@ -6,7 +6,7 @@ Page not found (404) • gpkg - + @@ -18,7 +18,7 @@ - +
@@ -44,7 +44,7 @@
- +
@@ -100,16 +100,16 @@

Page not found (404)

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/LICENSE.html b/LICENSE.html index 82dc75f..4d74c4b 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -1,9 +1,9 @@ -CC0 1.0 Universal • gpkgCC0 1.0 Universal • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -106,15 +106,15 @@

Statement of Purpose -

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/articles/index.html b/articles/index.html index 7cb7598..28bddc2 100644 --- a/articles/index.html +++ b/articles/index.html @@ -1,9 +1,9 @@ -Articles • gpkgArticles • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -72,15 +72,15 @@

All vignettes

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/articles/intro.html b/articles/intro.html index f20a7a0..51a22c5 100644 --- a/articles/intro.html +++ b/articles/intro.html @@ -6,20 +6,19 @@ Introduction to gpkg • gpkg - + - - +
@@ -45,7 +44,7 @@
- +
@@ -81,7 +80,7 @@

Introduction to gpkg

- Source: vignettes/intro.Rmd + Source: vignettes/intro.Rmd
@@ -116,7 +115,7 @@

Create a Geopackage
 library(gpkg)
 library(terra)
-#> terra 1.7.71
+#> terra 1.7.83
 
 dem <- system.file("extdata", "dem.tif", package = "gpkg")
 stopifnot(nchar(dem) > 0)
@@ -186,7 +185,7 @@ 

Read a GeoPackage#> sqlite_sequence #> -------------------------------------------------------------------------------- #> <SQLiteConnection> -#> Path: /tmp/RtmpSBWocw/file1ce810017c51.gpkg +#> Path: /tmp/RtmpMUZJbE/file1cbe1b1d1300.gpkg #> Extensions: TRUE class(g) #> [1] "geopackage"

@@ -207,12 +206,12 @@

Read a GeoPackage#> sqlite_sequence #> -------------------------------------------------------------------------------- #> <SQLiteConnection> -#> Path: /tmp/RtmpSBWocw/Rgpkg1ce86fd64947.gpkg +#> Path: /tmp/RtmpMUZJbE/Rgpkg1cbe29b59f5d.gpkg #> Extensions: TRUE class(g2) #> [1] "geopackage"

Note that a temporary GeoPackage -(/tmp/RtmpSBWocw/Rgpkg1ce86fd64947.gpkg) is automatically created when +(/tmp/RtmpMUZJbE/Rgpkg1cbe29b59f5d.gpkg) is automatically created when using the geopackage(<list>) constructor.

You also may have a DBIConnection to a GeoPackage database already opened that you want to use. In any case (character, @@ -252,8 +251,8 @@

Inspect Contents of GeoPackage#> resolution : 0.008333333, 0.008333333 (x, y) #> extent : 6.008333, 6.266667, 49.69167, 49.94167 (xmin, xmax, ymin, ymax) #> coord. ref. : lon/lat WGS 84 (EPSG:4326) -#> source : file1ce810017c51.gpkg:DEM1 -#> varname : file1ce810017c51 +#> source : file1cbe1b1d1300.gpkg:DEM1 +#> varname : file1cbe1b1d1300 #> name : DEM1 #> #> $DEM2 @@ -262,15 +261,15 @@

Inspect Contents of GeoPackage#> resolution : 0.008333333, 0.008333333 (x, y) #> extent : 6.008333, 6.266667, 49.69167, 49.94167 (xmin, xmax, ymin, ymax) #> coord. ref. : lon/lat WGS 84 (EPSG:4326) -#> source : file1ce810017c51.gpkg:DEM2 -#> varname : file1ce810017c51 +#> source : file1cbe1b1d1300.gpkg:DEM2 +#> varname : file1cbe1b1d1300 #> name : DEM2 #> min value : 195 #> max value : 500 #> #> $myattr -#> # Source: table<myattr> [10 x 2] -#> # Database: sqlite 3.45.0 [/tmp/RtmpSBWocw/file1ce810017c51.gpkg] +#> # Source: table<`myattr`> [10 x 2] +#> # Database: sqlite 3.47.0 [/tmp/RtmpMUZJbE/file1cbe1b1d1300.gpkg] #> a b #> <int> <chr> #> 1 1 A @@ -289,8 +288,7 @@

Inspect Contents of GeoPackage#> geometry : polygons #> dimensions : 1, 0 (geometries, attributes) #> extent : 6.008333, 6.266667, 49.69167, 49.94167 (xmin, xmax, ymin, ymax) -#> source : file1ce810017c51.gpkg (bbox) -#> layer : bbox +#> source : file1cbe1b1d1300.gpkg (bbox) #> coord. ref. : lon/lat WGS 84 (EPSG:4326) # inspect a specific table @@ -326,14 +324,14 @@

Inspect Contents of GeoPackage
 gpkg_tbl(g, "gpkg_contents")
-#> # Source:   table<gpkg_contents> [4 x 10]
-#> # Database: sqlite 3.45.0 [/tmp/RtmpSBWocw/file1ce810017c51.gpkg]
+#> # Source:   table<`gpkg_contents`> [4 x 10]
+#> # Database: sqlite 3.47.0 [/tmp/RtmpMUZJbE/file1cbe1b1d1300.gpkg]
 #>   table_name data_type   identifier description last_change   min_x min_y  max_x
 #>   <chr>      <chr>       <chr>      <chr>       <chr>         <dbl> <dbl>  <dbl>
-#> 1 DEM1       2d-gridded… DEM1       ""          2024-03-03…    6.01  49.7   6.27
-#> 2 DEM2       2d-gridded… DEM2       ""          2024-03-03…    6.01  49.7   6.27
-#> 3 bbox       features    bbox       ""          2024-03-03…    6.01  49.7   6.27
-#> 4 myattr     attributes  myattr     ""          2024-03-03… -180    -90   180   
+#> 1 DEM1       2d-gridded… DEM1       ""          2024-11-30…    6.01  49.7   6.27
+#> 2 DEM2       2d-gridded… DEM2       ""          2024-11-30…    6.01  49.7   6.27
+#> 3 bbox       features    bbox       ""          2024-11-30…    6.01  49.7   6.27
+#> 4 myattr     attributes  myattr     ""          2024-11-30… -180    -90   180   
 #> # ℹ 2 more variables: max_y <dbl>, srs_id <int>

More on how to use this type of result next.

@@ -354,12 +352,12 @@

Method 1: gpkg_table_pragma()
 head(gpkg_table_pragma(g))
 #>                                     dsn table_name nrow table_info.cid
-#> 1 /tmp/RtmpSBWocw/file1ce810017c51.gpkg       DEM1    1              0
-#> 2 /tmp/RtmpSBWocw/file1ce810017c51.gpkg       DEM1    1              1
-#> 3 /tmp/RtmpSBWocw/file1ce810017c51.gpkg       DEM1    1              2
-#> 4 /tmp/RtmpSBWocw/file1ce810017c51.gpkg       DEM1    1              3
-#> 5 /tmp/RtmpSBWocw/file1ce810017c51.gpkg       DEM1    1              4
-#> 6 /tmp/RtmpSBWocw/file1ce810017c51.gpkg       DEM2    1              0
+#> 1 /tmp/RtmpMUZJbE/file1cbe1b1d1300.gpkg       DEM1    1              0
+#> 2 /tmp/RtmpMUZJbE/file1cbe1b1d1300.gpkg       DEM1    1              1
+#> 3 /tmp/RtmpMUZJbE/file1cbe1b1d1300.gpkg       DEM1    1              2
+#> 4 /tmp/RtmpMUZJbE/file1cbe1b1d1300.gpkg       DEM1    1              3
+#> 5 /tmp/RtmpMUZJbE/file1cbe1b1d1300.gpkg       DEM1    1              4
+#> 6 /tmp/RtmpMUZJbE/file1cbe1b1d1300.gpkg       DEM2    1              0
 #>   table_info.name table_info.type table_info.notnull table_info.dflt_value
 #> 1              id         INTEGER                  0                  <NA>
 #> 2      zoom_level         INTEGER                  1                  <NA>
@@ -389,7 +387,7 @@ 

Method 2: gpkg_vect() an #> geometry : polygons #> dimensions : 1, 0 (geometries, attributes) #> extent : 6.008333, 6.266667, 49.69167, 49.94167 (xmin, xmax, ymin, ymax) -#> source : file1ce810017c51.gpkg (bbox) +#> source : file1cbe1b1d1300.gpkg (bbox) #> coord. ref. : lon/lat WGS 84 (EPSG:4326)

The table of interest need not have a geometry column, but this method does not work on GeoPackage that contain only gridded data, and @@ -400,7 +398,7 @@

Method 2: gpkg_vect() an #> geometry : none #> dimensions : 0, 2 (geometries, attributes) #> extent : 0, 0, 0, 0 (xmin, xmax, ymin, ymax) -#> source : file1ce810017c51.gpkg (SELECT) +#> source : file1cbe1b1d1300.gpkg (SELECT) #> coord. ref. : #> names : table_name feature_count #> type : <chr> <int> @@ -444,10 +442,10 @@

Method 3: gpkg_rast()#> resolution : 0.008333333, 0.008333333 (x, y) #> extent : 6.008333, 6.266667, 49.69167, 49.94167 (xmin, xmax, ymin, ymax) #> coord. ref. : lon/lat WGS 84 (EPSG:4326) -#> sources : file1ce810017c51.gpkg:DEM1 -#> file1ce810017c51.gpkg:DEM2 -#> varnames : file1ce810017c51 -#> file1ce810017c51 +#> sources : file1cbe1b1d1300.gpkg:DEM1 +#> file1cbe1b1d1300.gpkg:DEM2 +#> varnames : file1cbe1b1d1300 +#> file1cbe1b1d1300 #> names : DEM1, DEM2 #> min values : ? , 195 #> max values : ? , 500 @@ -467,14 +465,14 @@

Method 4: gpkg_table()
 gpkg_table(g, "gpkg_contents")
-#> # Source:   table<gpkg_contents> [4 x 10]
-#> # Database: sqlite 3.45.0 [/tmp/RtmpSBWocw/file1ce810017c51.gpkg]
+#> # Source:   table<`gpkg_contents`> [4 x 10]
+#> # Database: sqlite 3.47.0 [/tmp/RtmpMUZJbE/file1cbe1b1d1300.gpkg]
 #>   table_name data_type   identifier description last_change   min_x min_y  max_x
 #>   <chr>      <chr>       <chr>      <chr>       <chr>         <dbl> <dbl>  <dbl>
-#> 1 DEM1       2d-gridded… DEM1       ""          2024-03-03…    6.01  49.7   6.27
-#> 2 DEM2       2d-gridded… DEM2       ""          2024-03-03…    6.01  49.7   6.27
-#> 3 bbox       features    bbox       ""          2024-03-03…    6.01  49.7   6.27
-#> 4 myattr     attributes  myattr     ""          2024-03-03… -180    -90   180   
+#> 1 DEM1       2d-gridded… DEM1       ""          2024-11-30…    6.01  49.7   6.27
+#> 2 DEM2       2d-gridded… DEM2       ""          2024-11-30…    6.01  49.7   6.27
+#> 3 bbox       features    bbox       ""          2024-11-30…    6.01  49.7   6.27
+#> 4 myattr     attributes  myattr     ""          2024-11-30… -180    -90   180   
 #> # ℹ 2 more variables: max_y <dbl>, srs_id <int>

As a more complicated example we access the gpkg_2d_gridded_tile_ancillary table, and perform some data @@ -525,7 +523,7 @@

Managing Connections#> sqlite_sequence #> -------------------------------------------------------------------------------- #> <SQLiteConnection> -#> Path: /tmp/RtmpSBWocw/file1ce810017c51.gpkg +#> Path: /tmp/RtmpMUZJbE/file1cbe1b1d1300.gpkg #> Extensions: TRUE # disconnect @@ -536,9 +534,7 @@

Managing Connections - - + @@ -551,16 +547,16 @@

Managing Connections

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/authors.html b/authors.html index 9a77b9a..fcca9d7 100644 --- a/authors.html +++ b/authors.html @@ -1,9 +1,9 @@ -Authors and Citation • gpkgAuthors and Citation • gpkg - +
@@ -28,7 +28,7 @@
- +
- +
  • -

    Andrew Brown. Author, maintainer. +

    Andrew Brown. Author, maintainer.

Citation

- Source: DESCRIPTION + Source: DESCRIPTION

Brown A (2024). gpkg: Utilities for the Open Geospatial Consortium 'GeoPackage' Format. -R package version 0.0.9, https://github.com/brownag/gpkg, https://humus.rocks/gpkg/. +R package version 0.0.10, https://github.com/brownag/gpkg, https://humus.rocks/gpkg/.

@Manual{,
   title = {gpkg: Utilities for the Open Geospatial Consortium 'GeoPackage' Format},
   author = {Andrew Brown},
   year = {2024},
-  note = {R package version 0.0.9, https://github.com/brownag/gpkg},
+  note = {R package version 0.0.10, https://github.com/brownag/gpkg},
   url = {https://humus.rocks/gpkg/},
 }
@@ -94,15 +94,15 @@

Citation

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/index.html b/index.html index 6a44526..db430c7 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Utilities for the Open Geospatial Consortium GeoPackage Format • gpkg - + @@ -19,7 +19,7 @@ - +
@@ -45,7 +45,7 @@
- +
@@ -526,16 +526,16 @@

Dev status

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/news/index.html b/news/index.html index 7fc0abe..e48542b 100644 --- a/news/index.html +++ b/news/index.html @@ -1,9 +1,9 @@ -Changelog • gpkgChangelog • gpkg - +
@@ -28,7 +28,7 @@
- +
+
+ +
- - + + diff --git a/pkgdown.yml b/pkgdown.yml index 967952d..c12a4a7 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -1,7 +1,6 @@ pandoc: 3.1.11 -pkgdown: 2.0.7 +pkgdown: 2.1.1 pkgdown_sha: ~ articles: intro: intro.html -last_built: 2024-03-03T22:28Z - +last_built: 2024-11-30T00:13Z diff --git a/reference/geopackage-class.html b/reference/geopackage-class.html index a5730ca..17707cb 100644 --- a/reference/geopackage-class.html +++ b/reference/geopackage-class.html @@ -1,9 +1,9 @@ -geopackage Constructors — geopackage • gpkggeopackage Constructors — geopackage • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -65,19 +65,19 @@

geopackage Constructors

geopackage(x, ...)
 
-# S3 method for list
+# S3 method for class 'list'
 geopackage(x, dsn = NULL, connect = FALSE, ...)
 
-# S3 method for missing
+# S3 method for class 'missing'
 geopackage(x, connect = FALSE, pattern = "Rgpkg", tmpdir = tempdir(), ...)
 
-# S3 method for SQLiteConnection
+# S3 method for class 'SQLiteConnection'
 geopackage(x, connect = FALSE, ...)
 
-# S3 method for geopackage
+# S3 method for class 'geopackage'
 geopackage(x, ...)
 
-# S3 method for character
+# S3 method for class 'character'
 geopackage(x, connect = FALSE, ...)
 
 gpkg(x, ...)
@@ -85,35 +85,35 @@

geopackage Constructors

Arguments

-
x
+ + +
x

list of SpatVectorProxy, SpatRaster, data.frame; or a character containing path to a GeoPackage file; or an SQLiteConnection to a GeoPackage. If missing, a temporary file with .gpkg extension is created in tempdir.

-
...
+
...

Additional arguments [not currently used]

-
dsn
+
dsn

Path to GeoPackage File (may not exist)

-
connect
+
connect

Connect to database and store connection in result? Default: FALSE

-
pattern
+
pattern

used only when x is missing (creating temporary file GeoPackage), passed to tempfile(); default "Rgpkg"

-
tmpdir
+
tmpdir

used only when x is missing (creating temporary file GeoPackage), passed to tempfile(); default tempdir()

Value

- - -

A geopackage object

+

A geopackage object

Details

@@ -135,15 +135,15 @@

Details

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg-attributes.html b/reference/gpkg-attributes.html index 8dd9469..4f7b2d4 100644 --- a/reference/gpkg-attributes.html +++ b/reference/gpkg-attributes.html @@ -1,10 +1,10 @@ -Write or Remove Attribute Table in a GeoPackage — gpkg_write_attributes • gpkgWrite or Remove Attribute Table in a GeoPackage — gpkg_write_attributes • gpkg - +
@@ -29,7 +29,7 @@
- +
@@ -80,39 +80,39 @@

Write or Remove Attribute Table in a GeoPackage

Arguments

-
x
+ + +
x

A geopackage object

-
table
+
table

A data.frame

-
table_name
+
table_name

character. The name for table in x

-
description
+
description

Optional description. Default ""

-
template
+
template

A list (containing elements "ext" and "crs", or a terra object. These objects defining xmin/ymin/xmax/ymax and spatial reference system for the attribute table.

-
overwrite
+
overwrite

Overwrite? Default FALSE

-
append
+
append

Append? Default FALSE

Value

- - -

logical. TRUE on successful table write or remove.

+

logical. TRUE on successful table write or remove.

@@ -127,15 +127,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg-connection.html b/reference/gpkg-connection.html index 843bfea..42677e4 100644 --- a/reference/gpkg-connection.html +++ b/reference/gpkg-connection.html @@ -1,9 +1,9 @@ -Create SQLite Connection to GeoPackage — gpkg_connect • gpkgCreate SQLite Connection to GeoPackage — gpkg_connect • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -65,39 +65,37 @@

Create SQLite Connection to GeoPackage

gpkg_connect(x)
 
-# S3 method for geopackage
+# S3 method for class 'geopackage'
 gpkg_connect(x)
 
-# S3 method for character
+# S3 method for class 'character'
 gpkg_connect(x)
 
 gpkg_is_connected(x)
 
-# S3 method for geopackage
+# S3 method for class 'geopackage'
 gpkg_is_connected(x)
 
 gpkg_disconnect(x)
 
-# S3 method for geopackage
+# S3 method for class 'geopackage'
 gpkg_disconnect(x)
 
-# S3 method for SQLiteConnection
+# S3 method for class 'SQLiteConnection'
 gpkg_disconnect(x)

Arguments

-
x
+ + +
x

A geopackage or SQLiteConnection object

Value

- - -

A DBIConnection (SQLiteConnection) object. NULL on error.

- - +

A DBIConnection (SQLiteConnection) object. NULL on error.

If x is geopackage, the disconnected object is returned. If x is a SQLiteConnection, logical (TRUE if successfully disconnected).

@@ -117,15 +115,15 @@

Details

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg-contents.html b/reference/gpkg-contents.html index 783ade3..c3d7746 100644 --- a/reference/gpkg-contents.html +++ b/reference/gpkg-contents.html @@ -1,12 +1,12 @@ -Add, Remove, Update and Create gpkg_contents table and records — gpkg_add_contents • gpkgAdd, Remove, Update and Create gpkg_contents table and records — gpkg_add_contents • gpkg - +
@@ -31,7 +31,7 @@
- +
@@ -72,6 +72,7 @@

Add, Remove, Update and Create gpkg_contents table and records<
gpkg_add_contents(
   x,
   table_name,
+  data_type = NULL,
   description = "",
   srs_id = NULL,
   ext = NULL,
@@ -88,39 +89,43 @@ 

Add, Remove, Update and Create gpkg_contents table and records<

Arguments

-
x
+ + +
x

A geopackage

-
table_name
+
table_name

Name of table to add or remove record for in gpkg_contents

-
description
+
data_type
+

character. One of: 2d-gridded-coverage, "features", "attributes". Default NULL will attempt to auto-detect table type based on gpkg_table_pragma() information; falls back to "attributes" if raster or vector data are not detected.

+ + +
description

Default: ""

-
srs_id
+
srs_id

integer. Spatial Reference System ID. Must be defined in gpkg_spatial_ref_sys table.

-
ext
+
ext

numeric. A numeric vector of length four specifying the bounding box extent.

-
template
+
template

Deprecated. A list containing elements "srsid" and "ext".

-
query_string
+
query_string

logical. Return SQLite statement rather than executing it? Default: FALSE

Value

- - -

logical. TRUE on successful execution of SQL statements.

+

logical. TRUE on successful execution of SQL statements.

@@ -135,15 +140,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg-features.html b/reference/gpkg-features.html index 2f6eae7..a899383 100644 --- a/reference/gpkg-features.html +++ b/reference/gpkg-features.html @@ -1,9 +1,9 @@ -Create an empty feature table — gpkg_create_empty_features • gpkgCreate an empty feature table — gpkg_create_empty_features • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -79,51 +79,51 @@

Create an empty feature table

Arguments

-
x
+ + +
x

A geopackage Object

-
table_name
+
table_name

character. New table name.

-
column_name
+
column_name

character. Geometry column name. Default "geom"

-
geometry_type_name
+
geometry_type_name

character. Geometry type name. Default: "GEOMETRY"

-
srs_id
+
srs_id

integer. Spatial Reference System ID. Must be defined in gpkg_spatial_ref_sys table.

-
z
+
z

integer. Default: 0

-
m
+
m

integer. Default: 0

-
contents
+
contents

logical. If TRUE (default) add the new table to gpkg_contents table.

-
description
+
description

character. Description for gpkg_contents table. Default: ""

-
ext
+
ext

numeric. A numeric vector of length four specifying the bounding box extent.

Value

- - -

integer result of gpkg_execute(). Returns 1 if a new geometry record is appended to gpkg_geometry_columns table.

+

integer result of gpkg_execute(). Returns 1 if a new geometry record is appended to gpkg_geometry_columns table.

@@ -138,15 +138,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg-geometry-columns.html b/reference/gpkg-geometry-columns.html index 4f27683..5abda2c 100644 --- a/reference/gpkg-geometry-columns.html +++ b/reference/gpkg-geometry-columns.html @@ -1,9 +1,9 @@ -GeoPackage Geometry Columns — gpkg_create_geometry_columns • gpkgGeoPackage Geometry Columns — gpkg_create_geometry_columns • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -78,39 +78,39 @@

GeoPackage Geometry Columns

Arguments

-
x
+ + +
x

A geopackage object, or path to GeoPackage file.

-
table_name
+
table_name

character. New table name.

-
column_name
+
column_name

character. Geometry column name. Default "geom"

-
geometry_type_name
+
geometry_type_name

character. Geometry type name. Default: "GEOMETRY"

-
srs_id
+
srs_id

integer. Spatial Reference System ID. Must be defined in gpkg_spatial_ref_sys table.

-
z
+
z

integer. Default: 0

-
m
+
m

integer. Default: 0

Value

- - -

integer. 1 if table created or row inserted successfully, 0 otherwise.

+

integer. 1 if table created or row inserted successfully, 0 otherwise.

@@ -125,15 +125,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg-package.html b/reference/gpkg-package.html index c257d58..32dfbb3 100644 --- a/reference/gpkg-package.html +++ b/reference/gpkg-package.html @@ -1,9 +1,9 @@ -gpkg: Utilities for the Open Geospatial Consortium 'GeoPackage' Format — gpkg-package • gpkggpkg: Utilities for the Open Geospatial Consortium 'GeoPackage' Format — gpkg-package • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -87,15 +87,15 @@

Author

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg-srs.html b/reference/gpkg-srs.html index 30f2469..dc7950a 100644 --- a/reference/gpkg-srs.html +++ b/reference/gpkg-srs.html @@ -1,9 +1,9 @@ -GeoPackage Spatial Reference System — gpkg_spatial_ref_sys • gpkgGeoPackage Spatial Reference System — gpkg_spatial_ref_sys • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -85,64 +85,54 @@

GeoPackage Spatial Reference System

Arguments

-
x
+ + +
x

A geopackage object

-
column_name
+
column_name

Default: "srs_id"

-
default
+
default

logical or character. If TRUE, or one or more of "cartesian", "geographic", or "crs84", then these default Spatial Reference Systems are added.

-
query_string
+
query_string

logical. Return SQL queries without executing? Default: FALSE

-
srs_name
+
srs_name

character. Spatial Reference System Name, for example "WGS 84 geodetic"

-
srs_id
+
srs_id

integer. Spatial Reference System ID, for example 4326L

-
organization
+
organization

character. Organization, for example "EPSG"

-
organization_coordsys_id
+
organization_coordsys_id

integer. Organization Coordinate System ID, for example 4326L

-
definition
+
definition

character. WKT2019 Coordinate Reference System description string

-
description
+
description

character. Description

Value

- - -

gpkg_spatial_ref_sys(): data.frame

- - - +

gpkg_spatial_ref_sys(): data.frame

gpkg_list_srs(): vector of values from specified column_name

- - -

gpkg_create_spatial_ref_sys(): integer. Result of running sequential gpkg_execute() statements. This method is run for the side-effect of creating the table if needed, and adding any "default" records.

- -

gpkg_add_spatial_ref_sys(): integer result of executing SQL statement

- -

gpkg_delete_spatial_ref_sys(): integer result of executing SQL statement

@@ -158,15 +148,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_2d_gridded_coverage_ancillary.html b/reference/gpkg_2d_gridded_coverage_ancillary.html index c03b8cb..58beaa2 100644 --- a/reference/gpkg_2d_gridded_coverage_ancillary.html +++ b/reference/gpkg_2d_gridded_coverage_ancillary.html @@ -1,9 +1,9 @@ -Get gpkg_2d_gridded_coverage_ancillary Table — gpkg_2d_gridded_coverage_ancillary • gpkgGet gpkg_2d_gridded_coverage_ancillary Table — gpkg_2d_gridded_coverage_ancillary • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -68,17 +68,15 @@

Get gpkg_2d_gridded_coverage_ancillary Table

Arguments

-
x
+ + +
x

A geopackage object, path to a GeoPackage or an SQLiteConnection

Value

- - -

a data.frame containing columns id, tile_matrix_set_name, datatype, scale, offset, precision, data_null, grid_cell_encoding, uom, field_name, quantity_definition

- - +

a data.frame containing columns id, tile_matrix_set_name, datatype, scale, offset, precision, data_null, grid_cell_encoding, uom, field_name, quantity_definition

@@ -93,15 +91,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_add_metadata_extension.html b/reference/gpkg_add_metadata_extension.html index d841aaf..faf0c21 100644 --- a/reference/gpkg_add_metadata_extension.html +++ b/reference/gpkg_add_metadata_extension.html @@ -1,9 +1,9 @@ -Add 'Metadata' extension — gpkg_add_metadata_extension • gpkgAdd 'Metadata' extension — gpkg_add_metadata_extension • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -68,15 +68,15 @@

Add 'Metadata' extension

Arguments

-
x
+ + +
x

a geopackage

Value

- - -

0 (invisible). Called for side effects.

+

0 (invisible). Called for side effects.

@@ -91,15 +91,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_add_relatedtables_extension.html b/reference/gpkg_add_relatedtables_extension.html index 7cafde1..62cd9cb 100644 --- a/reference/gpkg_add_relatedtables_extension.html +++ b/reference/gpkg_add_relatedtables_extension.html @@ -1,9 +1,9 @@ -Add 'Related Tables' extension — gpkg_add_relatedtables_extension • gpkgAdd 'Related Tables' extension — gpkg_add_relatedtables_extension • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -68,15 +68,15 @@

Add 'Related Tables' extension

Arguments

-
x
+ + +
x

a geopackage

Value

- - -

0 (invisible). Called for side effects.

+

0 (invisible). Called for side effects.

@@ -91,15 +91,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_bbox.html b/reference/gpkg_bbox.html index 19d1b22..ec9086d 100644 --- a/reference/gpkg_bbox.html +++ b/reference/gpkg_bbox.html @@ -1,9 +1,9 @@ -Get Bounding Box of a GeoPackage Layer — gpkg_bbox • gpkgGet Bounding Box of a GeoPackage Layer — gpkg_bbox • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -68,25 +68,23 @@

Get Bounding Box of a GeoPackage Layer

Arguments

-
x
+ + +
x

A geopackage object

-
table_name
+
table_name

character. One or more table names.

-
geom_column
+
geom_column

character. Geometry column name, default "geom"

Value

- - -

a data.frame containing columns "xmin", "ymin", "xmax", "ymax"

- - +

a data.frame containing columns "xmin", "ymin", "xmax", "ymax"

@@ -117,15 +115,15 @@

Examples

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_contents.html b/reference/gpkg_contents.html index 88b7c03..fcdf989 100644 --- a/reference/gpkg_contents.html +++ b/reference/gpkg_contents.html @@ -1,9 +1,9 @@ -Get gpkg_contents or gpkg_ogr_contents Table — gpkg_contents • gpkgGet gpkg_contents or gpkg_ogr_contents Table — gpkg_contents • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -70,22 +70,19 @@

Get gpkg_contents or gpkg_ogr_contents Table

Arguments

-
x
+ + +
x

A geopackage object, path to a GeoPackage or an SQLiteConnection

-
create
-

Create table gpkg_contents if does not exist? Default: ``

+
create
+

Create table gpkg_contents if does not exist? Default: “

Value

- - -

gpkg_contents(): a data.frame containing columns table_name, data_type, identifier, description, last_change, min_x, min_y, max_x, max_y, srs_id

- - - +

gpkg_contents(): a data.frame containing columns table_name, data_type, identifier, description, last_change, min_x, min_y, max_x, max_y, srs_id

gpkg_ogr_contents(): a data.frame containing columns table_name and feature_count.

@@ -101,15 +98,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_create_dummy_features.html b/reference/gpkg_create_dummy_features.html index ba2dae2..795a5f1 100644 --- a/reference/gpkg_create_dummy_features.html +++ b/reference/gpkg_create_dummy_features.html @@ -1,9 +1,9 @@ -Create a Dummy Feature Dataset in a GeoPackage — gpkg_create_dummy_features • gpkgCreate a Dummy Feature Dataset in a GeoPackage — gpkg_create_dummy_features • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -68,23 +68,23 @@

Create a Dummy Feature Dataset in a GeoPackage

Arguments

-
x
+ + +
x

A geopackage object

-
table_name
+
table_name

A table name; default "dummy_feature"

-
values
+
values

Values to use for new table. Defaults to default geometry name ("geom"), with generic GEOMETRY data type, with no spatial reference system.

Value

- - -

logical. TRUE on success.

+

logical. TRUE on success.

Details

@@ -108,15 +108,15 @@

See also

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_create_spatial_view.html b/reference/gpkg_create_spatial_view.html index e97deee..1cd25e5 100644 --- a/reference/gpkg_create_spatial_view.html +++ b/reference/gpkg_create_spatial_view.html @@ -1,9 +1,9 @@ -Create a Spatial View — gpkg_create_spatial_view • gpkgCreate a Spatial View — gpkg_create_spatial_view • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -79,54 +79,54 @@

Create a Spatial View

Arguments

-
g
+ + +
g

a geopackage

-
viewname
+
viewname

character. Name of view.

-
viewquery
+
viewquery

character. Query for view contents.

-
geom_column
+
geom_column

character. Column name of view geometry. Default: "geom"

-
geometry_type_name
+
geometry_type_name

character. View geometry type. Default: "GEOMETRY"

-
spatialite_computed
+
spatialite_computed

logical. Register definition of geom_column as the result of a Spatialite spatial function via "gdal_spatialite_computed_geom_column" extension. Default: FALSE

-
data_type
+
data_type

character. View data type. Default "features"

-
srs_id
+
srs_id

integer. Spatial Reference System ID. Default: 4326 (WGS84)

-
z
+
z

integer. Default: 0

-
m
+
m

integer. Default: 0

Value

- - -

integer. Returns 1 if a new record in gpkg_geometry_columns is successfully made.

+

integer. Returns 1 if a new record in gpkg_geometry_columns is successfully made.

@@ -141,15 +141,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_creation_options.html b/reference/gpkg_creation_options.html index f4266ff..59d9071 100644 --- a/reference/gpkg_creation_options.html +++ b/reference/gpkg_creation_options.html @@ -1,9 +1,9 @@ -GeoPackage Creation Options — gpkg_creation_options • gpkgGeoPackage Creation Options — gpkg_creation_options • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -87,15 +87,15 @@

Source

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_execute.html b/reference/gpkg_execute.html index 45d009e..51897b1 100644 --- a/reference/gpkg_execute.html +++ b/reference/gpkg_execute.html @@ -1,9 +1,9 @@ -Execute an SQL statement in a GeoPackage — gpkg_execute • gpkgExecute an SQL statement in a GeoPackage — gpkg_execute • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -68,27 +68,27 @@

Execute an SQL statement in a GeoPackage

Arguments

-
x
+ + +
x

A geopackage object

-
statement
+
statement

An SQLite statement

-
...
+
...

Additional arguments to RSQLite::dbExecute()

-
silent
+
silent

Used to suppress error messages, passed to try(). Default: FALSE.

Value

- - -

Invisible result of RSQLite::dbExecute(); or try-error on error.

+

Invisible result of RSQLite::dbExecute(); or try-error on error.

@@ -103,15 +103,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_list_contents.html b/reference/gpkg_list_contents.html index 2a2206d..7f456b9 100644 --- a/reference/gpkg_list_contents.html +++ b/reference/gpkg_list_contents.html @@ -1,9 +1,9 @@ -List Tables Registered in a GeoPackage gpkg_contents — gpkg_list_contents • gpkgList Tables Registered in a GeoPackage gpkg_contents — gpkg_list_contents • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -68,19 +68,19 @@

List Tables Registered in a GeoPackage gpkg_contents

Arguments

-
x
+ + +
x

A geopackage object, path to a GeoPackage or an SQLiteConnection

-
ogr
+
ogr

Intersect gpkg_contents table name result with OGR tables that are listed in gpkg_ogr_contents? Default: FALSE

Value

- - -

character. Vector of grid, feature and attribute table names registered in GeoPackage.

+

character. Vector of grid, feature and attribute table names registered in GeoPackage.

See also

@@ -99,15 +99,15 @@

See also

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_list_tables.html b/reference/gpkg_list_tables.html index 02a436f..e897701 100644 --- a/reference/gpkg_list_tables.html +++ b/reference/gpkg_list_tables.html @@ -1,9 +1,9 @@ -List Tables in a GeoPackage — gpkg_list_tables • gpkgList Tables in a GeoPackage — gpkg_list_tables • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -68,15 +68,15 @@

List Tables in a GeoPackage

Arguments

-
x
+ + +
x

A geopackage object, path to a GeoPackage or an SQLiteConnection

Value

- - -

a character vector with names of all tables and views in the database

+

a character vector with names of all tables and views in the database

@@ -91,15 +91,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_query.html b/reference/gpkg_query.html index eecebf5..1f60638 100644 --- a/reference/gpkg_query.html +++ b/reference/gpkg_query.html @@ -1,9 +1,9 @@ -Query a GeoPackage for Tabular Result — gpkg_query • gpkgQuery a GeoPackage for Tabular Result — gpkg_query • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -70,27 +70,27 @@

Query a GeoPackage for Tabular Result

Arguments

-
x
+ + +
x

A geopackage object

-
query
+
query

character. An SQLite/Spatialite/GeoPackage query. The query argument is forwarded to sql argument when ogr=TRUE.

-
ogr
+
ogr

logical. Use the OGR query interface (via terra::query()). See details. Default: FALSE uses 'RSQLite' driver instead of 'terra'.

-
...
+
...

Additional arguments to terra::query() (such as start, n, vars, where, extent, filter) are passed when ogr=TRUE (or using alias gpkg_ogr_query()). Otherwise not used.

Value

- - -

a data.frame result of RSQLite::dbGetQuery() or SpatVector result from terra::query().

+

a data.frame result of RSQLite::dbGetQuery() or SpatVector result from terra::query().

Details

@@ -109,15 +109,15 @@

Details

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_read.html b/reference/gpkg_read.html index 738fbb2..2bc095b 100644 --- a/reference/gpkg_read.html +++ b/reference/gpkg_read.html @@ -1,9 +1,9 @@ -Read data from a GeoPackage — gpkg_read • gpkgRead data from a GeoPackage — gpkg_read • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -68,23 +68,23 @@

Read data from a GeoPackage

Arguments

-
x
+ + +
x

Path to GeoPackage

-
connect
+
connect

Connect to database and store connection in result? Default: FALSE

-
quiet
+
quiet

Hide printing of gdalinfo description to stdout. Default: TRUE

Value

- - -

A geopackage object (list containing tables, grids and vector data)

+

A geopackage object (list containing tables, grids and vector data)

See also

@@ -103,15 +103,15 @@

See also

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_source.html b/reference/gpkg_source.html index 470528d..336625f 100644 --- a/reference/gpkg_source.html +++ b/reference/gpkg_source.html @@ -1,9 +1,9 @@ -Get Source File of a geopackage object — gpkg_source • gpkgGet Source File of a geopackage object — gpkg_source • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -65,21 +65,21 @@

Get Source File of a geopackage object

gpkg_source(x)
 
-# S3 method for geopackage
+# S3 method for class 'geopackage'
 gpkg_source(x)

Arguments

-
x
+ + +
x

A geopackage object

Value

- - -

character file path

+

character file path

@@ -94,15 +94,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_sqlite_tables.html b/reference/gpkg_sqlite_tables.html index a79c503..8ccec45 100644 --- a/reference/gpkg_sqlite_tables.html +++ b/reference/gpkg_sqlite_tables.html @@ -1,10 +1,10 @@ -GeoPackage Dataset — gpkg_sqlite_tables • gpkgGeoPackage Dataset — gpkg_sqlite_tables • gpkg - +
@@ -29,7 +29,7 @@
- +
@@ -89,15 +89,15 @@

Source

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_table.html b/reference/gpkg_table.html index 874c370..49cad6a 100644 --- a/reference/gpkg_table.html +++ b/reference/gpkg_table.html @@ -1,14 +1,15 @@ -Lazy Access to Tables by Name — gpkg_table_pragma • gpkg - +
@@ -33,7 +34,7 @@
- +
@@ -69,19 +70,20 @@

Lazy Access to Tables by Name

gpkg_collect(): Alias for gpkg_table(..., collect=TRUE)

gpkg_tbl(): Alias for gpkg_table(..., collect=FALSE)(default) that always returns a tbl_SQLiteConnection object.

gpkg_rast(): Get a SpatRaster object corresponding to the specified table_name

-

gpkg_rast(): Get a SpatVector object corresponding to the specified table_name

+

gpkg_vect(): Get a SpatVector object corresponding to the specified table_name

+

gpkg_sf(): Get a sf-tibble object corresponding to the specified table_name

gpkg_table_pragma(x, table_name = NULL, ...)
 
-# S3 method for character
+# S3 method for class 'character'
 gpkg_table_pragma(x, table_name = NULL, ...)
 
-# S3 method for SQLiteConnection
+# S3 method for class 'SQLiteConnection'
 gpkg_table_pragma(x, table_name, ...)
 
-# S3 method for geopackage
+# S3 method for class 'geopackage'
 gpkg_table_pragma(x, table_name = NULL, ...)
 
 gpkg_table(
@@ -93,7 +95,7 @@ 

Lazy Access to Tables by Name

... ) -# S3 method for default +# Default S3 method gpkg_table( x, table_name, @@ -109,56 +111,47 @@

Lazy Access to Tables by Name

gpkg_rast(x, table_name = NULL, ...) -gpkg_vect(x, table_name, ...)
+gpkg_vect(x, table_name, ...) + +gpkg_sf(x, table_name, ...)

Arguments

-
x
+ + +
x

A geopackage object or character path to GeoPackage file

-
table_name
+
table_name

character. One or more table names; for gpkg_table_pragma() if table_name=NULL returns a record for each table. gpkg_table() requires table_name be specified

-
...
+
...

Additional arguments. In gpkg_table() arguments in ... are passed to dplyr::tbl(). For gpkg_table_pragma(), ... arguments are (currently) not used. For gpkg_rast() additional arguments are passed to terra::rast(). For gpkg_vect() additional arguments (such as proxy=TRUE) are passed to terra::vect().

-
collect
+
collect

logical. Materialize a data.frame object in memory? Default: FALSE requires 'dbplyr' package. TRUE uses 'RSQLite'.

-
column_names
+
column_names

character. Used only when collect=TRUE. A character vector of column names to select from table_name.

-
query_string
+
query_string

logical. Return SQLite query rather than executing it? Default: FALSE

Value

- - -

gpkg_table(): A 'dbplyr' object of class tbl_SQLiteConnection

- - - +

gpkg_table(): A 'dbplyr' object of class tbl_SQLiteConnection

gpkg_collect(): An object of class data.frame

- - -

gpkg_tbl(): An object of class tbl_SQLiteConnection

- - -

gpkg_rast(): A 'terra' object of class SpatRaster

- - -

gpkg_vect(): A 'terra' object of class SpatVector (may not contain geometry columns)

+

gpkg_sf()): An sf-tibble object of class "sf", "tbl_df". If the table contains no geometry column the result is a "tbl_df".

@@ -179,16 +172,16 @@

Examples

RASTER_TABLE = "DEM2", FIELD_NAME = "Elevation") -g <- geopackage(tf) +g <- geopackage(tf, connect = TRUE) # inspect gpkg_contents table gpkg_table(g, "gpkg_contents") -#> # Source: table<gpkg_contents> [2 x 10] -#> # Database: sqlite 3.45.0 [/tmp/Rtmpg33s4p/file1b013674eb59.gpkg] +#> # Source: table<`gpkg_contents`> [2 x 10] +#> # Database: sqlite 3.47.0 [/tmp/RtmpLWuSH9/file1ac81b52b11.gpkg] #> table_name data_type identifier description last_change min_x min_y max_x #> <chr> <chr> <chr> <chr> <chr> <dbl> <dbl> <dbl> -#> 1 DEM1 2d-gridded-co… DEM1 "" 2024-03-03… 6.01 49.7 6.27 -#> 2 DEM2 2d-gridded-co… DEM2 "" 2024-03-03… 6.01 49.7 6.27 +#> 1 DEM1 2d-gridded-co… DEM1 "" 2024-11-30… 6.01 49.7 6.27 +#> 2 DEM2 2d-gridded-co… DEM2 "" 2024-11-30… 6.01 49.7 6.27 #> # ℹ 2 more variables: max_y <dbl>, srs_id <int> gpkg_vect(g, "gpkg_contents") @@ -196,7 +189,7 @@

Examples

#> geometry : none #> dimensions : 0, 10 (geometries, attributes) #> extent : 0, 0, 0, 0 (xmin, xmax, ymin, ymax) -#> source : file1b013674eb59.gpkg (SELECT) +#> source : file1ac81b52b11.gpkg (SELECT) #> coord. ref. : #> names : table_name data_type identifier description last_change min_x #> type : <chr> <chr> <chr> <chr> <chr> <num> @@ -230,15 +223,15 @@

Examples

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_tables.html b/reference/gpkg_tables.html index 15196cd..cb7e3cf 100644 --- a/reference/gpkg_tables.html +++ b/reference/gpkg_tables.html @@ -1,9 +1,9 @@ -Get Tables from a geopackage object — gpkg_tables • gpkgGet Tables from a geopackage object — gpkg_tables • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -65,29 +65,29 @@

Get Tables from a geopackage object

gpkg_tables(x, collect = FALSE, pragma = FALSE)
 
-# S3 method for geopackage
+# S3 method for class 'geopackage'
 gpkg_tables(x, collect = FALSE, pragma = FALSE)

Arguments

-
x
+ + +
x

A geopackage object

-
collect
+
collect

Default: FALSE. Should tables be materialized as 'data.frame' objects in memory? (i.e. not "lazy") Default: FALSE; if TRUE 'dbplyr' is not required. Always TRUE for pragma=TRUE (pragma information are always "collected").

-
pragma
+
pragma

Default: FALSE. Use gpkg_table_pragma() instead of gpkg_table()? The former does not require 'dbplyr'.

Value

- - -

a list of SpatVectorProxy, SpatRaster, data.frame (lazy tbl?)

+

a list of SpatVectorProxy, SpatRaster, data.frame (lazy tbl?)

@@ -102,15 +102,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_tile_set_data_null.html b/reference/gpkg_tile_set_data_null.html index a700e55..967aab1 100644 --- a/reference/gpkg_tile_set_data_null.html +++ b/reference/gpkg_tile_set_data_null.html @@ -1,9 +1,9 @@ -Set data_null Metadata for a GeoPackage Tile Dataset — gpkg_tile_set_data_null • gpkgSet data_null Metadata for a GeoPackage Tile Dataset — gpkg_tile_set_data_null • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -68,27 +68,27 @@

Set data_null Metadata for a GeoPackage Tile Dataset

Arguments

-
x
+ + +
x

A geopackage object, path to a GeoPackage or an SQLiteConnection

-
name
+
name

character. Tile matrix set name(s) (tile_matrix_set_name)

-
value
+
value

numeric. Value to use as "NoData" (data_null value)

-
query_string
+
query_string

logical. Return SQLite query rather than executing it? Default: FALSE

Value

- - -

logical. TRUE if number of data_null records updated is greater than 0.

+

logical. TRUE if number of data_null records updated is greater than 0.

@@ -103,15 +103,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_update_table.html b/reference/gpkg_update_table.html index dce0f31..0cbc4c4 100644 --- a/reference/gpkg_update_table.html +++ b/reference/gpkg_update_table.html @@ -1,9 +1,9 @@ -Update a Table by Name — gpkg_update_table • gpkgUpdate a Table by Name — gpkg_update_table • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -76,39 +76,39 @@

Update a Table by Name

Arguments

-
x
+ + +
x

A geopackage object, path to a GeoPackage or an SQLiteConnection.

-
table_name
+
table_name

character. Table name.

-
updatecol
+
updatecol

character. Column to update.

-
updatevalue
+
updatevalue

character, numeric, etc.; A scalar value to set.

-
wherecol
+
wherecol

character. Column used to constrain update.

-
wherevector
+
wherevector

character, numeric, etc.; Vector of values where update should be made.

-
query_string
+
query_string

logical. Return SQLite query rather than executing it? Default: FALSE

Value

- - -

integer. Number of rows updated by executing UPDATE query. Or character SQL query string if query_string=TRUE.

+

integer. Number of rows updated by executing UPDATE query. Or character SQL query string if query_string=TRUE.

@@ -123,15 +123,15 @@

Value

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_validate.html b/reference/gpkg_validate.html index c6057e8..5343731 100644 --- a/reference/gpkg_validate.html +++ b/reference/gpkg_validate.html @@ -1,9 +1,9 @@ -Validate a GeoPackage — gpkg_validate • gpkgValidate a GeoPackage — gpkg_validate • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -68,19 +68,19 @@

Validate a GeoPackage

Arguments

-
x
+ + +
x

A geopackage object, or character path to GeoPackage

-
diagnostics
+
diagnostics

Return a list containing individual diagnostic test results (see Details)

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.

+

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.

Details

@@ -101,15 +101,15 @@

Details

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/gpkg_write.html b/reference/gpkg_write.html index aa5cb57..5bb0cfd 100644 --- a/reference/gpkg_write.html +++ b/reference/gpkg_write.html @@ -1,9 +1,9 @@ -Write data to a GeoPackage — gpkg_write • gpkgWrite data to a GeoPackage — gpkg_write • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -78,52 +78,52 @@

Write data to a GeoPackage

Arguments

-
x
+ + +
x

Vector of source file path(s), or a list containing one or more SpatRaster, SpatRasterCollection, or SpatVectorProxy objects.

-
destfile
+
destfile

Character. Path to output GeoPackage

-
table_name
+
table_name

Character. Default NULL name is derived from source file. Required if x is a data.frame.

-
datatype
+
datatype

Data type. Defaults to "FLT4S" for GeoTIFF files, "INT2U" otherwise. See documentation for terra::writeRaster().

-
append
+
append

Append to existing data source? Default: FALSE. Setting append=TRUE overrides overwrite=TRUE

-
overwrite
+
overwrite

Overwrite existing data source? Default FALSE.

-
NoData
+
NoData

Value to use as GDAL NoData Value

-
gdal_options
+
gdal_options

Additional gdal_options, passed to terra::writeRaster()

-
...
+
...

Additional arguments are passed as GeoPackage "creation options." See Details.

Value

- - -

Logical. TRUE on successful write of at least one grid.

+

Logical. TRUE on successful write of at least one grid.

Details

Additional, non-default GeoPackage creation options can be specified as arguments to this function. The full list of creation options can be viewed here or in the gpkg_creation_options dataset. The name of the argument is creation_option and the value is selected from one of the elements of values for that option.

-

If x contains source file paths, any comma-separated value (CSV) files are treated as attribute data--even if they contain a geometry column. GeoPackage source file paths are always treated as vector data sources, and only one layer will be read from the source and written to the target. If you need to read raster data from a GeoPackage first create a SpatRaster from the layer of interest (see gpkg_rast()) before passing to gpkg_write(). If you need to read multiple layers from any multi-layer source read them individually into suitable objects. For a source GeoPackage containing multiple layers you can use gpkg_read() (returns a geopackage object) or gpkg_tables() (returns a list object).

+

If x contains source file paths, any comma-separated value (CSV) files are treated as attribute data–even if they contain a geometry column. GeoPackage source file paths are always treated as vector data sources, and only one layer will be read from the source and written to the target. If you need to read raster data from a GeoPackage first create a SpatRaster from the layer of interest (see gpkg_rast()) before passing to gpkg_write(). If you need to read multiple layers from any multi-layer source read them individually into suitable objects. For a source GeoPackage containing multiple layers you can use gpkg_read() (returns a geopackage object) or gpkg_tables() (returns a list object).

See also

@@ -142,15 +142,15 @@

See also

-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/reference/index.html b/reference/index.html index 1db518b..b6dcfa9 100644 --- a/reference/index.html +++ b/reference/index.html @@ -1,9 +1,9 @@ -Function reference • gpkgPackage index • gpkg - +
@@ -28,7 +28,7 @@
- +
@@ -145,7 +145,7 @@

All functions

GeoPackage Dataset

-

gpkg_table_pragma() gpkg_table() gpkg_collect() gpkg_tbl() gpkg_rast() gpkg_vect()

+

gpkg_table_pragma() gpkg_table() gpkg_collect() gpkg_tbl() gpkg_rast() gpkg_vect() gpkg_sf()

Lazy Access to Tables by Name

@@ -181,15 +181,15 @@

All functions
-

Site built with pkgdown 2.0.7.

+

Site built with pkgdown 2.1.1.

- - + + diff --git a/sitemap.xml b/sitemap.xml index ec68947..9bd5852 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1,114 +1,40 @@ - - - - /404.html - - - /LICENSE.html - - - /articles/index.html - - - /articles/intro.html - - - /authors.html - - - /index.html - - - /news/index.html - - - /reference/geopackage-class.html - - - /reference/gpkg-attributes.html - - - /reference/gpkg-connection.html - - - /reference/gpkg-contents.html - - - /reference/gpkg-features.html - - - /reference/gpkg-geometry-columns.html - - - /reference/gpkg-package.html - - - /reference/gpkg-srs.html - - - /reference/gpkg_2d_gridded_coverage_ancillary.html - - - /reference/gpkg_add_metadata_extension.html - - - /reference/gpkg_add_relatedtables_extension.html - - - /reference/gpkg_bbox.html - - - /reference/gpkg_contents.html - - - /reference/gpkg_create_dummy_features.html - - - /reference/gpkg_create_spatial_view.html - - - /reference/gpkg_creation_options.html - - - /reference/gpkg_execute.html - - - /reference/gpkg_list_contents.html - - - /reference/gpkg_list_tables.html - - - /reference/gpkg_query.html - - - /reference/gpkg_read.html - - - /reference/gpkg_source.html - - - /reference/gpkg_sqlite_tables.html - - - /reference/gpkg_table.html - - - /reference/gpkg_tables.html - - - /reference/gpkg_tile_set_data_null.html - - - /reference/gpkg_update_table.html - - - /reference/gpkg_validate.html - - - /reference/gpkg_write.html - - - /reference/index.html - + +/404.html +/LICENSE.html +/articles/index.html +/articles/intro.html +/authors.html +/index.html +/news/index.html +/reference/geopackage-class.html +/reference/gpkg-attributes.html +/reference/gpkg-connection.html +/reference/gpkg-contents.html +/reference/gpkg-features.html +/reference/gpkg-geometry-columns.html +/reference/gpkg-package.html +/reference/gpkg-srs.html +/reference/gpkg_2d_gridded_coverage_ancillary.html +/reference/gpkg_add_metadata_extension.html +/reference/gpkg_add_relatedtables_extension.html +/reference/gpkg_bbox.html +/reference/gpkg_contents.html +/reference/gpkg_create_dummy_features.html +/reference/gpkg_create_spatial_view.html +/reference/gpkg_creation_options.html +/reference/gpkg_execute.html +/reference/gpkg_list_contents.html +/reference/gpkg_list_tables.html +/reference/gpkg_query.html +/reference/gpkg_read.html +/reference/gpkg_source.html +/reference/gpkg_sqlite_tables.html +/reference/gpkg_table.html +/reference/gpkg_tables.html +/reference/gpkg_tile_set_data_null.html +/reference/gpkg_update_table.html +/reference/gpkg_validate.html +/reference/gpkg_write.html +/reference/index.html +