From bb8bf3240507f6c28522a1a19ef64851b346bf01 Mon Sep 17 00:00:00 2001
From: brownag Note that a temporary GeoPackage
-(/tmp/Rtmpg4Ph17/Rgpkg1d022be574ab.gpkg) is automatically created when
+(/tmp/RtmpSBWocw/Rgpkg1ce86fd64947.gpkg) is automatically created when
using the You also may have a DBIConnection to a GeoPackage database
already opened that you want to use. In any case (character,
@@ -252,8 +252,8 @@ 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 +400,7 @@ Create A geopackage object, or path to GeoPackage file. character. New table name. character. Geometry column name. Default character. Geometry type name. Default: integer. Spatial Reference System ID. Must be defined in integer. Default: integer. Default: integer. Read a GeoPackage#> sqlite_sequence
#> --------------------------------------------------------------------------------
#> <SQLiteConnection>
-#> Path: /tmp/Rtmpg4Ph17/file1d025ccbab3e.gpkg
+#> Path: /tmp/RtmpSBWocw/file1ce810017c51.gpkg
#> Extensions: TRUE
class(g)
#> [1] "geopackage"
@@ -207,12 +207,12 @@
Read a GeoPackage#> sqlite_sequence
#> --------------------------------------------------------------------------------
#> <SQLiteConnection>
-#> Path: /tmp/Rtmpg4Ph17/Rgpkg1d022be574ab.gpkg
+#> Path: /tmp/RtmpSBWocw/Rgpkg1ce86fd64947.gpkg
#> Extensions: TRUE
class(g2)
#> [1] "geopackage"
geopackage(<list>)
constructor.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 : file1d025ccbab3e.gpkg:DEM1
-#> varname : file1d025ccbab3e
+#> source : file1ce810017c51.gpkg:DEM1
+#> varname : file1ce810017c51
#> name : DEM1
#>
#> $DEM2
@@ -262,15 +262,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 : file1d025ccbab3e.gpkg:DEM2
-#> varname : file1d025ccbab3e
+#> source : file1ce810017c51.gpkg:DEM2
+#> varname : file1ce810017c51
#> name : DEM2
#> min value : 195
#> max value : 500
#>
#> $myattr
#> # Source: table<myattr> [10 x 2]
-#> # Database: sqlite 3.45.0 [/tmp/Rtmpg4Ph17/file1d025ccbab3e.gpkg]
+#> # Database: sqlite 3.45.0 [/tmp/RtmpSBWocw/file1ce810017c51.gpkg]
#> a b
#> <int> <chr>
#> 1 1 A
@@ -289,7 +289,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 : file1d025ccbab3e.gpkg (bbox)
+#> source : file1ce810017c51.gpkg (bbox)
#> layer : bbox
#> coord. ref. : lon/lat WGS 84 (EPSG:4326)
@@ -327,7 +327,7 @@
Inspect Contents of GeoPackage
@@ -444,10 +444,10 @@ gpkg_tbl(g, "gpkg_contents")
#> # Source: table<gpkg_contents> [4 x 10]
-#> # Database: sqlite 3.45.0 [/tmp/Rtmpg4Ph17/file1d025ccbab3e.gpkg]
+#> # Database: sqlite 3.45.0 [/tmp/RtmpSBWocw/file1ce810017c51.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
@@ -354,12 +354,12 @@
Method 1:
gpkg_table_pragma()
head(gpkg_table_pragma(g))
#> dsn table_name nrow table_info.cid
-#> 1 /tmp/Rtmpg4Ph17/file1d025ccbab3e.gpkg DEM1 1 0
-#> 2 /tmp/Rtmpg4Ph17/file1d025ccbab3e.gpkg DEM1 1 1
-#> 3 /tmp/Rtmpg4Ph17/file1d025ccbab3e.gpkg DEM1 1 2
-#> 4 /tmp/Rtmpg4Ph17/file1d025ccbab3e.gpkg DEM1 1 3
-#> 5 /tmp/Rtmpg4Ph17/file1d025ccbab3e.gpkg DEM1 1 4
-#> 6 /tmp/Rtmpg4Ph17/file1d025ccbab3e.gpkg DEM2 1 0
+#> 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
#> 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 +389,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 : file1d025ccbab3e.gpkg (bbox)
+#> source : file1ce810017c51.gpkg (bbox)
#> coord. ref. : lon/lat WGS 84 (EPSG:4326)Method 2:
gpkg_vect()
an
#> geometry : none
#> dimensions : 0, 2 (geometries, attributes)
#> extent : 0, 0, 0, 0 (xmin, xmax, ymin, ymax)
-#> source : file1d025ccbab3e.gpkg (SELECT)
+#> source : file1ce810017c51.gpkg (SELECT)
#> coord. ref. :
#> names : table_name feature_count
#> type : <chr> <int>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 : file1d025ccbab3e.gpkg:DEM1
-#> file1d025ccbab3e.gpkg:DEM2
-#> varnames : file1d025ccbab3e
-#> file1d025ccbab3e
+#> sources : file1ce810017c51.gpkg:DEM1
+#> file1ce810017c51.gpkg:DEM2
+#> varnames : file1ce810017c51
+#> file1ce810017c51
#> names : DEM1, DEM2
#> min values : ? , 195
#> max values : ? , 500
@@ -468,7 +468,7 @@ Method 4:
gpkg_table()
gpkg_table(g, "gpkg_contents")
#> # Source: table<gpkg_contents> [4 x 10]
-#> # Database: sqlite 3.45.0 [/tmp/Rtmpg4Ph17/file1d025ccbab3e.gpkg]
+#> # Database: sqlite 3.45.0 [/tmp/RtmpSBWocw/file1ce810017c51.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
@@ -525,7 +525,7 @@
Managing Connections#> sqlite_sequence
#> --------------------------------------------------------------------------------
#> <SQLiteConnection>
-#> Path: /tmp/Rtmpg4Ph17/file1d025ccbab3e.gpkg
+#> Path: /tmp/RtmpSBWocw/file1ce810017c51.gpkg
#> Extensions: TRUE
# disconnect
diff --git a/pkgdown.yml b/pkgdown.yml
index 8ff834f..967952d 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -3,5 +3,5 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
intro: intro.html
-last_built: 2024-03-03T22:23Z
+last_built: 2024-03-03T22:28Z
diff --git a/reference/gpkg-geometry-columns.html b/reference/gpkg-geometry-columns.html
new file mode 100644
index 0000000..4f27683
--- /dev/null
+++ b/reference/gpkg-geometry-columns.html
@@ -0,0 +1,139 @@
+
+
gpkg_geometry_columns
table to account for geometry columns within the database with gpkg_create_geometry_columns()
. Register new geometry columns with gpkg_add_geometry_columns()
.gpkg_create_geometry_columns(x)
+
+gpkg_add_geometry_columns(
+ x,
+ table_name,
+ column_name,
+ geometry_type_name = "GEOMETRY",
+ srs_id,
+ z,
+ m
+)
Arguments
+ "geom"
"GEOMETRY"
gpkg_spatial_ref_sys
table.0
0
Value
+
+
+1
if table created or row inserted successfully, 0
otherwise.Examples
# inspect gpkg_contents table
gpkg_table(g, "gpkg_contents")
#> # Source: table<gpkg_contents> [2 x 10]
-#> # Database: sqlite 3.45.0 [/tmp/RtmpRPcblI/file1b237a00447.gpkg]
+#> # Database: sqlite 3.45.0 [/tmp/Rtmpg33s4p/file1b013674eb59.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
@@ -196,7 +196,7 @@ Examples
#> geometry : none
#> dimensions : 0, 10 (geometries, attributes)
#> extent : 0, 0, 0, 0 (xmin, xmax, ymin, ymax)
-#> source : file1b237a00447.gpkg (SELECT)
+#> source : file1b013674eb59.gpkg (SELECT)
#> coord. ref. :
#> names : table_name data_type identifier description last_change min_x
#> type : <chr> <chr> <chr> <chr> <chr> <num>
diff --git a/reference/index.html b/reference/index.html
index 0a8b634..1db518b 100644
--- a/reference/index.html
+++ b/reference/index.html
@@ -80,6 +80,10 @@ All functions
gpkg_create_empty_features()
Create an empty feature table
GeoPackage Geometry Columns
gpkg_spatial_ref_sys()
gpkg_list_srs()
gpkg_create_spatial_ref_sys()
gpkg_add_spatial_ref_sys()
gpkg_delete_spatial_ref_sys()