Hi all, I resolved STREAMPIPES-131 and the result of the (geodetic) distance calculation is now more accurate. It is using now the GeographicLib [1] under MIT license.
GeographicLib is used in many other "Geo-Tools" like PostGIS or QGIS and now even in StreamPipes. For a deeper look in the functionality, start here [2] This is committed in the feature/geodesicCalc branch atm. Greetings Florian [1] https://geographiclib.sourceforge.io/ [2] https://geographiclib.sourceforge.io/scripts/geod-calc.html Am Samstag, den 16.05.2020, 20:00 +0200 schrieb Florian Micklich: > 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 > >
