[Qgis-user] Add new layer to existing GeoPackage file

Michael Treglia mtreglia at gmail.com
Wed Jun 13 10:37:30 PDT 2018


Hi Rick,

Here's what I've done albeit this isn't as smooth as directly doing "save
as" to the gpkg file...:
Save the file as another file type (or another gpkg file);
You can then drag layers from the Layers panel to the .gpkg file in the
Browser panel.

I hope that helps!
Mike

On Wed, Jun 13, 2018 at 1:25 PM, Rick Rupp <palousegeo at outlook.com> wrote:

> Hi,
>
> I want to use the “Save as” function on a GeoPackage layer to save a
> reprojected copy to a new layer in the same GeoPackage file. The function
> fails with an “Error: Cannot overwrite an OGR layer in place” message. The
> same thing happens if I try to save a subset of selected features from a
> layer to the same GeoPackage file. However, if I use the ogr2ogr function
> it works nicely. Is this the expected behavior? I am updating lab exercises
> for students in my beginning GIS class, and trying to switch from
> shapefiles to GeoPackage, so I am reluctant to send students to the command
> line early in their GIS training. I am working with QGIS 3.0.3 on Windows
> 10.
> Regards, Richard
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180613/f668d6f5/attachment.html>


More information about the Qgis-user mailing list