diff --git a/articles/intro.html b/articles/intro.html index 9cd73d3..f20a7a0 100644 --- a/articles/intro.html +++ b/articles/intro.html @@ -186,7 +186,7 @@
Note that a temporary GeoPackage
-(/tmp/Rtmpg4Ph17/Rgpkg1d022be574ab.gpkg) is automatically created when
+(/tmp/RtmpSBWocw/Rgpkg1ce86fd64947.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 +252,8 @@
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)
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 @@
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>
@@ -444,10 +444,10 @@ 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 @@ 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 @@
+
+GeoPackage Geometry Columns — gpkg_create_geometry_columns • gpkg
+
+
+
+
+
+
+
+
+
+
+
+
+ Create 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
+ - x
+A geopackage object, or path to GeoPackage file.
+
+
+- table_name
+character. New table name.
+
+
+- column_name
+character. Geometry column name. Default "geom"
+
+
+- geometry_type_name
+character. Geometry type name. Default: "GEOMETRY"
+
+
+- srs_id
+integer. Spatial Reference System ID. Must be defined in gpkg_spatial_ref_sys
table.
+
+
+- z
+integer. Default: 0
+
+
+- m
+integer. Default: 0
+
+
+
+ Value
+
+
+integer. 1
if table created or row inserted successfully, 0
otherwise.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/reference/gpkg_table.html b/reference/gpkg_table.html
index baa9d1f..874c370 100644
--- a/reference/gpkg_table.html
+++ b/reference/gpkg_table.html
@@ -184,7 +184,7 @@ 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()
diff --git a/sitemap.xml b/sitemap.xml
index 2405f53..ec68947 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -36,6 +36,9 @@
/reference/gpkg-features.html
+
+ /reference/gpkg-geometry-columns.html
+
/reference/gpkg-package.html