[geos-devel] About LineSegment and its shifting

???? ??????? oss-dev at rambler.ru
Mon May 2 14:23:03 EDT 2005


As I understand, Sergey want to calculate coordinates of new
LineSegment which have same count of points as base LineSegment but
shifted along the perpendicular length.
It easy to show then explain:
if we have vertical LineSegment (2 2)-(2 5)
and shifting length = 5
then result LneSegment is (7 2)-(7 5)

> 2005/4/29, strk at refractions.net <strk at refractions.net>:
> On Fri, Apr 29, 2005 at 09:01:13PM +0400, nil5-ksa wrote:
> > Hi, all
> >
> > I have one LineSegment. And I want to get another LineSegment with 
>points, that calculates with next algorithm.
> > I create two perpendiculars to my LineString in its end points. 
>Both perpendiculars have same and fixed length.
> > Resulting LineString have coordinates given by this algorithm.
> >
> > Are there in GEOS any abilities to create this LineString?
> >
> > Sergey Karin
>
> It is possible, but I don't know if the resulting LineString
> is simple in OGC terms. It takes 6 points for how I see it.
>
> --strk;
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel



More information about the geos-devel mailing list