[geos-devel] I'm lost with LineString

Stephen Woodbridge woodbri at swoodbridge.com
Mon Apr 3 20:50:07 EDT 2006


Mateusz,

AddPoint(linestring, point, [<position>])

I don't think you can easily remove a point. Dump(geometry) might allow 
you to do it, but I'm not sure how it works.

I STRONGLY believe that there should be set of functions that allow 
versatile construction, editing and deconstruction of geometries. I 
think we have a good start at these, and it probably my limited 
knowledge that prevents me from see how to do the others :)

-Steve

Mateusz Łoskot wrote:
> Hi,
> 
> May be it's an extremely trivial problem or it's quite late and I should
> get to bad, but please help me :-)))
> 
> The question is:
> how to add/remove point from existing instance of LineString class?
> 
> I created LineString assigning to it object of type of
> CoordinateArraySequence with some points.
> Now, I'd like to add/remove points from this sequence assigned to
> linestring.
> 
> How can I achive this simple functionality?
> 
> I'm sure it's very simple, but I can not find it.
> 
> Cheers




More information about the geos-devel mailing list