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

z function returns Nan when used with a 2d point geometry #37772

Closed
DelazJ opened this issue Jul 11, 2020 · 0 comments · Fixed by #38831
Closed

z function returns Nan when used with a 2d point geometry #37772

DelazJ opened this issue Jul 11, 2020 · 0 comments · Fixed by #38831
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@DelazJ
Copy link
Contributor

DelazJ commented Jul 11, 2020

In expression builder (I tested the expression preview, I didn't try to calculate values in a field):

  • z_min( geom_from_wkt( 'POINT ( 0 0 )' ) ) returns Null. Same for z_max.
  • z( geom_from_wkt( 'POINT ( 0 0 )' ) ) returns nan
  • z( geom_from_wkt( 'MULTIPOINT ( 0 0 , 1 5)')) returns null

Not sure that nan means a lot to most of us. Could be nice to instead display null.

@DelazJ DelazJ added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jul 11, 2020
@pblottiere pblottiere self-assigned this Sep 17, 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!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants