Commit Graph

8536 Commits

Author SHA1 Message Date
Adeel Ahmad
4d39eae2b6
[util] Add BOOST_GEOMETRY_ASSERT in series expansion and normalization function
Modified functions are:
- evaluate_coeffs_C3x
- normalize_values
2018-06-26 17:07:59 +05:00
Adeel Ahmad
9c96bec2bf
[util] Avoid passing array size using std::vector
Previously, the array size was passed in as a
separate parameter.
2018-06-26 13:20:12 +05:00
Yaghyavardhan singh khangarot
3019282634 [algorihtms] Updated frechet_distance.hpp 2018-06-26 00:47:57 +05:30
Adeel Ahmad
06eb057fa9
[formulas] Use assignment operator on the same line for consistency
Other changes include the update of series expansion function
calls, as the template arguments are reversed.
2018-06-25 18:44:37 +05:00
Adeel Ahmad
19f06fa04e
[util] Reverse template argument order for series expansion functions
In some cases, this allows the caller to ignore the CT template
argument, as it is deduced from the argument list.
2018-06-25 18:39:43 +05:00
Adeel Ahmad
cc7e9e05c1
[formulas] Use namespace alias se for series_expansion 2018-06-25 17:59:32 +05:00
Adeel Ahmad
dedccdbdae
[formaulas][util] Define coefficient containers for computing series expansions
The coefficient containers are defined as structs in
series_expansion.hpp file. They allow the caller to
compute expansions without specifying the size
for the output array.
2018-06-25 17:19:44 +05:00
Brian Kuhl
3ddc84a852 change <proj to fully qualified <boost::geometry::srs::par4::proj
to avoid confusing clang when compiling with the Dinkum STL
which has inline proj() in global namespace
2018-06-24 23:05:58 -04:00
Brian Kuhl
6c745b595f Change <host-os> to <target-os> to support cross-compilation 2018-06-24 23:02:58 -04:00
Yaghyavardhan singh khangarot
95218f3a17 [algorihtms] Extended algorihtm for point-MultiPoint and Multi-Point 2018-06-24 05:02:28 +05:30
Yaghyavardhan singh khangarot
495f82d9c8 Extended Hausdorff Distance for MultiLinestring_MultiLinestring 2018-06-23 23:40:08 +05:30
Yaghyavardhan singh khangarot
9dae6ec79b [algorithms] Using Linestrin_Linestring() for Linestrin_MultiLinestring 2018-06-23 04:28:04 +05:30
Adeel Ahmad
1972bcda3e
[formula][util] Pass boost::array to series expansion functions
Using boost::array we don't have to explicitly provide
the template parameters.
2018-06-22 19:26:27 +05:00
Yaghyavardhan singh khangarot
b78200f78e [algorithms] Updated Copyright 2018-06-21 22:48:00 +05:30
Yaghyavardhan singh khangarot
1e16e2937e [algorithms] Extending Hausdorff Distance for Linestring and MultiLinestring 2018-06-21 22:35:10 +05:30
Adam Wulkiewicz
8eee20af4d
Merge pull request #492 from awulkiew/fix/pow
Add math::pow(), use it in geo area formula and projections.
2018-06-21 14:29:07 +02:00
Adam Wulkiewicz
f824763cb4 [formulas][srs][util] Add math::pow(), use it in geo area formula and projections. 2018-06-20 22:56:52 +02:00
Adam Wulkiewicz
53ff12ae4c
Merge pull request #489 from vissarion/feature_direct_formulas
Add direct formulas
2018-06-20 20:16:56 +02:00
Adeel Ahmad
6d0720b5ae
[formulas] Ensure reduced length and geodesic scale are computed in canonical form 2018-06-20 21:32:41 +05:00
Adeel Ahmad
02577bda55
[formulas] Use midpoint of bracket when value lies outside of range 2018-06-20 21:31:18 +05:00
Yaghyavardhan singh khangarot
2d9e66cbac Updating Frechet Distance and Hausdorff Distance 2018-06-20 15:25:11 +05:30
Adeel Ahmad
ead0b188f9
[formulas] Update bracketing values in Newton's method 2018-06-19 20:26:49 +05:00
Adeel Ahmad
2ddad45616
[util] Move difference_angle function to normalize_spheroidal_coordinates.hpp 2018-06-19 18:11:17 +05:00
Vissarion Fysikopoulos
25ce113de1 [formulas] Use std pow in are formulas 2018-06-19 13:07:53 +03:00
Vissarion Fysikopoulos
4dacbfa2d2 [formulas] Use pass by reference in area formula functions 2018-06-19 12:06:03 +03:00
Adeel Ahmad
490b4df943
Merge branch 'feature/geodesic_direct' into feature/karney_inverse
Conflicts (resolved):
	include/boost/geometry/util/math.hpp
