Modify

Opened 5 years ago

Closed 5 years ago

#18068 closed enhancement (fixed)

reduce number of decimal places to 5 [patch]

Reported by: Klumbumbus Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin imagery-xml-bounds Version:
Keywords: Cc:

Description

Currently it produces 7 decimal places which is useless. By rounding to 5 decimal places the maximum error is still <1m if I'm correct which is enough for imagery bounds. And in ImageryCompare we round to 5 decimal places anyway.

Attachments (0)

Change History (3)

comment:1 by Klumbumbus, 5 years ago

I already tried it by removing two ## in this line in ComputeBoundsAction.java which works but removes also ending zeros which is not fine.

protected static final DecimalFormat DF = new DecimalFormat("#0.#######", new DecimalFormatSymbols(Locale.UK));

in reply to:  1 comment:2 by Klumbumbus, 5 years ago

Summary: reduce number of decimal places to 5reduce number of decimal places to 5 [patch]

Replying to Klumbumbus:

removes also ending zeros which is not fine.

Ah, no it already removes ending zeros with the current build, I thought it doesn't. So the patch is probably fine.

comment:3 by Don-vip, 5 years ago

Resolution: fixed
Status: newclosed

Fixed in [o35100:35101]. Thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.