Coordinate queries can find entities or links of a particular type within a defined
geographic area or close to a location.
About this task
You can use coordinate queries to search entities or link types that have coordinate
fields. You can only run coordinate queries on entity or link types that have a Coordinate type
field, followed by two real number fields that contain coordinate data.
Procedure
-
Select .
- Select the entity or link type that contains the coordinate data.
-
Select the Coordinate type field. This will typically be selected automatically, as there is
usually only a single Coordinate field for each entity or link type.
-
In the Source area, specify which records you want to include in the coordinate query.
-
In the Query Operator area, select the required operator:
- Is near - finds records with coordinate data that is within a specified distance of a
location you enter. Enter the location using coordinates and then specify the required distance and
units.
- Is between - finds records with coordinate data that falls within a rectangle whose corners
you define. Enter the two sets of coordinates to form the corners of the search area.
-
In the Coordinates area, enter the coordinates
If you selected 'Is near', enter one set of coordinates and then enter a value in the Tolerance
box and the units for that value, for example kilometers or miles. This value is used to calculate
the distance from the entered coordinates.
The Tolerance is calculated by adding the specified distance to both the horizontal (longitude)
and vertical (latitude) part of the coordinates to create a square with the original coordinates in
the middle. Any record with coordinates that are located within this square is found.
If you selected 'Is between', enter two sets of coordinates. These coordinates form two corners
of a rectangle. Records with coordinates that fall within the defined square are found.
-
Click Next to create the query.
-
Click Results to run the query.