Questions tagged [gpkg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Using Clip on data from a GPKG results in empty result set - WARNING 000117

I'm trying to Clip the contents of a GPKG file (geodata.nationaalgeoregister.nl/brpgewaspercelen/extract/2020-concept/brpgewaspercelen.zip). I select the feature from a different layer as to reduce ...
2
votes
1answer
46 views

How to export a table in a geopackage

I'm trying to export a simple PostGIS table loaded in QGIS to a geopackage file. Here's an example: options = QgsVectorFileWriter.SaveVectorOptions() options.driverName = "GPKG" options....
2
votes
1answer
39 views

Importing existing .gpkg files to create new Geopackage layer using QGIS

I'm a new QGIS user running 3.14.0 on a Mac with Mojave 10.14.6. While following along with this tutorial (https://www.youtube.com/watch?v=kCnNWyl9qSE), I reached around the 22 minute mark and ...
1
vote
0answers
45 views

QGIS 2.14.9 refuses to open GeoPackage file

I tried to open in QGIS 2.14.9 a .gpkg file but this action resulted in an error message stating that the file is not a valid or recognised data source. However, QGIS includes support for the ...
1
vote
1answer
79 views

Saving output from splitvectorlayer processing as shapefile with PyQGIS

I'm working on a plugin wich works on both QGIS 2 and QGIS 3. This plugin can perform a qgis:splitvectorlayer if the end user wants to. As .gpkg is the default format in QGIS 3 and i don't want end ...
0
votes
0answers
34 views

gdal_translate of Tiff to gpkg with only one band and preserving of the nodata

I try to use gdal_translate in my windows command prompt to convert a single band .tif raster to a single band .gpkg. gdal_translate -of GPKG example.tif example.gpkg I always get a .gpkg with four ...
0
votes
1answer
48 views

Creating a vector layer from loaded layer from GeoPackage

Firstly, I load layers from gpkg (GeoPackage). Secondly, I need to create a vector layer from one loaded layer which is named stops. Second point I cant do it, because I need to mark a column, that ...
0
votes
2answers
58 views

GDAL without GPKG in Ubuntu 19.10

I'm using Ubuntu 19.10 and I've just installed QGIS 3.10 using this lines in console: #add lines sudo nano /etc/apt/sources.list deb https://qgis.org/ubuntu-ltr eoan main deb-src https://qgis.org/...
0
votes
0answers
69 views

Read (and write) SVG from Geopackage with QGIS

There is the possibility to save the style of a layer in a geopackage: Layer.saveStyleToDatabase This style can be read by QGIS without additional code. But is there a way for QGIS to read SVG ...
2
votes
0answers
54 views

Complex parametrized string to export gpkg in Python [closed]

I'm trying to write a Python script that does a process (in this case a buffer) iteratively. The input layer is always the same but, in each iteration, the name of the output file must change and It ...
0
votes
0answers
54 views

QT Designer widget add gis data

Is there some way for QT Designer to browse for only GIS data, much like the QGsFileWidget. I need the user to be able to select only .shp, .sqlite, and features in .gdb or .gpkg files. There used ...
6
votes
1answer
381 views

Creating gpkg with many layers using ogr2ogr

I am trying to merge many shapefiles into a single gpkg using ogr2ogr (version 3.0.2). The command I am using is: ogr2ogr dst.gpkg src.shp -nln layerOne ogr2ogr dst.gpkg src.shp -nln layerTwo BUT ...
1
vote
1answer
50 views

How to homogenize NA values within a .gpkg from R

I have created an SpatialPointsDataFrame in R with some data. Here is the outputs from R: > class(Fotos) [1] "SpatialPointsDataFrame" attr(,"package") [1] "sp" > class(Fotos$Azimuth) [1] "...
2
votes
1answer
152 views

Write layer style .qml as predefined within a gpkg using R

I have this code to export a layer (Pbm) to a gpkg called "Atlas": writeOGR(Pbm, paste0(normalizePath(OutputFolder),'\\', "Atlas.gpkg"),"Atlas", driver="GPKG", encoding = "UTF-8", ...
7
votes
1answer
440 views

Multi-User offline edit synchronization using GPKG

I have been trying to find an article like http://postgis.net/workshops/postgis-intro/history_tracking.html that explains how I can do the following with a GPKG (ideally in QGIS) Sync edits made on ...
0
votes
1answer
218 views

GDAL Delete geopackage layer

This seems like it ought to be straightforward: from osgeo import gdal gpkg = gdal.OpenEx('path_to_gpk',gdal.OF_VERBOSE_ERROR,allowed_drivers=['GPKG']) error = gpkg.DeleteLayer(0) After running this ...