Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying features as WKT or JSON doesn't work from attribute tables #38857

Closed
y-vasyunin opened this issue Sep 18, 2020 · 1 comment
Closed

Copying features as WKT or JSON doesn't work from attribute tables #38857

y-vasyunin opened this issue Sep 18, 2020 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers

Comments

@y-vasyunin
Copy link

Tested on a clean profile with a simple shape file, attached to this report.

Describe the bug

In the previous versions of QGIS, as I remember, when I selected a row in an attribute table and pressed CMD-C, I copied all attributes of the feature with WKT coordinates. Now it doesn't work: after pressing CMD-C, you get only a value from one cell, even if the whole row is highlighted. However, I should notice that copying the feature from a map canvas works and allows getting textual attributes with WKT coordinates.

How to Reproduce

  1. Add a vector layer to your project.
  2. Open its attribute table.
  3. Select a feature so that the whole row is highlighted
  4. Press CMD-C to copy the feature.
  5. Get a single cell value instead of complete attributes of the feature.

qgis

  • CMD-C executed in the attribute table (№1 in the picture) copies just a cell value 43.
  • CMD-C executed in the map canvas (№2), after the feature was selected by a "Select feature" tool, gives the following output:
wkt_geom	fid	name	category	note
MultiPoint ((-71.81940369994404705 -12.99918079999627629))	43	Lambrampata	big	

QGIS and OS versions

QGIS version | 3.14.15-Pi | QGIS code revision | d5114d2

Compiled against Qt | 5.12.3 | Running against Qt | 5.12.3
Compiled against GDAL/OGR | 2.4.1 | Running against GDAL/OGR | 2.4.1
Compiled against GEOS | 3.7.2-CAPI-1.11.2 | Running against GEOS | 3.7.2-CAPI-1.11.2 b55d2125
Compiled against SQLite | 3.28.0 | Running against SQLite | 3.28.0
PostgreSQL Client Version | 11.3 | SpatiaLite Version | 4.3.0a
QWT Version | 6.1.4 | QScintilla2 Version | 2.11.1
Compiled against PROJ | 5.2.0 | Running against PROJ | Rel. 5.2.0, September 15th, 2018
OS Version | macOS 10.15
Active python plugins | QuickOSM; zoom_level; profiletool; quick_map_services; GeoCoding; QuickWKT; Qgis2threejs; OSMDownloader; lockzoom; valuetool; processing; db_manager

Additional context

My attribute table is in a dock mode.
2020-09-18 qgis-bug-copy-as-wkt.zip

@y-vasyunin y-vasyunin added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Sep 18, 2020
@uclaros
Copy link
Contributor

uclaros commented Sep 18, 2020

This is the same as #37503 and should be fixed with #38810
You can use the copy selected rows to clipboard icon on the attribute table until you have a version that includes the fix.

@gioman gioman added the Feedback Waiting on the submitter for answers label Sep 18, 2020
@gioman gioman closed this as completed Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers
Projects
None yet
Development

No branches or pull requests

3 participants