Returns the lineal distance between two points located lat/leng located on the indicated spheroid.
 

1 geo.distanceSpheroid

<geo.distanceSpheroid
    ora_tol='ora_tol'
    ora_unit='M|KM|CM|MM|MILE|NAUT_MILE|FOOT|INCH|SQ_KM...'
>
    <geom1> *
        <geom1 /> *
    </geom1>
    <geom2> *
        <geom1 /> *
    </geom2>
    <spheroid /> *
</geo.distanceSpheroid>
Example
Copy
<select>
    <columns>
        <geo.distanceSpheroid ora_tol='0.005'>
             <geom1>a.the_geom</geom1>
             <geom2>a.the_geom</geom2>
             <spheroid> 'SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]]'</spheroid>
        </geo.distanceSpheroid>
    </columns>
    <from table='points' alias='a' >
        <join table='points' alias='b'>
        </join>
    </from>
    <where>
        a.name = 'Barcelona' AND b.name = 'London'
    </where>
</select>