Simplify the input geometry in base to the value of the indicated threshold. This function is useful when a geometry with less resolution than the original geometry is required. This function uses the algorithm of Douglas-Peucker.
This function can change the topology of the geometry and may result in invalid geometry.
In Postgres, the attribute pg_preserve='y' serves to ensure that the topologie is preserved.
1 geo.simplify
<geo.simplify
pg_preserve='y|n'
ora_tol='ora_tol'
threshold='threshold'
>
<geom1 /> *
</geo.simplify>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Apg_preserve | integer | n | It is only used in Postgres. If it is indicated pg_preserve='y', the topology of the geometry will be preserved. | ||
Aora_tol | decimal | 0.05 | Tolerance. It is only used in oracle. | ||
Athreshold | decimal | Gives a measure of the degree of the simplification of geometry. The greater it is, the greater will be the simplification. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Egeom1 |
Example
Copy
<select> <columns> <geo.simplify threshold='0.006'> <geom1>geometry_col_1</geom1> </geo.simplify>, <geo.simplify tol='0.004' pg_preserve='y' threshold='0.006'> <geom1>geometry_col_1</geom1> </geo.simplify> </columns> <from table='buildings' alias='a' > </from> <where> a.name = 'MACBA' </where> </select>