This document is archived and information here might be outdated. Recommended version. |
Indicates if this geometry is contained (is within) another geometry.
[Visual Basic .NET] Public Function Within ( _ ByVal other As IGeometry _ ) As Boolean
[C#] public bool Within ( IGeometry other );
[C++]
HRESULT Within(
IGeometry* other
);
[C++] Parameters other
other is a parameter of type IGeometry*
The base geometry is within the comparison geometry if the base geometry is the intersection of the geometries and the intersection of their interiors is not empty. Within is a Clementini operator. Within is the opposite operator of contains.
Only geometries that support the IRelationalOperator interface can be used as input geometries.
If geometry1 is Within geometry2, then geometry2 Contains geometry1.
An empty geometry is within another geometry, unless the other geometry is empty.
Within examples. Only "true" relationships are showed in this picture.