Questions tagged [gpkg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
35 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
43 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
22 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
39 views

How to create 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
36 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
48 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
49 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
39 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
307 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
46 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] "...
1
vote
1answer
101 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
340 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
151 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 ...