Hi all,
I rewrote the Distance Calculation and Static Distance Calculation PE'
a bit.
The changelog:
* Introducing the term geodesic calculation
* Added two new user parameters input fields.
* Number of decimal position for the calculation result
* output unit to choose from (Meter, Km, Foot or Mile)
* Created SpLengthCalulatior Class to handle all kind of length
measurement and calculation results. Included here the method from
the DistanceUtility.class and rewrite the return statement to fit to
the new SpLengthCalulatior object.
* Handle different Units via javax.measurement (license BSD) in the
SpLengthCalulatior constructor. This is the first attempt and feel
free to discuss this implementation and possible compatibility of
qudt!
* added maven dependencies to pom file
* Output-Strategy with two parameters: value und type of unit
* Completed documentation
* Added Icons
* In Static Distance Calculation added range check for user-input Lat
Lng values
* Added default values in Static Distance Calculation for faster
testing (will be removed later on)
I tested everything with the ISS Adapter and the Static Distance
Calculator.
ToDo's:
* set dynamic qudt output in output strategy depending of the user
choice
* improvement of Units-Symbol
The calculation result can be improved with another algorithm.
Therefore i created a Jira Ticket(STREAMPIPES-131).
These implementation can be found atm in the feature/geodesicCalc
branch.
Greetings
Florian