[postgis-devel] st_split(multipolygon,multiline)
Sandro Santilli
strk at keybit.net
Wed Jul 23 07:28:18 PDT 2014
On Wed, Jul 23, 2014 at 12:17:47PM +0200, RĂ©mi Cura wrote:
> Looking at the C code it seems that the split(polygon, line) case is dealed
> with by unioning the boundary of polygon and line with geos, then
> polygonizing with geos, then returning face that are not in polygon holes.
> (lwgeom_geos_split.c)
>
> Any reason it couldn't work with split(multi-polygon, multi-line) ?
I don't see any reason.
> I wrote a plpgsql wrapper to allow this but it is very slow because it
> successively split the input polygon with each part of multi_line.
A patch for doing that in C is welcome.
With regress tests, valgrind-clean unit tests and updated documentation :)
--strk;
More information about the postgis-devel
mailing list