Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ST_SubDivideExplode(geom: Geometry, maxVertices: Integer)
SELECT ST_SubDivideExplode(ST_GeomFromText("LINESTRING(0 0, 85 85, 100 100, 120 120, 21 21, 10 10, 5 5)"), 5)
+-----------------------------+ |geom | +-----------------------------+ |LINESTRING(0 0, 5 5) | |LINESTRING(5 5, 10 10) | |LINESTRING(10 10, 21 21) | |LINESTRING(21 21, 60 60) | |LINESTRING(60 60, 85 85) | |LINESTRING(85 85, 100 100) | |LINESTRING(100 100, 120 120) | +-----------------------------+
+-------------------------------------------------------------+ |geometry | +-------------------------------------------------------------+ |LINESTRING(0 0, 85 85, 100 100, 120 120, 21 21, 10 10, 5 5) | +-------------------------------------------------------------+
select geom from geometries LATERAL VIEW ST_SubdivideExplode(geometry, 5) AS geom
Was this page helpful?