Calculates the cartesian distance between two geometric objects. The distance between two geometric objects is the distance between the closer points or
segments between both objects.
1 geo.distanceCartesian
<geo.distanceCartesian
ora_tol='ora_tol'
ora_unit='M|KM|CM|MM|MILE|NAUT_MILE|FOOT|INCH|SQ_KM...'
>
<geom1> *
<geom1 /> *
</geom1>
<geom2> *
<geom1 /> *
</geom2>
</geo.distanceCartesian>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aora_tol | decimal | 0.05 | Tolerance. Only used in oracle. | ||
Aora_unit | string | Unit of measurement.If not specified, Oracle will use the default unit of the SRID of the geometry. It is only used in oracle. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Egeom1 | geometry | Geometric object 1. | |||
Egeom1 | geometry | ||||
Egeom2 | geometry | Geometric object 2. | |||
Egeom1 | geometry |
Example
Copy
<select> <columns> <geo.distanceCartesian ora_tol='0.004' ora_unit='KM'> <geom1>a.the_geom</geom1> <geom2>a.the_geom</geom2> </geo.distanceCartesian> </columns> <from table='points' alias='a' > <join table='points' alias='b'> </join> </from> <where> a.id = 134 AND b.id = 24356 </where> </select>