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

classification keeps remembering a removed feature class #13755

Closed
qgib opened this issue Mar 31, 2011 · 4 comments
Closed

classification keeps remembering a removed feature class #13755

qgib opened this issue Mar 31, 2011 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Mar 31, 2011

Author Name: Richard Duivenvoorde (@rduivenvoorde)
Original Redmine Issue: 3696

Redmine category:symbology


when using unique classification, the removal of features from a certain class makes this class NOT go away when you re-classify the layer.

Reproduction:

  • open qgis and generate a fresh point-shapefile with one string attribute 'foo'
  • in editing mode digitize 3 features all with another value for foo (aaa, bbb, ccc)
  • now apply unique classification, you should see three classes
  • now remove one of the features using the edit/delete feature functionality in attribute-table view (ending up with only two features: aaa, bbb)
  • now reclassify the layer: ccc keeps coming up as a class/value
  • I have seen an example in which even restarting qgis this kept being the case (?????)

This happens in both 'new' and 'old' classification

I would see this as a bug, people using this classification as an legend in a layout will have non valid values in there legends

Or is there another explanation?
(my explanation? somewhere there is a caching mechanism which is not refreshed? (let's forget the restarting of qgis... don't know what that was....).

Tested with 1.6 on windows and in debian

@qgib
Copy link
Contributor Author

qgib commented Mar 31, 2011

Author Name: Marco Hugentobler (@mhugent)


From a quick test with new symbology, this seems to work ok with current trunk.

@qgib
Copy link
Contributor Author

qgib commented Mar 31, 2011

Author Name: Richard Duivenvoorde (@rduivenvoorde)


running 4f143c0 (SVN r15652) trunk here on ubuntu: still this problem

One thing: after saving the shapefile I also saved the project. (in real it was actually an excisting project).

can it be something with handles to the projectfile (which also holds the classification?)

@qgib
Copy link
Contributor Author

qgib commented Mar 31, 2011

Author Name: Richard Duivenvoorde (@rduivenvoorde)


Replying to [comment:2 rduivenvoorde]:

running 4f143c0 (SVN r15652) trunk here on ubuntu: still this problem

One thing: after saving the shapefile I also saved the project. (in real it was actually an excisting project).

can it be something with handles to the projectfile (which also holds the classification?)

reply to self:

sorry marco did not read your reply good enough. Indeed in trunk NEW symbology seems to work. OLD symbology not working.

IF this is the last 1.* version we can decide to leave it as is.... and spend energy on 2.* bugs ...

@qgib
Copy link
Contributor Author

qgib commented Nov 12, 2011

Author Name: Richard Duivenvoorde (@rduivenvoorde)


is working in new symbology, so future is saved :-)


  • pull_request_patch_supplied was configured as 0
  • status_id was changed from Open to Closed
  • resolution was configured as wontfix
  • assigned_to_id removed nobody

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers labels May 24, 2019
@qgib qgib added this to the Version 1.7.0 milestone 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! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant