#60 closed bug (fixed)
digitizing shapefile: REAL values are not stored properly
Reported by: | Owned by: | mhugent | |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | |
Component: | Digitising | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | Debian |
Platform Version: | ubuntu breezy | Awaiting user input: | no |
Description
- start a new shapefile
- add a REAL column
- draw line, put 100.1 into table
- stop editing, query the line
- you see that 100.099999999999994 is stored instead of 100.1
Maciek
Change History (4)
comment:1 by , 18 years ago
Owner: | changed from | to
---|
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This has to do with the formatting width and precision of the OFTReal field. For 0.8, i hardcoded this to a width of 32 characters and a precision of 3 digits behind the dot. For the long term it would be good to make both a user option.
Tested against gdal-1.3.2
comment:3 by , 17 years ago
Awaiting user input: | unset |
---|---|
Must Fix for Release: | → No |
Note:
See TracTickets
for help on using tickets.
Confirmed