|Functions / Geometry Predicate Functions (boolean)|
Determines if the centroid of a geometry object lies within another geometry object.
MI_ContainsCentroid ( containerGeometry, testGeometry )
containerGeometry and testGeometry are geometry objects (or expressions).
Determines if the specifed point is within Canada.
select MI_ContainsCentroid(MI_Point(-76,45,'epsg:4326'),[Geometry_Column]) from countries where country='Canada'
Returns true if the centroid of containerGeometry is contained within 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).