Example: SpheroidalDistance - Analytics Database - Teradata Vantage

Geospatial Data Types

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-08-30
dita:mapPath
qgk1628112272483.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
ghz1472251264557
lifecycle
latest
Product Category
Teradata Vantage™

The following two examples show how to use the SpheroidalDistance function to get the spheroidal distance between Madison (-89.39, 43.09) and Chicago (-87.65, 41.90):

   SELECT SYSSPATIAL.SpheroidalDistance( -89.39, 43.09, -87.65, 41.90,
                                         6378137, 298.257223563);
   SELECT SYSSPATIAL.SpheroidalDistance( -89.39, 43.09, -87.65, 41.90);