Class ria.search.MultiTableFeatureService

The MultiTableFeatureService class is a convenience class that allows the caller to perform a feature search on multiple tables at once. This is useful when a feature search is triggered by interactions with a map, which typically displays the features of multiple tables stacked on top of each other. Apart from accepting more than one table and accordingly returning more than one FeatureCollection, this class behaves very similar to ria.search.FeatureService.

Method Summary
Method Attributes Method Name and Description
searchAtPoint(point, srs, tables)
Searches for features at a given geographic location.
Constructor Detail
ria.search.MultiTableFeatureService(url)
Parameters:
{String} url
the base URL of the Spatial Server REST Service
Method Detail
{dojo.Deferred} searchAtPoint(point, srs, tables)
Searches for features at a given geographic location. A search can be performed on one or more tables at a time. The result of the method, which will be exposed through an onSearchDone event, is an array of GeoJSON FeatureCollections. It is possible to provide a tolerance value in order to include features that are in the immediate vicinity of the given location, but do not overlap with it. This is particularly important for point and line features. An attributes object specifies the columns to be returned.
Parameters:
{OpenLayers.Geometry.Point} point
Geographic location
{String} srs
Coordinate system of point
{Array} tables
Array of objects with the properties {String} name, {String} tolerance and {String[]} attributes
Returns:
{dojo.Deferred} Handle to manage the asynchronous method call