May 2017
Beginner to intermediate
328 pages
7h 17m
English
In our first example, we'll split a polygon (county boundary) using a line (river). We will use an ST_Split function for that.
This function accepts two arguments: a geometry to be split, which can be of the (Multi)Polygon or (Multi)LineString type, and a blade, which can be a LineString for polygons and LineStrings or a Point for lines:.

SELECT ST_Split( (SELECT wkb_geometry FROM multipolygons WHERE osm_id = '2417246'), (SELECT wkb_geometry FROM lines WHERE osm_id = '224461074'))
This yields a GeometryCollection, which isn't supported in most ...
Read now
Unlock full access