Thomas Larsen Wessel via QGIS-User <[email protected]> writes:

> Update. I found out that it makes a difference whether I copy from one QGIS
> instance to another (if I have two qgis desktop instances running), or
> whether I copy between two layers in the same instance. At least in some
> cases, copying inside one instance will match field names, where as copying
> between instances will instead ignore naming and use attributes order only.
> I havent tested whether this is always the case (maybe it also depends on
> which provider or other variables).

I think you are blurring two meanings of "copy", and probably everyone
was expecting within qgis.

Also, you say "instances" and there's a difference between two project
windows in one process and two processes.  (I don't know if qgis can
operate two project windows.)

I suspect that "copy from one QGIS instance to another" is an X11 (or
perhaps other window system) operation.  As I understand it, the X11
clipboard is simply text.  I have never contemplated copying features
via the X11 instance, or expected that features could be pasted between
instances.  You might try pasting into a text editor and understand the
encoding.  Probably WKT2 or something like that.

When you copy/paste within QGIS, I would expect what is copied to be
richer, with columns having names.  I see this as the normal approach.

You might be able to understand this by reading the code, and seeing
what the copy operation does in terms of storing a feature within qgis,
and how that feature is mapped to text for the clipboard, and similarly
for paste.

If you are transferring features between datasets, I'd recommend having
both datasets in the same project, at least temporarily, to avoid using
the X11 clipboard.
_______________________________________________
QGIS-User mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to