<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi all,<br><br>for improvements in the housenumber2 branch I have to split a road segment<br>into two parts. <br>Given: the two (Garmin) points p1 and p2 that build the road<br>segment and a distance d with d &lt; p1.distance(p2). The normal way to<br>calculate the wanted point is to use the Coord.makeBetweenPoint() method.<br><br>The problem: the simple algo in makeBetweenPoint()<br>calculates the point without looking at the rounding for the Garmin<br>raster, so for line segments with a small slope the calculated point<br>might be too far away from the displayed line. The effect is<br>that the splitted line has a rather large angle while the originial<br>line looks - of course - perfectly straight.<br><br>I am sure this problem was already solved, but up to now I did <br>not find an algo that works without a loop to calculate a set of points<br>and chose the best one, e.g. using the Bresenham algo.<br><br>Any hints?<br><br>Gerd<br><br><br><br><br><br></div>
                                               </div></body>
</html>