Returns the length of a line on the indicated spheroide.
1 geo.lengthSpheroid
<geo.lengthSpheroid
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.lengthSpheroid>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aora_tol | decimal | 0.05 | Tolerance. It is only used in oracle. | ||
Aora_unit | string | Unit of measurement. If not specified, ORACLE will use the defaul unit of the SRID of the geometry. It is only used in oracle. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Egeom1 | geometry | Geometric objects type POINT. | |||
Egeom1 | geometry | ||||
Egeom2 | geometry | Geometric objects type POINT. | |||
Egeom1 | geometry | ||||
Espheroid | text | Definition of spheroide on which the length is calculated. |
Example
Copy
<select> <columns> <geo.lengthSpheroid ora_tol='0.005'> <geom1>a.the_geom</geom1> <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>