Opened 23 years ago

Closed 23 years ago

Last modified 23 years ago

#26 closed defect (later)

Dms.cc::calc_min_or_secs() broken

Reported by: warmerda@… Owned by: gpotts
Priority: high Milestone:
Component: Algorithms/Functionality Version: 0.2.0a-2
Severity: normal Keywords:
Cc:

Description

When 'Dms::calc_mins_or_secs(double, String::interator, String &) is called
with a decimal minutes values that works out to an "ires" value of less
than 10, the resulting string is wrong.  For instance,

test_geo = ossim.gpt( -44.5 * RAD_PER_DEG, -103.867833 * RAD_PER_DEG,  )
print test_geo.toDmsString()

Produces ``lat: 44 30.0S lon: 103 52.7W''
Instead of 103 52.07W as it should.

Basically, calling toString() on the ires value is inadequate ... you
need to generate the correct number of leading zeros.

Change History (2)

comment:1 by warmerda@…, 23 years ago

Garrett,

Do you know if this problems still exists?  Can it be closed out of Bugzilla?

comment:2 by jmoskow@…, 23 years ago

Resolution: later
Status: newclosed
bug last updated 10 months ago. closing.
Note: See TracTickets for help on using tickets.