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

split feature - Bug in copy attributes #11163

Closed
qgib opened this issue May 23, 2008 · 3 comments
Closed

split feature - Bug in copy attributes #11163

qgib opened this issue May 23, 2008 · 3 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 May 23, 2008

Author Name: beltegeuse - (beltegeuse -)
Original Redmine Issue: 1103

Redmine category:vectors
Assignee: beltegeuse -


Hi all,
I use QGIS for one month and i think it's a good soft but there is a problems with the split feature.
Explain :

  1. You have a feature with attribute and id (ex : 3660)

  2. You split these feature so you have two features. (The original feature with id = 3660 and the new feature id = -1).

  3. You split the new feature (id = -1) so we have three features (id : [3660,-1,-2]).

  4. You split one once again the feature (id = -1) so you get a feature with the id is -4. You have 4 features.

=> And when your commit change, your feature (old id = -3) have no attribute.
[[ScreenShot]] :


@qgib
Copy link
Contributor Author

qgib commented Jun 4, 2008

Author Name: beltegeuse - (beltegeuse -)


it's link with [[QgsGeometryMap]]. [[QgsGeometryMap]] bug when featureId is negative. To have a different issue :

In qgsvectorlayer.cpp :
in splitfeature fucntion :
remplace :

mChangedGeometries.insert(select_it->featureId(), *(select_it->geometry()));

by :

if(select_it->featureId()<0)
{
   
}
else
{
 mChangedGeometries.insert(select_it->featureId(), *(select_it->geometry()));
}


  • status_id was changed from Open to In Progress

@qgib
Copy link
Contributor Author

qgib commented Jun 5, 2008

Author Name: beltegeuse - (beltegeuse -)


  • resolution was changed from to fixed
  • status_id was changed from In Progress to Closed

@qgib
Copy link
Contributor Author

qgib commented Aug 21, 2009

Author Name: Anónimo (Anónimo)


Milestone Version 1.0.0 deleted

@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 24, 2019
@qgib qgib closed this as completed May 24, 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