I've a large polygon (table_a) that contains a smaller polygon (table_b). Now I want to split the larger polygon by the smaller polygon.
Unfortunately st_split(table_a.geom, table_b.geom)
isn't working (Error: Splitting a Polygon by a Polygon is unsupported).
Is there any way to split a polygon by a polygon using PostGIS?
Best Answer
You can't split a polygon with another polygon, but you can use
ST_Boundary
to extract the lines that make up a polygon, and then do the split. For example: