SpatialRadialSearch Command

Use the SpatialRadialSearch command in a Logic Template to search a spatial index for records containing coordinates that lie within any of the spatial grid rectangles that are touched by the circular area being searched. To obtain exact results, the records returned by the search request should then be filtered by the SpatialCircleFilter command.

To execute a Search Spatial Index Radial request, use the SpatialRadialSearch command with six arguments:

SpatialRadialSearch( fc, idx, cntr, rad, pas, wt );

SpatialRadialSearch Arguments

Argument

Description

fc

The function code defining how to merge results.( NONRESTRICTIVE, RESTRICTIVE )

idx

The spatial index to be searched.

cntr

The name of the HTML variable containing the coordinates of the center of the circle.

rad

The name of the HTML variable containing the radius of the circle.

pas

The pass during which the search is to be executed.

wt

The weighting value to apply to this search. The weighting value may be passed directly or within an HTML variable.

Access the SpatialRadialSearch Dialog Box by selecting the Spatial Index->Radial menu item under the Searching category of the Logic Template editor command menu.

Examples

Command

Description

SpatialRadialSearch( NONRESTRICTIVE, AreaIndex, Center, Radius, 1, 4);

Search spatial index named "AreaIndex" during pass 1 with a weighting value of 4. Use the coordinates stored in the HTML variable "Center" as the center and the value stored in HTML variable "Radius" as the radius and OR the results with other indexes.

Center = { 122, 136 };

Radius = 25;

SpatialRadialSearch( RESTRICTIVE, AreaIndex, Center, Radius, 3, 0);

Search spatial index named "AreaIndex" during pass 3 without a weighting value. Use coordinates 122 and 136 as the center and the value 25 as the radius and AND the results with other indexes.

IF ( Radius && Center )

SpatialRadialSearch( NONRESTRICTIVE, AreaIndex, Center, Radius, 1, Weight);

ENDIF

IF the HTML variable "Radius" contains something other than zero and the HTML variable "Center" contains a pair of coordinates, search the spatial index named "AreaIndex" during pass 1 for the circle defined by the HTML variables "Center" and "Radius" and OR the results to other indexes using a weighting value stored in the HTML variable "Weight".