brownag / gpkg

Utilities for the Open Geospatial Consortium (OGC) 'GeoPackage' Format in R
http://humus.rocks/gpkg/
Creative Commons Zero v1.0 Universal
18 stars 0 forks source link

dynamic GeoPackage file writing #3

Closed brownag closed 1 year ago

brownag commented 1 year ago

Creation of a geopackage object should collect or create all the required information to take any associated R data objects and user input and create a GeoPackage file. There is no mechanism to do the whole process currently, the user has to build a new file incrementally with gpkg_write(<object>, ...), possibly appending to an existing file.

Currently you can also create geopackage S3 objects that are not "backed up by" (or derived from) any file. This is not currently a useful thing to do, the object is really only "read only" by the time the R user sees it. No changes they make to the R object can be done to the geopackage without going through the SQLiteConnection.

I would like to have a gpkg_write(<geopackage>) method that will essentially figure out the sequence of layer writes, table updates etc. that are necessary to create a (possibly complex) GeoPackage directly from an R object (i.e. a list of layers)

brownag commented 1 year ago

This has all been folded into the geopackage() constructor in v0.0.5.