Hi,<br><br>I'm not sure to understand your question.<br><br>But I think this query is quite good to clip all the polygons geometries of a table with a single geometry.<br><br>SELECT<br> ...<br> CASE <br> WHEN <br>
ST_GeometryType("geom")='ST_GeometryCollection' <br> THEN <br> ST_Multi(ST_CollectionExtract("geom", 3 )) <br> ELSE <br> ST_Multi("geom") <br>
END AS "geom" <br>FROM (<br> SELECT <br> ...<br> ST_Intersection("geom", ST_GeomFromEWKB(decode('...', 'hex'))) AS "geom" <br> FROM <br> "public"."table_to_clip" <br>
WHERE <br> ST_Intersects("geom", ST_GeomFromEWKB(decode('...', 'hex')))=true<br>) AS t__0 <br>WHERE <br> ST_GeometryType("geom") IN ('ST_Polygon', 'ST_MultiPolygon', 'ST_GeometryCollection')<br>
<br><br><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br><br>