Purpose
Create an intersection point of two lines; corresponds to choosing Spatial > Edit > Modify > Line Intersection. This function requires the MapCAD Tool and can be executed via the Exec() command. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
Exec("MapCAD.mbx","LineIntersectionPoint", LineObj1, LineObj2)
Return Value
Point Object If the lines do not intersect or the function failed, the return object is a point(0,0).
Description
Use the LineIntersectionPoint function to create the intersection point of two lines. The MapCAD tool must be loaded. This function requires an active map window to determine the projection and units. To set the calculation accuracy, open the MapCAD settings dialog.Parameters | Description |
---|---|
LineObj1 | Object value, Line |
LineObj2 | Object value, Line |
Examples
'Create an intersection point of two lines.
Dim NewObj as object
NewObj = Exec("MapCAD.mbx","LineIntersectionPoint",LineObj1, LineObj2)