[postgis-users] How can I split a polyline?
amitkulz at yahoo.com
Tue Mar 7 08:46:09 PST 2006
On 3/7/06, Robert Burgholzer <rburghol at chesapeakebay.net> wrote:
> An possibly:
> geometryN(geometry, integer)
> for extracting sub-geometries in a true multi-line.
My bad. Sorry, I meant to paste geometryN but NumPoints came about, the
copy paste operation got awry!
Fay, here is the loop you can build upon
max_limit := NumGeometries(collect_polys);
IF collect_polys IS NULL OR max_limit <= 0 THEN
WHILE i <= max_limit LOOP
collect_polygons[i] := GeometryN(collect_polys, i);
i := i + 1;
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the postgis-users