[postgis-devel] [PostGIS] #400: ST_SplitGeometry
PostGIS
trac at osgeo.org
Thu Mar 11 12:37:37 PST 2010
#400: ST_SplitGeometry
----------------------+-----------------------------------------------------
Reporter: strk | Owner: strk
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version:
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by strk):
Alright, here's the contract:
- Will split a poly by a line, a line by a line and a line by a point
- Will always return a COLLECTION of at most 2 elements: first element is
what is left after the cut, second element is what was cut
- When you cut a line using a point, what's left is the initial portion of
the line (from start to point)
- When you cut a poly or a line using a line what's left is arbitrarly
taken as the cut-part which goes to the *left* of the cut line. This is
for assonance with the word "left"
For now there's no support for multi-part geometries requiring cutting,
but given
this contract it might not be too hard to support (every non-cut geometry
would go to the "left" part).
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/400#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list