summaryrefslogtreecommitdiff
path: root/boost/geometry/algorithms/detail/envelope/box.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/algorithms/detail/envelope/box.hpp')
-rw-r--r--boost/geometry/algorithms/detail/envelope/box.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/boost/geometry/algorithms/detail/envelope/box.hpp b/boost/geometry/algorithms/detail/envelope/box.hpp
index 33b43da255..cf039a292a 100644
--- a/boost/geometry/algorithms/detail/envelope/box.hpp
+++ b/boost/geometry/algorithms/detail/envelope/box.hpp
@@ -4,8 +4,8 @@
// Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
-// This file was modified by Oracle on 2015, 2016, 2017.
-// Modifications copyright (c) 2015-2017, Oracle and/or its affiliates.
+// This file was modified by Oracle on 2015-2018.
+// Modifications copyright (c) 2015-2018, Oracle and/or its affiliates.
// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
@@ -124,7 +124,12 @@ struct envelope_box_on_spheroid
BoxOut& mbr,
Strategy const&)
{
- BoxIn box_in_normalized = detail::return_normalized<BoxIn>(box_in);
+ BoxIn box_in_normalized = box_in;
+
+ if (!is_inverse_spheroidal_coordinates(box_in))
+ {
+ box_in_normalized = detail::return_normalized<BoxIn>(box_in);
+ }
envelope_indexed_box_on_spheroid
<