Modify

Opened 4 weeks ago

Closed 4 weeks 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 Changed 4 weeks ago by Klumbumbus

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));

comment:2 in reply to:  1 Changed 4 weeks ago by Klumbumbus

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 Changed 4 weeks ago by Don-vip

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.