Opened 14 years ago
Closed 14 years ago
#91 closed defect (fixed)
In Release, X64 mode, EPSG Object often returns NAN instead of real value.
Reported by: | Norm Olsen | Owned by: | Norm Olsen |
---|---|---|---|
Priority: | major | Milestone: | 3.0 |
Component: | Library | Version: | svn-trunk |
Keywords: | NAN | Cc: |
Description
This seems to occur onlyin Release mode, and the 64 bit platform. Occassionally, the EPSG Dataset object returns NAN for reals when a legitimate value should be returned. This has shown up using Test M of the ConsoleTestCpp program.
Note:
See TracTickets
for help on using tickets.
This issue was caused by the fact that records in the Unit of Measure table with the following codes did not have factor values: 9107, 9108, 9110, 9111, 9115-9121. Whenever a projection parameter with one of the codes as the UOM code was encountered, in the missing factors would produce zeros and when factor B and divided by a zero Factor C, you get a Nan. Why this only happened in 64 bit mode, I'll never know.