[postgis-users] Intersecting lines to Polygons
Stephen V. Mather
svm at clevelandmetroparks.com
Mon Mar 11 06:59:19 PDT 2013
Depending on how your lines are constructed, you might also look to ST_Union or ST_Node to create the nodes for overlapping lines, which you will likely need, then feed that into ST_Polygonize or ST_BuildArea.
Best,
Steve
[http://sig.cmparks.net/cmp-ms-90x122.png] Stephen V. Mather
GIS Manager
(216) 635-3243 (Work)
clevelandmetroparks.com<http://www.clemetparks.com>
________________________________
From: postgis-users-bounces at lists.osgeo.org [postgis-users-bounces at lists.osgeo.org] on behalf of Nicolas Ribot [nicolas.ribot at gmail.com]
Sent: Monday, March 11, 2013 9:29 AM
To: PostGIS Users Discussion
Cc: PostGIS Users Discussion
Subject: Re: [postgis-users] Intersecting lines to Polygons
Hi,
Look at st_polygonize() and st_buildArea()
Topology can also be of a great help here.
Nicolas
On 11 March 2013 13:13, chlists <chlists at me.com<mailto:chlists at me.com>> wrote:
Hi list,
I'd like to combine a global compilation of line data which intersect into a global polygon dataset. ArcGIS has a tool called 'Features to Polygons' which does this in one step for which I have yet to find an equivalent in PostGIS. ST_MakePolygon and ST_Polygon require closed linestrings. I have simple line features which randomly connect like in the attached screenshot. There are no attributes which describe which polygon a single linestring belongs to. Can this be done easily or does this involve building topologies? Any pointers much appreciated.
Thanks,
Chris
_______________________________________________
postgis-users mailing list
postgis-users at lists.osgeo.org<mailto:postgis-users at lists.osgeo.org>
http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20130311/34185b5e/attachment-0001.html>
More information about the postgis-users
mailing list