<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-html" lang="x-western">
<div dir="ltr">
<div style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR:
#000000">
<div>Hi,</div>
<div> </div>
<div>i am using GEOS (3.4.x) with PHP. </div>
<div>Sometimes i get a strange resorting of the points in a
linestring after using the offsetCurve-function. </div>
<div> </div>
<div>Here is an example:</div>
<div> </div>
<div>$geosWKTReader = new GEOSWKTReader;</div>
<div>$geom = $geosWKTReader->read( "LINESTRING(350 100,250
200,400 200,350 100)");</div>
<div>$newGeom = $geom->offsetCurve(-7.5);</div>
<div>die( $newGeom->__toString() );</div>
<div> </div>
<div>the result is:</div>
<div>LINESTRING (268.1066017177982 192.5, 347.9453639621833
112.6612377556149, 387.8647450843758 192.5,
268.1066017177982 192.5)</div>
<div> </div>
<div>i would expect something like this:</div>
<div>LINESTRING (347.9453639621833 112.6612377556149,...)</div>
<div> </div>
<div>Can somebody tell me, why is it so? Or is it a bug?</div>
<div> </div>
<div>The sequence of the points is very important for me, so
is there a possibility to prevent this behavior? Maybe by
setting a parameter?</div>
<div> </div>
<div>Greets,</div>
<div>Swen</div>
</div>
</div>
</div>
</body>
</html>