Comments (2)
Also, add support for this!
Starting with GDAL 3.7.1, it is possible to define a geometry column as the result of a Spatialite spatial function. Note however that this is an extension likely to be non-interoperable with other software that does not activate Spatialite for the SQLite3 database connection. Such geometry column should be registered into the gpkg_extensions using the gdal_spatialite_computed_geom_column extension name (cf GeoPackage Spatialite computed geometry column extension), like below:
CREATE VIEW my_view AS SELECT foo.fid AS OGC_FID, AsGBP(ST_Multi(foo.geom)) FROM foo; INSERT INTO gpkg_contents (table_name, identifier, data_type, srs_id) VALUES ('my_view', 'my_view', 'features', 4326); INSERT INTO gpkg_geometry_columns (table_name, column_name, geometry_type_name, srs_id, z, m) VALUES ('my_view', 'my_geom', 'MULTIPOLYGON', 4326, 0, 0); INSERT INTO gpkg_extensions (table_name, column_name, extension_name, definition, scope) VALUES ('my_view', 'my_geom', 'gdal_spatialite_computed_geom_column', 'https://gdal.org/drivers/vector/gpkg_spatialite_computed_geom_column.html', 'read-write');
from gpkg.
Closed by #12
from gpkg.
Related Issues (14)
- refactor `gpkg_write()` HOT 1
- consider use of R6 for geopackage HOT 1
- Add intro vignette
- connection with DBI HOT 2
- `.gpkg_process_sources()` should be more robust to various OGR sources HOT 2
- Transfer OGR sources incrementally that are too large to fit in memory HOT 2
- `gpkg_create_dummy_features()` upgrades and deprecation
- replace core GDAL functionality with {gdalraster} HOT 1
- refactor `dplyr.frame()` and `lazy.frame()` methods
- dynamic GeoPackage file writing HOT 1
- GeoPackage validation routine HOT 1
- beautify `print()` method
- in-place modification for `gpkg_connect()` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpkg.