[postgis-devel] Re: [postgis-users] Modifying a linestring

strk at refractions.net strk at refractions.net
Thu Aug 4 07:49:00 PDT 2005


On Thu, Aug 04, 2005 at 11:29:52AM +0300, Ehud Shabtai wrote:
> Hi,
> 
> I need to modify a linestring (actually change the first or last
> point), in a postgres trigger. Is there a simple way to do it using
> the sql language?

Nope, but it would probably be useful.

The interface might be something like:

	UpdateLinePoint(line, pointN, point);
	InsertLinePoint(line, pointN, point); -- add before pointN
	AppendLinePoint(line, pointN, point); -- add after pointN
	DeleteLinePoint(line, pointN, point);

Similar editing functions would be nice to have for
polygons as well.

Comments ? Volunteers ? Founders ?

--strk;



More information about the postgis-devel mailing list