ProportionOverlap() 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 number that indicates what percentage of one object is covered by another object. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

ProportionOverlap( object1, object2 )

object1 is the bottom object, and it is a closed object.

object2 is the top object, and it is a closed object.

Return Value

A float value equal to AreaOverlap( object1, object2 ) / Area( object1 ).

Restrictions

ProporationOverlap() only works on closed objects. If both objects are not closed (such as points and lines), then you may see an error message. Closed objects are objects that can produce an area, such as regions (polygons).

See Also:

AreaOverlap() function