Creating selections with SQL

Various methods of selecting network objects have been covered so far. Further selections can be made using SQL queries, which allow you to create lists of objects that satisfy specified conditions. The conditions can be as simple or as complex as you like. For example, you can create a list of nodes of a particular type or links for which particular fields lie within specified ranges.

This stage assumes that you have started InfoWorks WS Pro and that the Model Group window is open, showing the Newtown icon.

The tutorial dataset uses InfoWorks WS Pro native units (metric units). To import the tutorial data correctly, set the user units to metric by selecting Options from the Tools menu and clicking the Metric (Native) button on the Units tab.

The following steps create a number of selection lists using SQL. You can use the provided 'Newtown Network' network.

  1. Create a list of all reservoirs:
  2. Another task can be to select all nodes above 140 mAD (the Find Network Objects tool cannot be used in this case):
  3. You can use any of the data fields in a query. For example, you can create a list of pipes that are greater than 175 mm wide:
  4. The GeoPlan tools and grids can achieve the same effects as simple SQL queries. However, more complex SQL queries can be designed to select objects according to a combination of criteria:
  5. It is possible to view the results of a query as a grid (refer to the Working with grids and property sheets topic for more information about grids):
  6. Close all the windows, including the GeoPlan window.

Back Back to flowchart


Related Topics button

Nodes grid window