[postgis-devel] Re: addPoint(line, point, [position])

Paul Ramsey pramsey at refractions.net
Thu Oct 28 08:53:26 PDT 2004


I think it's a good idea, but I don't know how useful people will find 
it. Poll the -users perhaps. Constructors we definitely needs, 
incremental stuff, harder to say.
Paul

On 28-Oct-04, at 1:57 AM, strk at refractions.net wrote:

> I've added a new construction mean for lines:
>
> 	SELECT addPoint(line, point, [position]);
>
> This way you can incrementally populate a line.
> Similarly we could define more incremental constructors,
> here is an initial proposal:
>
>  F AddPoint(multipoint, point)
>  F AddPoint(collection, point)
>
>  F DropPoint(line, int);
>
>  F AddLine(multiline, line)
>  F AddLine(collection, line)
>
>  F AddPoly(multipoly, poly)
>  F AddPoly(collection, poly)
>
>  F AddHole(poly, line); // line must be a linearring
>  F DropHole(poly, int);
>
>  F SetShell(poly, line); // line must be a linearring
>
>  F DropElement(multipoint, int);
>  F DropElement(multiline, int);
>  F DropElement(multipoly, int);
>  F DropElement(collection, int);
>
> What do you think ?
>
> --strk;




More information about the postgis-devel mailing list