Vector-Algebra Algorithms to Draw the Curve of Alignment, the Great Ellipse, the Normal Section, and the Loxodrome
Abstract
:1. Introduction
2. Curve of Alignment
2.1. Properties
2.2. Algorithm
- Some ellipsoid is specified, such as a geodetic reference ellipsoid. This provides the length of the semi-major axis a and the value of the (first) eccentricity squared . (See Appendix A for the formulas and parameter values.)
- Two points of interest, A and B, not antipodal and on the ellipsoid are chosen. (Note: A and B are on the ellipsoid so their geodetic heights are zero.) Their coordinates are required in geocentric Cartesian coordinates: and . If given in geodetic longitude and latitude, they can be readily converted to geocentric (see Appendix A).
- Compute the vector v = B–A.
- The points of the straight-line segment from A to B are given in parametric form by for .
- Denote the conversion from geocentric Cartesian coordinates to geodetic longitude, latitude, and height by Then, . This conversion depends on a and . Define a variant of called such that , where, for some h, , i.e., returns the same as but with h set to zero.
- The curve of alignment is the curve for . In other words, the curve of alignment is the set of geodetic points given by the conversion of all the points p(t) from geocentric Cartesian to geodetic, setting their geodetic heights to zero.
- The vector v is equally well defined as v = A − B, but then . The same curve of alignment results either way.
- Pseudocode for the curve of alignment is given below. The algorithm assumes there is a function named XYZ_to_LBH that converts XYZ coordinates to geodetic longitude, latitude, and height LBH. This code is assumed to be written in a language with built-in vector algebra operators such as Mathematica or Matlab, or with a vector-algebra library such as NumPy.
3. Normal Sections
3.1. Properties
3.2. Algorithm
- Some ellipsoid is specified, such as a geodetic reference ellipsoid. This provides the length of the semi-major axis a and the value of the (first) eccentricity squared . (See Appendix A for the formulas and parameter values.)
- There is a point V on the Z-axis at a distance NA from A, where is the radius of curvature in the prime vertical at A. V’s geocentric coordinates are and VA is normal to the ellipsoid at A. The plane AVB contains VA and so AVB is the normal sectioning plane at A.
- A point of the straight-line segment (chord) from A to B is given in parametric form by for .
- Any scalar multiple of a vector from V to p(t) is in the normal sectioning plane defined by AVB. Let q denote a vector in the normal sectioning plane defined by where u is a positive real number.
- There is one value for u, say u*, such that the geodetic height of is zero for. The point is on the normal-section curve from A to B because is in the sectioning plane and the geodetic height of is zero. Notice that this is different from the curve of alignment: there, the geodetic height is set to zero, but here, a value for u must be found that produces a geodetic height of zero. Setting the height to zero does not work for normal sections because q is not generally normal to the ellipsoid. The points on an ellipsoid satisfy so must also. Define . Substituting in ’s components and recalling that gives:
- The normal section from A to B is the curve for . In other words, the normal section from A to B is the set of points given by the set of all the points converted from geocentric Cartesian to geodetic coordinates.
- The normal-section curve is parameterized by t, the same as the curve of alignment.
- In general, each t will have its own u*.
- The point on the normal section is given by .
- The vector q(0, u) is normal to the ellipsoid but no other vector for is also normal unless A and B have the same latitude, and then and are both normal (at A and B).
- Pseudocode for the normal section is given below, with the same assumptions as for the curve of alignment.
4. Great Ellipses
Properties
- The great ellipse is a planar curve.
- The great ellipse is the entire ellipse (a circle for the Equator). Every great ellipse contains A’s antipodal point by construction; however, the antipodal point cannot be used to define the great ellipse because, then, A, B, and V would be collinear. The algorithm below produces the shorter limb between A and B, which is consistent with the goal of this paper.
- The great ellipse from A to B is the same as the great ellipse from B to A.
- The Equator and the meridians are great ellipses. Any parallel other than the Equator is not a great ellipse (the great ellipse connecting two distinct points at the same latitude other than zero will pass poleward of their common parallel; see Figure 4).
5. Loxodromes
Properties
- The parallels and meridians are loxodromes.
- A loxodrome is a spiral if its starting azimuth is not a cardinal direction. In that case, loxodromes spiral infinitely many times around both Poles but do not reach them—yet, they have finite length. For example, for the WGS 84 ellipsoid and azimuth , the total length works out to be 28,289,831.17 m [12].
- The loxodrome from A to B is the same as the loxodrome from B to A.
- The loxodrome is not a planar curve in general.
- The loxodrome is defined if A and B are antipodal.
- Some ellipsoid is specified, such as a geodetic reference ellipsoid. This provides the length of the semi-major axis a and the value of the (first) eccentricity squared . (See Appendix A for the formulas and parameter values.)
- Two points of interest on the ellipsoid are chosen. Their coordinates are required in geodetic coordinates; e.g., and . If given in geocentric Cartesian coordinates, they can be readily converted to geodetic.
- Using the forward mapping equations (see above), convert A and B into Mercator coordinates and .
- Compute the vector v = b − a.
- The points of the straight-line segment from a to b are given in parametric form by for .
- Denote the inverse Mercator mapping equations (see Appendix A) by Then, .
- The loxodrome is curve for . In other words, the loxodrome is the set of points given by the conversion of all the points p(t) from Mercator grid coordinates to geodetic coordinates.
- The vector v is equally well defined as v = a − b, but then . The same loxodrome results either way.
- The inverse formula for latitude requires finding a fixed point. This can be cast as a root-finding problem by finding the latitude such that the difference of the input latitude minus the output latitude equals zero.
- Pseudocode for the loxodrome is given below. The reference-ellipsoid object RE is assumed to have a method ecc1 that returns the first eccentricity of the reference ellipsoid; otherwise, the same assumptions as above pertain.
6. Summary
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Appendix A
References
- Kallay, M. Defining edges on a round Earth. In Proceedings of the 15th International Symposium on Advances in Geographic Information Systems, ACM GIS 2007, Seattle, DC, USA, 7–9 November 2007. [Google Scholar] [CrossRef]
- Vincenty, T. Direct and inverse solutions of geodesics on the ellipsoid with application of nested equations. Surv. Rev. 1975, 23, 88–93. [Google Scholar] [CrossRef]
- Thomas, P.D. Conformal Projections in Geodesy and Cartography, Special Publication 251; U.S. Naval Oceanographic Office: Washington, DC, USA, 1979. [Google Scholar]
- Sjöberg, L.E. New solutions to the direct and indirect geodetic problems on the ellipsoid. Z. Für Geodasie Geoinf. Und Land Manag. 2006, 131, 35–39. [Google Scholar]
- Rollins, C.M. An integral for geodesic length. Surv. Rev. 2010, 42, 20–26. [Google Scholar] [CrossRef]
- Karney, C.F. Algorithms for geodesics. J. Geod. 2013, 87, 43–55. [Google Scholar] [CrossRef]
- Panou, G.; Korakitis, R. Geodesic equations and their numerical solution in Cartesian coordinates on a triaxial ellipsoid. J. Geod. Sci. 2019, 9, 1–12. [Google Scholar] [CrossRef]
- Karney, C.F. Geodesics on an arbitrary ellipsoid of revolution. J. Geod. 2024, 98, 4. [Google Scholar] [CrossRef]
- Thien, G. A Solution to the Inverse Problem for Nearly Antipodal Points on the Equator of the Ellipsoid of Revolution. Master’s Thesis, The Ohio State University, Columbus, OH, USA, 1967. [Google Scholar]
- Earle, M.A. A vector solution for navigation on a great ellipse. J. Navig. 2000, 53, 473–481. [Google Scholar] [CrossRef]
- Tseng, W.-K.; Guo, J.-L.; Liu, C.-P.; Wu, C.-T. The vector solutions for the great ellipse on the spheroid. J. Geod. 2012, 6, 103–109. [Google Scholar] [CrossRef]
- Meyer, T.H.; Rollins, C.M. The Direct and Indirect Problem for Loxodromes. Navigation 2011, 58, 1–6. [Google Scholar] [CrossRef]
- Deakin, R.E. The Curve of Alignment on an Ellipsoid; RMIT University, School of Mathematical & Geospatial Sciences: Melbourne, Australia, 2009. [Google Scholar]
- Deakin, R.E. The Normal Section Curve on an Ellipsoid; RMIT University, School of Mathematical & Geospatial Sciences: Melbourne, Australia, 2009. [Google Scholar]
- Snyder, J.P. Map Projections—A Working Manual; Professional Paper 1395p; U.S. Geological Survey: Washington, DC, USA, 1987; 1395p. [Google Scholar]
- Rollins, C.M.; Meyer, T.H. Conformal mapping at elevation with implications for low-distortion projections. Surv. Rev. 2024, in press.
- Claessens, S.J. Efficient transformation from Cartesian to geodetic coordinates. Comput. Geosci. 2019, 133, 104307. [Google Scholar] [CrossRef]
- Blewitt, G. An improved equation of latitude and a global system of graticule distance coordinates. J. Geod. 2024, 98, 6. [Google Scholar] [CrossRef] [PubMed]
- Panou, G. Cartesian to geodetic coordinates conversion on an oblate spheroid using the bisection method. Comput. Geosci. 2019, 133, 104308. [Google Scholar] [CrossRef]
- Karney, C.F. GeographicLib. 2015. Available online: http://geographiclib.sourceforge.net (accessed on 17 April 2024).
- Rollins, C.M.; Meyer, T.H. The effect of delta epsilon on XYZ coordinates. Surv. Rev. 2012, 44, 282–284. [Google Scholar] [CrossRef]
- Meyer, T.H. Introduction to Geometrical and Physical Geodesy: Foundations of Geomatics; ESRI Press: Redlands, CA, USA, 2010; 246p. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Meyer, T.H. Vector-Algebra Algorithms to Draw the Curve of Alignment, the Great Ellipse, the Normal Section, and the Loxodrome. Geomatics 2024, 4, 138-148. https://doi.org/10.3390/geomatics4020008
Meyer TH. Vector-Algebra Algorithms to Draw the Curve of Alignment, the Great Ellipse, the Normal Section, and the Loxodrome. Geomatics. 2024; 4(2):138-148. https://doi.org/10.3390/geomatics4020008
Chicago/Turabian StyleMeyer, Thomas H. 2024. "Vector-Algebra Algorithms to Draw the Curve of Alignment, the Great Ellipse, the Normal Section, and the Loxodrome" Geomatics 4, no. 2: 138-148. https://doi.org/10.3390/geomatics4020008
APA StyleMeyer, T. H. (2024). Vector-Algebra Algorithms to Draw the Curve of Alignment, the Great Ellipse, the Normal Section, and the Loxodrome. Geomatics, 4(2), 138-148. https://doi.org/10.3390/geomatics4020008