Questions tagged [gpkg]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
42 views

Saving raster layer from GeoPackage results in large GeoTIFF file

I have a GeoPackage file with a single raster layer and a total size of 0.5 GB that I want to convert to a GeoTIFF file. I imported the original .gpkg in QGIS and exported the one layer as a GeoTIFF, ...
1
vote
0answers
9 views

What is a good way to store a large (tiled) geo raster?

I have a large geotiff raster map (after compression 88 GB) as a series of 919 geotiff-tiles. How can I turn these into a practical file solution (e.g. one file) that allows me to efficiently work ...
0
votes
1answer
38 views

Export a vector layer in QGIS 3 processing script only as GPKG

I'would export from a processing script (QGIS 3) a vector layer as GPKG. I'm using self.addParameter(QgsProcessingParameterFileDestination(...)) to define the destination file. This method allows user ...
6
votes
2answers
172 views

Saving GPKG with style in PyQGIS

I have a function who uses a layer already styled using another function and saves it as a gpkg and I want to save the style in that gpkg: def saving_gpkg(styled_layer): options = ...
2
votes
1answer
36 views

Load data from GPKG incrementally in R

I need to process a GPKG file in R, but it's too large (50GB) to load the entire thing into memory at once. Is there any way to incrementally load the results? Right now we are loading it with a ...
1
vote
1answer
42 views

Reading zipped gpkg files (i.e. `*.gpkg.zip`) with Python

I have many large gpkg.zip files that I would like to read directly into Python (to then upload to BigQuery). I can unzip each, read with geopandas, then upload -- however, since unzipping triples the ...
1
vote
0answers
26 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. ...
3
votes
1answer
81 views

Inserting value to column which is not existing in input using ogr2ogr

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
32 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,...
2
votes
1answer
108 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
28 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
148 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
45 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
69 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
289 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
220 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
144 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 ...
2
votes
1answer
148 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
172 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
67 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
107 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/...
3
votes
1answer
256 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
59 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
646 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
55 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
268 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
710 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
450 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 ...