Class DistanceFunction

All Implemented Interfaces:
ADQLObject, ADQLOperand

public class DistanceFunction extends GeometryFunction

It represents the DISTANCE function of the ADQL language.

This function computes the arc length along a great circle between two points, and returns a numeric value expression in degrees.

Example:
DISTANCE(POINT('ICRS GEOCENTER', 25.0, -19.5), POINT('ICRS GEOCENTER', 25.4, -20.0))
In this example the function computes the distance between two points of coordinates (25, -19.5) and (25.4, -20) both expressed according to the ICRS coordinate system with GEOCENTER reference position.

Version:
1.4 (06/2015)
Author:
Grégory Mantelet (CDS;ARI)