Returns the geometric center of a geometry or of a geometry set. The geometry must be one or a set of POINTS, POLYGON or MULTIPOLYGON.
1 geo.centroid
<geo.centroid ora_tol='ora_tol'>
<geometry_column /> *
</geo.centroid>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aora_tol | decimal | 0.05 | Tolerance. It is only used in oracle. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Egeometry_column | geometry | Geometric object. |
Example
Copy
<select> <columns> <geo.centroid ora_tol='0.005'>a.the_geom</geo.centroid> </columns> <from table='buildings' alias='a' /> <where> a.name = 'MACBA' </where> </select>