MI_CentroidWithin

説明

ジオメトリ オブジェクトのセントロイドが、別のジオメトリ オブジェクトに含まれているかどうかを調べます。

構文

MI_CentroidWithin ( testGeometry, containerGeometry )

引数

containerGeometrytestGeometry はジオメトリ オブジェクト (または式) です。

指定されたジオメトリのセントロイドが、指定された国に含まれているかどうかを調べます。

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

コメント

testGeometrycontainerGeometry に含まれている場合は真を返し、それ以外の場合は偽を返します。testGeometry または containerGeometry が NULL の場合は偽を返します。この関数は、最初の引数 (testGeometry) の座標系を使用して実行されます。

これは、MI_Contains (containerGeoemtry, testGeometry ) と同義です。