[postgis-users] add new point to polygon...(add new corner)

Kevin Neufeld kneufeld at refractions.net
Thu Nov 15 08:47:15 PST 2007


You could try to:
- deconstruct your polygon to individual lines
- use ST_AddPoint(linestring, point, [<position>]) on your exterior or 
interior ring you are modifying
- rebuild your polygon using ST_BuildArea()

-- Kevin

Maciej Skorczewski wrote:
> Hi!
>
> i my aplication i try to change shape of polygon...i can move  exist 
> corner to new place...(i can change shape of polygon)
>
> but sitll have problem whit add new point.
>
> this is screen of what i want to do....
> http://img529.imageshack.us/img529/8907/19080156cm1.jpg
>
>
> I thing that i can use my existing solution but i net function in 
> postgis to  account coordinates middle of 2 corner...so after add new 
> polygon...postgis should update this by add new coordinates (blue dot 
> on screen shot) it is posible to do?
>
>
>



More information about the postgis-users mailing list