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>
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>