MI_Within

Description

Determines if one geometry object is entirely within another geometry object.

Syntax

MI_Within ( testGeometry, containerGeometry )

Arguments

containerGeometry and testGeometry are geometry objects (or expressions).

Example

Determines if one of the specified countries is entirely within the defined box.

select MI_Within([Geometry_Column],MI_Box(-13.36676789,8.05796847,79.06334219,62.70540978,'epsg:4326')) as theResult from countries where country = ANY ('Mauritania','Mali','Algeria')

Remarks

Returns true if testGeometry entirely contains containerGeometry, false otherwise. If either testGeometry or containerGeometry are null, false is returned. The function is performed using the coordinate system of the first argument (testGeometry).

This is synonomous with MI_Contains (containerGeoemtry, testGeometry ).