2018-06-19 10:05:16 +05:00
Yaghyavardhan singh khangarot
2bf85f4c23 Adding Frechet Distance And Haudorff Distance algorithms 2018-06-18 20:18:54 +05:30
Vissarion Fysikopoulos
10b340e89e [formulas] Call to pow function with both arguments having the same type 2018-06-18 16:33:31 +03:00
Adeel Ahmad
78411f63c8
[doc][util][formulas][test] Add copyright information in updated files 2018-06-18 18:05:11 +05:00
Vissarion Fysikopoulos
12f7a2239b [formulas] Add coordinates and reverse azimuth flags to spherical direct formula 2018-06-18 14:31:45 +03:00
Vissarion Fysikopoulos
738c0da0e2 [formulas] Add missing include file needed by spherical formulas 2018-06-18 14:13:36 +03:00
Vissarion Fysikopoulos
cc2ded01ee [formulas] [tests] Change thomas direct interface 2018-06-18 14:08:58 +03:00
Vissarion Fysikopoulos
88469892dd [formulas] Rename elliptic_meridian_arc formula to meridian 2018-06-18 12:52:05 +03:00
Vissarion Fysikopoulos
c1299d7a32 [formulas] [tests] Add revarse_azimuth and quantities computation to direct meridian formula plus tests 2018-06-18 12:03:13 +03:00
Adeel Ahmad
2c7a29e7dc
[formulas][util] Improve code formatting to conform with guidelines 2018-06-15 18:52:30 +05:00
Adeel Ahmad
318a61dce0
[formulas] Use updated functions for normalization 2018-06-15 18:20:01 +05:00
Adeel Ahmad
d591d7a7bb
[util] Use existing normalize_spheroidal_coordinates class for normalizing an angle
- This should normalize the given angle in range (-180, 180].
- The function normalize is also moved from math.hpp to
normalize_spheroidal_coordinates.hpp where it is renamed
to normalize_values
2018-06-15 18:14:17 +05:00
Vissarion Fysikopoulos
bc3189f9fd [formulas] [tests] Interface for direct meridian formula and tests 2018-06-15 10:25:05 +03:00
Adeel Ahmad
06fc06dc7f
[formulas] Add function lambda12 to regulate bracketing range in Karney inverse 2018-06-14 13:42:44 +05:00
Adeel Ahmad
642a84c551 Merge branch 'feature/geodesic_direct' into feature/karney_inverse 2018-06-14 13:34:29 +05:00
Adeel Ahmad
943672bd3a
[formulas] Use template argument CT instead of double
This change is made in Karney's direct method.
2018-06-14 13:27:33 +05:00
Vissarion Fysikopoulos
d04c621150 [formulas] Return 0 in horner's rule special case of empty input 2018-06-14 10:30:10 +03:00
Adeel Ahmad
2aac4027aa Merge branch 'feature/geodesic_direct' into feature/karney_inverse 2018-06-14 11:54:09 +05:00
Vissarion Fysikopoulos
4c4a91f3b4 [formulas] Add quarter meridian formula for spheroids 2018-06-13 13:58:52 +03:00
Adeel Ahmad
d11b7160b2
[formulas] Fix calculation of t for finding the geodesic scale (M12) 2018-06-13 12:26:56 +05:00
Adeel Ahmad
15d5cd6281
[formulas] Perform normalization on starting guess if it passes the sanity check 2018-06-12 18:32:26 +05:00
Adeel Ahmad
2bde1c119a
[formulas] Solve the astroid equation for inverse problem
For details, please refer to Eq. (65) in,
Geodesics on an ellipsoid of revolution, Charles F.F Karney,
https://arxiv.org/abs/1102.1215
2018-06-12 18:27:29 +05:00
Vissarion Fysikopoulos
97fa9c177f [tests] Adding tests for spherical and thomas 1st order direct formulas 2018-06-12 16:00:09 +03:00
Vissarion Fysikopoulos
afb575fbf5 [tests] Add tests for meridian direct formula 2018-06-12 15:52:58 +03:00
Vissarion Fysikopoulos
ccd9edff63 [formulas] [strategies] Thomas first order direct formula 2018-06-12 15:42:34 +03:00