Feature request #19694
Simplify Raster in GeoPackage
Status: | Open | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Rasters | ||
Pull Request or Patch supplied: | No | Resolution: | |
Easy fix?: | Yes | Copied to github as #: | 27519 |
Description
When exporting a raster layer you get the option to save to GeoPackage. The dialog however only work for a single raster in a new GeoPackage, unless you add two custom "create options".
If you don't, you will replace any data in a previously created GeoPackage.
The "Create options" you need to add are:
APPEND_SUBDATASET YES RASTER_TABLE LayerName
This will export/save the raster to a subdataset in the GeoPackage, without replacing any current layers/tables.
My feature request is that a "profile" for this is added to the dialog when GeoPackage is selected as export format (profile name: "Add raster as subdataset").
The profile should be added in the layer context menu "Export"/"Save as.." dialog, and in the "Raster" menu "Translate(Convert Format)" dialog (=same widget?).
I'm hoping this can be an easy fix for someone who knows what they are doing in the code.
Could it possibly be as simple as adding a "sBuiltinProfiles" for GeoPackage to the src/gui/qgsrasterformatsaveoptionswidget.cpp file?