OpenLayers.Filter.Spatial - OpenLayers

# OpenLayers.Filter.Spatial

This class represents a spatial filter. Currently implemented: BBOX, DWithin and Intersects

#### Inherits from

- OpenLayers.Filter

Summary

OpenLayers.Filter.Spatial | This class represents a spatial filter.
Properties |
type | {String} Type of spatial filter.
property | {String} Name of the context property to compare.
value | {OpenLayers.Bounds || OpenLayers.Geometry} The bounds or geometry to be used by the filter.
distance | {Number} The distance to use in a DWithin spatial filter.
distanceUnits | {String} The units to use for the distance, e.g.
Constructor |
OpenLayers.Filter.Spatial | Creates a spatial filter.
Functions |
clone | Clones this filter.

### Properties

### type

{String} Type of spatial filter.

#### The type should be one of

- OpenLayers.Filter.Spatial.BBOX
- OpenLayers.Filter.Spatial.INTERSECTS
- OpenLayers.Filter.Spatial.DWITHIN
- OpenLayers.Filter.Spatial.WITHIN
- OpenLayers.Filter.Spatial.CONTAINS

### property

{String} Name of the context property to compare.

### value

{OpenLayers.Bounds || OpenLayers.Geometry} The bounds or geometry to be used by the filter. Use bounds for BBOX filters and geometry for INTERSECTS or DWITHIN filters.

### distance

{Number} The distance to use in a DWithin spatial filter.

### distanceUnits

{String} The units to use for the distance, e.g. ‘m’.

### Constructor

### OpenLayers.Filter.Spatial

Creates a spatial filter.

#### Parameters

options | {Object} An optional object with properties to set on the filter.

#### Returns

{OpenLayers.Filter.Spatial}

### Functions

### clone

> clone: function()

Clones this filter.

#### Returns

{OpenLayers.Filter.Spatial} Clone of this filter.

Instances of this class represent bounding boxes.
A Geometry is a description of a geographic object.

> clone: function()

Clones this filter.
This class represents an OGC Filter.
Creates a spatial filter.
Close