[postgis-users] Split multi-linestrings

Andrea Peri aperi2007 at gmail.com
Wed Aug 19 03:50:31 PDT 2009


Hi,

I have some troubles try-ing to split from a MultiLineString to LineStrings.

I try this code with postgis 1.4.0:

ST_GeometryN(geom,generate_series(1,ST_NumGeometries(geom)))

But it return all LineStrings as simple segments with 2 only vertexs.

It seem the ST_NumGeometries(geom) return the count of all segments , not
the parts.

There a function that count the num of parts ?

Many thx,

Andrea Peri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20090819/5de7143a/attachment.html>


More information about the postgis-users mailing list