Envelope Intersects
[Spatial Relationships]
Definition
geom1.EnvelopeIntersects(geom2)
returns true if the envelope of geom1
intersects the envelope of geom2
.
OGC Definition
There is none.
Oracle Spatial Definition
There is none. The FDO Oracle Provider implements it using the spatial operator sdo_filter, for example, sdo_filter(a.TUXUNIVERSALGEOM, MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1), MDSYS.SDO_ORDINATE_ARRAY(1,1, 4,1, 4,4, 1,4, 1,1)), 'querytype = WINDOW')
PHP Code Implementation
The equivalent of the EnvelopeIntersects predicate can be expressed using MgGeometricEntity and MgEnvelope methods as follows.
<?php function EnvelopeIntersects ($geom1, $geom2) { $envelope1 = $geom1->Envelope(); $envelope2 = $geom2->Envelope(); $envIntersectBool = $envelope1->Intersects($envelope2); return $envIntersectBool; } ?>