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

regression: impossible to paste polygon into newly created shapefile #19071

Closed
qgib opened this issue Jun 23, 2014 · 7 comments
Closed

regression: impossible to paste polygon into newly created shapefile #19071

qgib opened this issue Jun 23, 2014 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Jun 23, 2014

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 10672
Affected QGIS version: master
Redmine category:vectors
Assignee: Denis Rouzaud


Steps to reproduce:

  1. Create a new project, and add the attached polygon shapefiles (provinces.shp and rcaf_regions.shp)
  2. Turn rcaf_regions layer's edit mode on.
  3. On the provinces layer, select the polygon with PROV_NAME equating 'Kampong Thom' (it's the middle one to the right of the inner empty space)
  4. Copy the polygon
  5. Try and paste the polygon onto the rcaf_region layer, it will reject with the following message bar: "no features could be successfully pasted"

This is highly problematic, and works perfectly fine under QGIS 2.2.



Related issue(s): #24657 (relates)
Redmine related issue(s): 16758


@qgib
Copy link
Contributor Author

qgib commented Jun 23, 2014

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


I should have added that most polygons can be pasted onto the rcaf_region layer, but the provinces polygon named 'Kampong Thom' fails.

@qgib
Copy link
Contributor Author

qgib commented Jun 23, 2014

Author Name: Denis Rouzaud (@3nids)


  • assigned_to_id was configured as Denis Rouzaud

@qgib
Copy link
Contributor Author

qgib commented Jun 23, 2014

Author Name: Denis Rouzaud (@3nids)


The problem is that the feature is multipart but the destination layer is known as single part, so nothing can be paste.
I believe the problem is that shapefiles should always (?) be considered as multipart.

I am not sure where to handle this.

in QGisApp::editPaste: if layer is shape, force multi in conversion?


  • 7491 was configured as pasteshape.zip

@qgib
Copy link
Contributor Author

qgib commented Jun 23, 2014

Author Name: Denis Rouzaud (@3nids)


#1483

@qgib
Copy link
Contributor Author

qgib commented Jun 23, 2014

Author Name: Pedro Venâncio (Pedro Venâncio)


I confirm this also with lines / multilines.

Waiting for Denis PR be accepted and merged.

Thanks Denis!

@qgib
Copy link
Contributor Author

qgib commented Jun 24, 2014

Author Name: Martin Dobias (@wonder-sk)


Fixed in changeset "39eaff90975e533d0e71293511c5181f8ce7d0d2".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Jul 5, 2017

Author Name: Jürgen Fischer (@jef-n)


@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats) labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
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! Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant