Among the many options available in ‘Spatial Manager’ to select objects in your maps or drawings, one of the most advanced and powerful of them is the Spatial Query. In this article we develop an example in which you can appreciate the usefulness of this function


Related videos: AutoCAD / BricsCAD / ZWCAD / GstarCAD / Desktop

‘Spatial Manager’ Spatial Query selection

‘Spatial Manager’ Spatial Query selection

In this case we can find a set of municipalities, represented by the polygons that define their boundaries, and a series of high voltage power lines. The aim is to select those municipalities crossed by lines whose voltage is equal to 380000 V. The objects, municipalities and power lines, are linked to their corresponding data tables

Spatial Queries allow you to designate two sets of objects in order to operate on to obtain the final result of the query. The designations of the object groups to operate (which is somewhat different in the CAD versions - AutoCAD, BricsCAD, ZWCAD and GstarCAD, and in the Desktop version) can include themselves a query operation, for example according to the data in one or more tables

As for the Spatial Query operation, which analyzes the relationships between the different selected geometries, we have applied the “Intersects” operator, but there are many others (Touches, Within, Contains, etc.) about which you can read more in the links below

Once the objects have been selected, we can modify their Properties, move them to another Layer, etc., or generate a duplicate of them by copy & paste operations, etc., or, as you can see in the videos, by applying the trick of generating a polygonal Buffer (zero width) in any of the applications

Enjoy the videos

Note: Some features shown on the videos can be found in the Standard and/or Professional editions only

Learn more about Spatial Queries in the ‘Spatial Manager’ technical Wiki: