ConvertToPline() 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

Returns a polyline object that approximates the shape of another object. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

ConvertToPline( object )

object is the object to convert; may not be a point object or a text object.

Return Value

A polyline object

Description

The ConvertToPline() function returns a polyline object which approximates the object parameter. Thus, if the object parameter represents a region object, ConvertToPline() returns a polyline that has the same shape and same number of nodes as the region.

The results obtained by calling ConvertToPline() are similar to the results obtained by choosing MapInfo Pro's Convert To Polylines command. However, the function ConvertToPline() does not alter the original object.

See Also:

Objects Enclose statement