Questions tagged [gpkg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
13 views

Publish high resolution drone data as gpkg with mapproxy

I am currently sitting in front of the problem of publishing high resolution drone data via mapproxy as wmts service. My approach is the following: Calculation of an orthophoto with OpenDroneMap. ...
2
votes
1answer
59 views

ogr2ogr : How to insert a value to a column which is not existing in the input

I am inserting geopackage to a table in the PostgreSQL if a certain value is not null with the following comment ogr2ogr -append -nln pgtablename -f PostgreSQL "PG:host=xx user=xx dbname=xx ...
1
vote
1answer
19 views

Problem with QFieldSync “offline editing” for more than one layer

I want to edit two layers with QField offline ("offline editing"): A polygon- and a line geometry (both stored as sep. layers in a gpkg, no multigeometries). While packing it with QFieldSync,...
1
vote
1answer
32 views

Geopackage and Domain values

Anyone know if would be possible to "convert" a File GDB with a set of features classes, which contain Domain values and Subtypes, in GPKG format (for editing purpose)? What I'm not ...
0
votes
1answer
22 views

One-liner to print first feature from GPKG

To make the findings from this GDAL issue more discoverable, I'm posting here as well. ogr2ogr has a -limit option. I couldn't find this option for ogrinfo, while ogrinfo has e.g. -where. I would ...
3
votes
1answer
60 views

Encoding issue in QGIS while exporting a layer with Cyrillic characters from gpkg to CSV

I need to export gpkg layer contained Cyrillic characters to a spreadsheet, e.g. csv file. I do that using Export -> Save Features As and pick UTF-8 encoding. I tried encodings: Cyrillic, different ...
1
vote
0answers
37 views

Faster read from GPKG to PostGIS

I am loading data from a GPKG to a PostGIS database using GDAL and have noticed that it is very slow even with using the normal faster tricks. I am currently using this command ogr2ogr -progress --...
0
votes
0answers
54 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
135 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
113 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
88 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
114 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
87 views

gdal_translate of Tiff to gpkg with only one band

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
58 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
83 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/...
2
votes
1answer
139 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
56 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 ...
7
votes
1answer
513 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
52 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
203 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
549 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
328 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 ...