# LineInterpolatePoint function do not work properly

**URL:** <https://mapwindow.discourse.group/t/lineinterpolatepoint-function-do-not-work-properly/1764>\
**Category:** MapWinGIS\
**Created:** [July 22, 2024, 4:30pm UTC](https://mapwindow.discourse.group/t/lineinterpolatepoint-function-do-not-work-properly/1764 "2024-07-22T16:30:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josimar.alves](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@josimar.alves](https://mapwindow.discourse.group/u/josimar.alves)\
**Post date:** [July 22, 2024, 4:30pm UTC](https://mapwindow.discourse.group/t/lineinterpolatepoint-function-do-not-work-properly/1764/1 "2024-07-22T16:30:09Z")

</div>

Hello.

The LineInterpolatePoint return a point at the specified distance (or percentage) along the specified line. The parameters are:

- sourceLine: Polyline shape to traverse
- startPoint: Starting point along ‘sourceLine’ (specify Point[0] for beginning of line)
- distance Distance along line (or percentage of line length; if a percentage, specify a number between 0.0 and 1.0)
- normalized: Optional value; if FALSE, ‘distance’ is actual distance; if TRUE, distance is percentage of length; defaults to FALSE

When I try to get a point at 50% of the total length of sourceLine (MyShapeIN), I call the function like this:

- LineInterpolatePoint (MyShapeIN, MyShapeIN.point[0], 0.50, TRUE);

As result, I got the same result point using the last parameter(normalized) as TRUE or FALSE. So I think there is some error in the code or the parameter(normalized) doesn’t affect the result.

Regards.

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [July 23, 2024, 7:54pm UTC](https://mapwindow.discourse.group/t/lineinterpolatepoint-function-do-not-work-properly/1764/2 "2024-07-23T19:54:48Z")

</div>

Looking at the code, the normalized parameter is not currently being used.

So perhaps instead of passing in 0.5 for the distance, you could use

**(MyShapeIN.Length \* 0.5)**

Regards,  
Jerry

---

<div class="post-metadata">

**Author:** ![josimar.alves](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@josimar.alves](https://mapwindow.discourse.group/u/josimar.alves)\
**Post date:** [July 24, 2024, 12:14pm UTC](https://mapwindow.discourse.group/t/lineinterpolatepoint-function-do-not-work-properly/1764/3 "2024-07-24T12:14:20Z")

</div>

Thanks. Jerry.  
I hope is necessary to open a request to correct the code. right?
