[postgis-devel] addPoint(line, point, [position])
strk at refractions.net
strk at refractions.net
Thu Oct 28 02:12:52 PDT 2004
Maybe this is a more friendly approach:
add(geometry, geometry, [pos])
del(geometry, [pos])
These function would add or remove an element from a geometry.
Semantic would change based on input geometries.
Legal calls would then be:
add(line, point, [pos]);
add(poly, line, [pos]);
add(multipoint, point, [pos]);
add(multiline, line, [pos]);
add(multipoly, poly, [pos]);
add(collection, any, [pos]);
del(line, [pos]); // remove a point
del(poly, [pos]); // remove a ring
del(multi, [pos]);
Does it sound better ?
--strk;
On Thu, Oct 28, 2004 at 10:57:19AM +0200, 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;
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
More information about the postgis-devel
mailing list