Oracle - Split polygon with line

Viewed 370

How to cut a polygon with a line? I'm looking for an Oracle's function that can return polygons.

For example: If I have a square and a line going thru the middle, I would like to get the two polygons of the rectangles.

Looking for something like:

SELECT SDO_UTIL.SPLIT_POLYGON(POLYGON, LINE) FROM DUAL

Result can be wkt or an oracle geometry:

POLYGON ((-71.123456 45.123456, ....))
POLYGON ((-72.123456 46.123456, ....))
0 Answers
Related