Ticket #4399 (closed defect: fixed)
Error in OGRFastAtof
| Reported by: | larrybiehl | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | default | Version: | 1.7.3 |
| Severity: | normal | Keywords: | GML header |
| Cc: |
Description
The coordinates were not being read correctly in the gml headers of a jpeg2000 file from PLEIADES-DIMAPV2 data sets. 4.83808e+06 was being read as 4. Problem was traced to OGRFastAtof.
while(*p == '+'
*p == '-' (*p >= '0' && *p <= '9')
(*p == '.')
// Added by Larry Biehl 12/16/2011
(*p == 'e'
*p == 'E' *p == 'd' *p == 'D')) Looks to me like that a check needs to be include for '.' so that it will be included in the string that goes to atof. I am using 1.7.3 code but also did not find it in the 1.8.1 version of the file.
Change History
Note: See TracTickets for help on using tickets.Download in other formats:
