Examples of queries
You can run a query on any feature property other than centerline. Criteria can be numeric or non-numeric. You can also run a zone query. All zones in the query should be of the same type. For example, do not mix local default zones with crossing zones in a single zone query.
Example 1: Run a feature query
Create a simple collection of all rivers that are less than 20 meters wide, change the crossing type to three cells of a particular type of culvert, and change the color to a different shade of blue to highlight the new requirements.
-
On the General tab, click Query.
-
Leave the Object field as Feature.
-
Under Property, select Nature.
-
Leave the Operator as =.
-
From the Value list, select River.
-
Click New set.
All of the rivers within the study area are selected. The next step is to select those rivers that are less than 20 meters wide.
-
Open the Query dialog again. (See Step 1.)
-
Leave the Object field as Feature.
-
Under Property, select Width.
-
From the Operator list, select <.
-
From the Value list, select 20.00.
-
Click Select from set.
The software creates a subset of the original set. The subset meets an additional criterion. You can keep repeating the process to create a final collection that satisfies three or four criteria.
Quantm Desktop software discards all rivers that are more than 20 meters in width.
- Use the Feature Properties window to make the required
changes to the objects still selected from the query:
- Change the Crossing type to Culvert.
- Set Culvert type to 1500mm box.
- Set the number of cells to 3.
- Change the Color setting to the new color.
Example 2: Run a feature query
Create a more complex collection that includes all roads wider than 20 meters and all rivers wider than 30 meters.
- Create a new layer called Temp.
- Create a collection of all roads wider than 20 meters. Follow the method described above in Example 1, but set the Operator field to >.
-
Add the road collection into the new Temp layer.
-
Create a collection of all rivers wider than 30 meters. Move these to the layer called Temp.
Note: When you click Add to set, the software adds objects that meet the new criterion to the original set. -
Select all features in the Temp layer. To do this, run a query to select all features in the Temp layer. Or, open the Temp layer in the Layer pane and then directly select all objects in the layer.