Dms.cc::calc_min_or_secs() broken
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)
Resolution: |
→ later
|
Status: |
new → closed
|