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

Shape file field precision includes the . when saving, but not when editing in the attribute table #14920

Closed
qgib opened this issue Mar 13, 2012 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Mar 13, 2012

Author Name: Alister Hood (@AlisterH)
Original Redmine Issue: 5173
Affected QGIS version: master
Redmine category:data_provider


e.g. if an attribute field in a shapefile has precision = 2, when I edit it I can input values like 2.12, but when I save the layer this is rounded to 2.1

Note: I am using GDAL 1.9.0 if that is relevant.


Related issue(s): #15139 (relates), #22032 (relates)
Redmine related issue(s): 5546, 14019


@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was configured as Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented Sep 16, 2012

Author Name: Alister Hood (@AlisterH)


Also see comment by Christine at #15139

@qgib
Copy link
Contributor Author

qgib commented Jun 28, 2014

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


  • fixed_version_id was changed from Version 2.0.0 to Future Release - Lower Priority

@qgib
Copy link
Contributor Author

qgib commented Dec 8, 2015

Author Name: Médéric RIBREUX (Médéric RIBREUX)


Hello, bug triage...

I can't reproduce it on QGIS 2.13 master (have set a decimal field of size 3 and precision 2).

Can you confirm this ?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Dec 13, 2015

Author Name: Alister Hood (@AlisterH)


Yes, it is pretty much fixed.
There is a problem with a corner case which would perhaps be best filed as a new issue:

A) QGIS allows me to create a column with precision = length. I'm not sure if this itself is a bug, but it then behaves strangely with that column.
B) if I create a field with precision = length = 2 I can save either three digits before the decimal point or two after it (is this a bug or a feature of the shapefile format? Perhaps it is related to Christine's comment at #15139)
C) but the gui lets me put in a lot more digits both before and after the decimal point.
D) and even if I save the edit I can't see the "rounding" that occurs unless I reopen the attribute table.

@qgib
Copy link
Contributor Author

qgib commented Dec 20, 2015

Author Name: Giovanni Manghi (@gioman)


Alister Hood wrote:

Yes, it is pretty much fixed.
There is a problem with a corner case which would perhaps be best filed as a new issue

yes please, thanks!


  • status_id was changed from Feedback to Closed
  • resolution was changed from to fixed/implemented

@qgib
Copy link
Contributor Author

qgib commented Dec 20, 2015

Author Name: Alister Hood (@AlisterH)


#22032

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 24, 2019
@qgib qgib added this to the Future Release - Lower Priority 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! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant