DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Contains | Methods | Properties
Tests whether this shape contains another shape using the DE-9IM (Dimensionally Extended 9-Intersection Model) topology relation. Opposite of Within.
// C# public WordBool Contains( ITGIS_Shape _shape );
' VisualBasic Public Function Contains( ByVal _shape As ITGIS_Shape ) As WordBool
// Oxygene public function Contains( _shape : ITGIS_Shape ) : WordBool;
| Name | Type | Description |
|---|---|---|
| _shape | ITGIS_Shape | Shape to test as the contained geometry. |
| Type | Description |
|---|---|
| WordBool | True if this shape spatially contains _shape according to the topology relation; otherwise False. |
PURPOSE: Test spatial containment for cases such as polygon containing point, region containing line, or feature hierarchy checks.
BEHAVIOR: Evaluates whether _shape is spatially inside this shape using the DE-9IM relation. It is the inverse relation of Within.
CONSTRAINTS: Both shapes must have valid geometry. Boundary handling follows the underlying DE-9IM implementation and may differ from simpler point-in-area expectations.