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

Attributes Form gives Wrong value for $area #27854

Closed
qgib opened this issue Oct 5, 2018 · 7 comments
Closed

Attributes Form gives Wrong value for $area #27854

qgib opened this issue Oct 5, 2018 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms High Priority Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Oct 5, 2018

Author Name: Lene Fischer (@LeneFischer)
Original Redmine Issue: 20032
Affected QGIS version: 3.3(master)
Redmine category:forms


Using Geopackage setting 'Attributes form' to Text Edit Default value using $area and apply default value on update.
I get following result for different field types and for different versions

Int and Int64 gives failure

Version3.3 2aef195
If the field is an Int it gives NULL
If the field is decimal it gives eg. 5838,240008868463
If the field is an Int64 it gives 5838240008868463 same numbers but no decimal or round

Version 3.2 9b17680
If the field is an Int it gives 5838240008868463 same numbers but no decimal or round
If the field is decimal it gives eg. 5838,240008868463
If the field is an Int64 it gives NULL

When setting the Attributes form
Int64 and Decimal start as Text Edit and Int as Range


@qgib
Copy link
Contributor Author

qgib commented Oct 8, 2018

Author Name: Giovanni Manghi (@gioman)


For me on linux an Int64 returns null.
Why this was tagged a regression, works fine on 2.18?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 8, 2018

Author Name: Lene Fischer (@LeneFischer)


Regression from 3.2 to 3.3 sorry If I have misunderstood that ...


  • status_id was changed from Feedback to Open

@qgib
Copy link
Contributor Author

qgib commented Oct 9, 2018

Author Name: Giovanni Manghi (@gioman)


Lene Fischer wrote:

Regression from 3.2 to 3.3 sorry If I have misunderstood that ...

Hi Lene,
that is correct, is a regression. When is the case indicating since what version regressed helps us find the exact moment (in code) when the regression happened.

Anyway here on master (linux) if the field is an Int64 it gives NULL, so no difference with 3.2 (still a bug anyway).


  • category_id was changed from Edit widget to Forms

@qgib
Copy link
Contributor Author

qgib commented Oct 9, 2018

Author Name: Alessandro Pasotti (@elpaso)


I cannot reproduce on current master (or I didn't understand how to)


  • 13454 was configured as area.gif

@qgib
Copy link
Contributor Author

qgib commented Oct 23, 2018

Author Name: Loïc BARTOLETTI (@lbartoletti)


What are:

  • the CRS
  • the ellipsoid

Also, what are the area from measurement tools or postgis/spatialite st_area functions?

Can you send the geometry and maybe the project?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Dec 28, 2018

Author Name: Paolo Cavallini (@pcav)


Please give us feedback or close this issue. Thanks.

@qgib
Copy link
Contributor Author

qgib commented Jan 14, 2019

Author Name: Nyall Dawson (@nyalldawson)


  • resolution was changed from to no timely feedback
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Jan 14, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Forms Regression Something which used to work, but doesn't anymore labels 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! Forms High Priority Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant