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

@geometry_point_count always equal to 1 #25406

Closed
qgib opened this issue Nov 21, 2017 · 10 comments
Closed

@geometry_point_count always equal to 1 #25406

qgib opened this issue Nov 21, 2017 · 10 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

Comments

@qgib
Copy link
Contributor

qgib commented Nov 21, 2017

Author Name: Alexey T (@Xeenych)
Original Redmine Issue: 17509
Affected QGIS version: 3.4.4
Redmine category:symbology


I am using @geometry_point_count to style marker line feature.
Looks like this variable is always equal to 1.


@qgib
Copy link
Contributor Author

qgib commented Nov 21, 2017

Author Name: Giovanni Manghi (@gioman)


Is this a regression?


  • status_id was changed from Open to Feedback
  • easy_fix was changed from 1 to 0

@qgib
Copy link
Contributor Author

qgib commented Nov 21, 2017

Author Name: Alexey T (@Xeenych)


Giovanni Manghi wrote:

Is this a regression?

My english is not very good, I don't understand your question. Please clarify.

@qgib
Copy link
Contributor Author

qgib commented Nov 21, 2017

Author Name: Giovanni Manghi (@gioman)


Alexey T wrote:

Giovanni Manghi wrote:

Is this a regression?

My english is not very good, I don't understand your question. Please clarify.

did it worked as expected in a previous qgis release?

@qgib
Copy link
Contributor Author

qgib commented Nov 21, 2017

Author Name: Alexey T (@Xeenych)


Giovanni Manghi wrote:

Alexey T wrote:

Giovanni Manghi wrote:

Is this a regression?

My english is not very good, I don't understand your question. Please clarify.

did it worked as expected in a previous qgis release?

I haven't ever used any previous releases.
May be the attached image will provide some help.

The first line is marker line with "font marker". Data defined override is set to:
to_string( @geometry_point_num )
So every marker is printed as its number.

The second line is marker line with "font marker" and data override set to:
to_string( @geometry_point_count)
Instead of printing total count of markers, there is symbol 'A' or any other symbol chosen in font marker style. So data override doesn't work for this expression.
Output preview in expression string builder shows '1'.


  • 11720 was configured as test.jpeg

@qgib
Copy link
Contributor Author

qgib commented Nov 24, 2017

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2019

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


Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jan 26, 2019

Author Name: Alexey T (@Xeenych)


Tested in QGIS v3.4.4

First. If marker placment is set to "on wevery vertex"
@geometry_point_count shows total number of visible points
If marker placment set to "with interval"
@geometry_point_count shows just letter "A" or something else, chosen font's marker properties

Second.
This variables names are very confusing.
This variables show not the gemotry point count or number, but marker's count or number curerntly visible on canvas.

@qgib
Copy link
Contributor Author

qgib commented Jan 26, 2019

Author Name: Giovanni Manghi (@gioman)


Alexey T wrote:

Tested in QGIS v3.4.4

First. If marker placment is set to "on wevery vertex"
@geometry_point_count shows total number of visible points
If marker placment set to "with interval"
@geometry_point_count shows just letter "A" or something else, chosen font's marker properties

change the title and description accordingly, thanks.

Second.
This variables names are very confusing.
This variables show not the gemotry point count or number, but marker's count or number curerntly visible on canvas.

file a separate ticket.


  • version was changed from 2.18.14 to 3.4.4

@qgib
Copy link
Contributor Author

qgib commented Jan 26, 2019

Author Name: Nyall Dawson (@nyalldawson)


This is fixed for 3.4.5/3.6


  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Jan 26, 2019
@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 25, 2019
@Xeenych
Copy link

Xeenych commented Oct 26, 2019

Testet on 3.8.3 but @geometry_point_count always equal to 1

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

2 participants