Use this method to select features whose geometry property satisfies the relationship argument to the geometry argument. The effect is geometryProperty.spatialOperation(geometryArg). By default this filter is joined by the AND operator with the value of the regular filter (see MgFeatureQueryOptions::SetFilter Method ). This filter can also be joined by the OR operator (see MgFeatureQueryOptions::SetBinaryOperator Method ). The syntax for including a spatial expression in a regular filter is described in the topic on filters and expressions .
.NET Syntax
void SetSpatialFilter(string geometryProperty, MgGeometry geometry, int spatialOperation);
|
Java Syntax
void SetSpatialFilter(String geometryProperty, MgGeometry geometry, int spatialOperation);
|
PHP Syntax
void SetSpatialFilter(string geometryProperty, MgGeometry geometry, int spatialOperation);
|
- Parameters:
-
geometryProperty | (String/string) The name of the geometry property belonging the features selected from the datastore |
geometry | (MgGeometry) The geometry object set in relation to the geometry property. |
spatialOperation | (int) The spatial operation to perform between the lefthand operand (the geometry property) and the righthand operand (the geometry object). The spatial operation value of is one of the MgFeatureSpatialOperations types. |
- Returns:
- Returns nothing.
- Exceptions:
-