IntersectNodes() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Calculates the set of points at which two objects intersect, and returns a polyline object that contains each of the points of intersection. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

IntersectNodes( object1, object2, points_to_include )

object1 and object2 are object expressions; may not be point or text objects.

points_to_include is a SmallInt (ID) value, see table below.

Return Value

A polyline object that contains the specified points of intersection.

Description

The IntersectNodes() function returns a polyline object that contains all nodes at which two objects intersect. There are several attributes that IntersectNodes() can return. Codes are defined in MAPBASIC.DEF.

Attribute setting ID IntersectNodes() Return Value
INCL_CROSSINGS 1 Returns points where segments cross.
INCL_COMMON 6 Returns end-points of segments that overlap.
INCL_ALL 7 Returns points where segments cross and points where segments overlap.