## DistancePointToLine

**Syntax**

double DistancePointToLine(MapWinGIS.Point pt, MapWinGIS.Shape line, int distType)

**Summary**

Not Implemented

Computes the distance between a point and a line.

**Parameters**

pt |
The point to be considered. |

line |
The line to be considered. |

distType |
Indicates whether the distance should be from the nearest, farthest, or centroid of the line. |

**Returns**

The distance from the line, else 0 if an error was encountered.

Visual Basic Net 2005 Example
Implementation Code

Visual C# 2005 Example Implementation
Code

Back to
Statistics