MI_Contains

Description

Determines if one geometry object entirely contains another geometry object.

Syntax

MI_Contains ( containerGeometry, testGeometry )

Arguments

containerGeometry and testGeometry are geometry objects (or expressions).

Example

Determines if the country Canada contains the specified point.

select MI_Contains([Geometry_Column],MI_Point(-76,45,'epsg:4326')) from countries where country='Canada'

Remarks

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

This is synonomous with MI_Within ( testGeoemtry, containerGeometry ).