Spatial Selections: A Guide to SGIS’s 'Select by Layer' Tool

The ‘Select by Layer’ tool in SGIS Desktop and SGIS v.R is a powerful feature that allows users to select features based on their spatial relationships to other features in a different layer.

The “Select by Layer” function is helpful because it lets users automatically select features based on spatial criteria, rather than having to manually pick them. This saves time and boosts efficiency, especially when working with large datasets.

To demonstrate the effectiveness of the tool, we’ll provide an example solution for each spatial relationship criterion.

  1. Spatial Relationship Criterion #1: Points in Polygons
Fig.1 Data loaded into SGIS Desktop version 1.2.

To illustrate the Point in Polygons criterion, we’ll use some example data. We have a telecommunications dataset that includes three distinct polygon areas, each connected to a telecommunication distribution cabinet. Within all three polygons, there are point features located across four different layers.

For our first example, we’ll focus on the Residen_hh Point layer. The user wants to filter all Residen points located inside Polygon Area 1, then those in Polygon Area 2, and finally, those in Polygon Area 3.

To do this quickly and effectively, we need to access the “Select By Layer” tool. You can find this tool in the Selection menu on the main toolbar, as well as in the toolbox located at the top of the user interface.

Let’s start by clicking on the function.

Fig. 2. To easily access the ‘Select by Layer’ function, it is located in the main menu toolbar as well as in the Selection menu.
Fig. 3. The dialog window with three dropdown options: Selection Mode for spatial relationship criteria, the ‘Layer to be selected,’ and the ‘Layer acting as the condition’ for the spatial relationship.

Once the function is activated, a dialog window will pop up. Here, users are prompted to choose the Selection Mode from a dropdown list, which includes all the spatial relationship criteria. We’ll select the criterion that’s appropriate for our example.

Next, users need to pick the ‘Layer that will be selected’.

This step sets up the spatial relationship criterion between two different layers, so it’s important to specify which layer’s features we want to select.

The third dropdown lets users choose the ‘Layer that will act as the condition,’ which defines the spatial relationship between the two layers.

Let’s start with the first selection.

Fig. 4. Selecting the ‘Points in Polygons’ option from the dropdown list, enabling the selection of point features located within one or more polygons.

We’ll choose the first option from the dropdown list—Points in Polygons. This option lets us select point features that are found within one or more polygons. In other words, the Polygon layer can have multiple polygons.

Fig. 5. Selecting the ‘point-Residen’ layer from the second dropdown list to highlight Residen points located inside Area 1.

Next, we need to open the second dropdown list to choose the layer that contains the features we want to select and highlight. In our example, we want to select all Residen points located inside Area 1, so we’ll choose the ‘point-Residen’ layer.

Fig. 6. Selecting the ‘Condition Layer’ as ‘Polygon Area 1’ before clicking ‘Select’ to complete the setup.

Naturally, the third dropdown option, the ‘Condition Layer’, will be the layer for ‘Polygon Area 1’. With these three settings configured, we just need to click on ‘Select’.

Fig. 7. The point features that meet this spatial criterion are immediately selected and highlighted in the Graphics Panel.
Fig. 8. Selected points highlighted in lime green, with the option for users to customize the highlight color to their preference.

The points are highlighted in lime green, but this is a setting that users can customize to their liking.

The selected points can now be easily exported into a separate GIS layer for further processing. For instance, users can later open the attribute table and add new attribute fields to include relevant information.

Fig. 9 Using the ‘Selected Elements in New Layer’ function to create a new layer containing the previously selected features.

To do this, we’ll use the ‘Selected Elements in New Layer’ function.

This handy feature lets us create a new layer that includes the features we previously selected based on our chosen conditions. Let’s go ahead and click on it.

The function prompts us to enter a name for the new layer we’re creating. We’ll name it ‘Residen Points in Polygon 1’, as those are the points we were looking for.

Fig. 10 The function prompts us to enter a name for the new layer, which we’ll call ‘Residen Points in Polygon 1’, as these are the points we want.

We click ‘OK,’ and with that, a new layer is created. The procedure is now complete.

Fig.11 The procedure is complete.

Let’s demonstrate this spatial criterion with a practical example for utility and infrastructure projects. This tool allows us to analyze how different spatial features interact with each other.

In our example, we’ll show where heating network pipelines intersect with property boundaries; or pass through cadastral parcels. Each cadastral parcel is assigned its ownership, whether state-owned or private. It’s a quick and efficient way to highlight all the land parcels impacted by the network.

This is just one example, though. The same principle applies to roads (represented as polylines) intersecting land properties or buildings. Users can of course, analyze other infrastructure like power lines and pipelines, showing which properties they cross.

Now, let’s dive in and see how this is done in SGIS Desktop!

Fig. 12 The dataset, including a SHP layer of the heating network and a cadastral basemap with land parcels and buildings, is loaded into SGIS. The ‘Select by Layer’ function is used to identify which parcels the pipeline network intersects.

We’ve already loaded our dataset into SGIS, so we’re ready to jump right into the process. We have a SHP layer representing the heating network as polylines, along with a cadastral basemap that includes layers for land parcels and buildings. Our goal is to identify which parcels the pipeline network passes through.

To do this, we’ll use the ‘Select by Layer’ function. Let’s click on it and get started.

The Selection Dialog window will appear immediately. From the ‘Selection Mode’ dropdown menu, we’ll choose the second option, ‘Polylines Intersect Polygons.’ This option allows us to select all polygon features from one layer that are intersected by polyline features from another layer.

Fig. 13 Selection Dialog in SGIS showing the ‘Selection Mode’ dropdown, with the ‘Polylines Intersect Polygons’ option chosen to select polygon features intersected by polyline features.
Fig. 14 The ‘Layer that should be selected’ dropdown in SGIS, where the ‘Level 11-Parcels’ layer is chosen for highlighting features based on the selected spatial relationship.

Once we’ve selected the ‘Selection Mode’, the next step is to choose the ‘Layer that should be selected’. Here, we specify which layer we want the features to be highlighted from. We’ll pick from a dropdown list that shows all the layers in the Layers panel. In this case, we’ll select the layer named ‘Level 11-Parcels’.

Next, we move on to the third option, the condition layer. This is where we specify the layer that will serve as the basis for applying the spatial relationship criterion. From the dropdown list, we’ll select ‘Heating Network’.

Fig. 15 The condition layer selection in SGIS, where the ‘Heating Network’ layer is chosen to define the spatial relationship for the intersection of the pipeline network with land parcels.
Fig. 16 The ‘Select’ button in SGIS is clicked after configuring the selection mode, target layer, and condition layer to execute the spatial relationship.

Once all three options are configured, we simply click on ‘Select’ to proceed.

Fig. 17 The selected features that meet the spatial criteria are highlighted in the graphics panel, with corresponding polygon features listed in the ‘Selected Elements’ panel, allowing users to navigate and pan to each individual feature.

The features that meet the criteria are instantly selected and highlighted in the graphics panel. Additionally, these polygon features are listed in the ‘Selected Elements’ panel, allowing users to navigate through them individually and pan to each one as needed.

Fig. 18 Zooming in on the graphics panel to provide a clearer view of the selected polygons.

We have the option to separate these selected features into a new layer, which will be automatically created when we activate the ‘Selected Elements in New Layer’ function. This function is conveniently found in the ‘Layers’ Toolbox on the left side of the user interface. Let’s go ahead and click on it.

Fig. 19 Activating the ‘Selected Elements in New Layer’ function in the ‘Layers’ Toolbox, located on the left side of the user interface, to create a new layer for the selected features.
Fig. 20 The prompt to enter a name for the new layer appears after activating the ‘Selected Elements in New Layer’ function, resulting in the creation of a new layer containing the selected polygon features representing land parcels.

Once activated, the function will prompt us to enter a name for the new layer. After we do that, a new layer containing the selected features—in this case, the polygon features representing land parcels—will be created.

With that, the procedure is complete.

Fig.21 The procedure is complete.

The “Polygons Intersect Polygons” spatial relationship criterion is a powerful tool for analyzing how different polygon features overlap within a specific area. For example, it can help identify where zoning areas (such as residential, commercial, or industrial zones) intersect with specific land use designations.

Similarly, it can show where protected areas, overlap with land designated for other uses, such as agriculture or development.

In cadastral mapping, this criterion allows users to see where property boundaries might intersect with municipal or administrative boundaries.

In our practical case, when planning large infrastructure projects like utility networks, this tool helps visualize how planned routes intersect with existing property boundaries, aiding in optimization and minimizing disruption.

Now, let’s dive into how this is done;

Fig. 22 A cadastral basemap with a heating network pipeline dataset displayed in SGIS Desktop.

Since we already have our dataset loaded from the previous example, in this case, we need to create a buffer around the heating network pipeline to identify which land parcels fall within the designated project area. We’ll set the buffer to 10 meters on both sides of the pipeline and check which land parcels are impacted by the project.

To begin, we’ll open the ‘Buffer’ function.

This function is easily accessible in the main toolbar at the top of SGIS Desktop’s user interface.

Fig. 23 The ‘Buffer’ function, located in the main toolbar at the top of SGIS Desktop’s user interface, is selected to begin the process of creating a buffer around the pipeline.
Fig. 24 The ‘Create Buffer’ function is activated, and a new buffer layer is added to the Layers List, showing the 10-meter buffer zone around the pipeline.

After configuring the settings, we click ‘Create Buffer’.

A new layer with the buffer polygon immediately appears in the Layers List. Now that the buffer is created, we can use the ‘Select by Layer’ function to identify where the two polygon layers overlap and intersect.

Fig. 25 The newly created buffer polygon layer is visible in the Layers List, representing the 10-meter buffer around the pipeline.
Fig. 26 The ‘Select by Layer’ dialog window is open, with the ‘Polygons Intersect Polygons’ mode selected from the ‘Selection Mode’ dropdown menu.

When the ‘Select by Layer’ dialog window opens, we start by choosing our mode from the ‘Selection Mode’ dropdown menu, selecting ‘Polygons Intersect Polygons’.

Next, under the ‘Layer to be selected’ dropdown, we choose ‘Level 11 – Land Parcels’.

For the third dropdown, we select the ‘Buffer 10m’ layer.

Fig. 27 The ‘Layer to be selected’ dropdown is set to ‘Level 11 – Land Parcels’, indicating the layer of land parcels for selection.
Fig. 28 The third dropdown menu shows the ‘Buffer 10m’ layer selected, which will be used to identify intersections with the land parcels.

Finally, we click ‘Select’ to finish the process.

All polygon features that meet the criteria will instantly be selected and highlighted in the Graphics panel.

In this example, the highlighted polygons appear in red, though this is fully customizable and can be adjusted based on user preferences.

Fig. 29 The ‘Select’ button is clicked, finalizing the process and highlighting the selected polygons in the Graphics panel.
Fig. 30 The Graphics panel displays the selected polygons, highlighted in red to show where they meet the criteria. The highlight color can be customized according to user preferences.

One great feature of SGIS is the ‘Pan to Element’ function found in the Selected Elements panel. After making a selection, the highlighted elements will not only be visible on the graphics panel, but they will also be listed in the Selected Elements panel. Users can click on each element individually, and its attributes will be displayed in a convenient tree-like format.

This is particularly useful when you want to quickly check the attribute values of a selected element without having to open the entire attributes table.

If you right-click on any item in the list, a menu will pop up, and the first option will be ‘Pan to Element.’ This feature makes it easy to zoom in on the selected element in the graphics panel, eliminating the need for a manual search.

Fig.31 A context menu appearing after right-clicking on a selected element in the list, featuring the ‘Pan to Element’ option for easy navigation to the highlighted feature in the graphics panel.
Fig.32 Clicking the ‘Pan to Element’ function navigates you to the selected feature on the graphics panel, providing greater visual clarity.

We can easily separate all the polygons into a new layer using the one-click function ‘Selected Elements in New Layer’ for further processing and analysis of their geometry and attributes. After naming the new layer, it will be created instantly, and with that, we’ll wrap up this procedure.

Fig.33 The process of separating all selected polygons into a new layer using the ‘Selected Elements in New Layer’ function for further analysis of their geometry and attributes. After naming the layer, it is created instantly, completing the procedure.

The “Polygons In Polygons” spatial relationship criterion is useful for analyzing how certain polygon features are fully contained within others. For instance, it can determine which parcels of land fall entirely within specific zoning areas or help identify properties located completely within protected regions, like nature reserves or conservation zones.

In cadastral analysis, it can highlight smaller land parcels (such as subdivided lots) that fall entirely within larger municipal or administrative boundaries.

In our case, we have a cadastral dataset that includes both land parcels and building polygons. The building polygons represent all the buildings in the village, while the land parcels are only for a portion of the area, designated for specific use.

Our goal is to compare the two layers to see which buildings fall inside the designated land parcels and which ones, are located outside.

Let’s get started;

Fig.34 The land parcels layer, consisting of multiple polygon features, and the buildings layer are successfully loaded into SGIS Desktop, ready for further analysis.

The land parcels layer, consisting of multiple polygon features, has been successfully loaded, along with the buildings layer.

Now, we’ll open the ‘Select by Layer’ function. First, we click on the ‘Selection Mode’ dropdown to reveal the options, and we select “Polygons In Polygons”.

Next, from the second dropdown list, we choose ‘Buildings’ as this is the layer we want to select features from.

Lastly, for the condition layer, we’ll select the ‘Land Parcels’ layer. Since there are only two layers in the Layers panel, this choice is straightforward.

Fig.35 The ‘Select by Layer’ function is accessed, and the ‘Selection Mode’ dropdown reveals the available options. “Polygons In Polygons” is selected for the analysis.
Fig.36 The second dropdown menu is used to select the ‘Buildings’ layer, which contains the features to be analyzed and selected.
Fig.37 The ‘Land Parcels’ layer is selected from the dropdown as the condition layer for the spatial analysis.

Next, we click on ‘Select’ to continue with the process.

Fig.38 Clicking on the ‘Select’ button to execute the spatial selection process.

As shown in Fig.39, all building polygons that meet the criteria are immediately selected and highlighted.

Additionally, the selected elements are displayed in a tree-like list in the ‘Selected Elements’ panel.

Fig.39 Highlighted building polygons that meet the selection criteria, with corresponding elements listed in the ‘Selected Elements’ panel for easy navigation.
Fig.40 Zoomed-out view showing a few unselected buildings, which is correct since they do not meet the selection criteria, as they overlap with gaps or holes within a larger polygon.

An interesting detail in this case is that, as we zoom out, a few buildings remain unselected. This isn’t an error. If we temporarily disable the Buildings layer from the Layers panel, we can see that these buildings don’t meet the criteria because the areas they overlap aren’t polygons, but gaps within a larger polygon.

Fig.41 After temporarily disabling the Buildings layer, the gaps within the larger polygon become visible, confirming that the unselected buildings are not within actual polygons but instead overlap empty spaces.
Fig. 42 Demonstrating the ‘Pan to Element’ function, where users can right-click on a selected element to automatically zoom in on its exact location and geometry in the graphics panel. Additionally, options to expand or collapse tree items, remove elements from the selection, or export an element’s ID are available for further functionality.

We can select an element from the Selected Elements list, right-click on it, and choose ‘Pan to Element’. This will take us directly to that specific element, highlighting its geometry and location.

There are additional options, such as expanding or collapsing the tree items, removing an element from the selection, or exporting the element’s ID as a text file.

For demonstration purposes, we’ll now move ahead and use the ‘Unselected Elements in New Layer’ function. This will create a new layer in the Layers panel, containing all elements that were not part of the previous selection process.

Fig. 43 Demonstrating the use of the ‘Unselected Elements in New Layer’ function, which generates a new layer in the Layers panel, containing all elements that were not selected in the previous spatial query.
Fig. 44 The newly created layer, displayed in the attribute table, contains 428 building polygons. The Info bar at the bottom-right corner confirms 225 selected elements from the process, representing the building polygons that overlap with land parcels.

As shown, the new layer is created instantly. Upon opening the attribute table, we can see that this layer contains 428 elements, or building polygons. The Info bar in the bottom-right corner shows the number of selected elements from our process—225 building polygons.

If we compare this to the original buildings layer, which contains 653 building polygons, the numbers align perfectly. We selected 225 polygons that overlap with land parcels, while 428 polygons did not meet that criterion.

With this, we successfully complete the procedure.

Fig.45 The original buildings layer holds 653 polygons in total, confirming the accuracy of the process. This completes the procedure.

This criterion is particularly useful for analyzing the spatial relationship between point features and polylines, helping to determine whether specific points are directly on or along a polyline feature.

In this practical example, we’ll work with point data gathered through field measurements for the maintenance of a telecommunications network, specifically focusing on underground optical cable pipelines. The scenario involves an optical cable network, where each shapefile represents a different cable segment.The point coordinates represent the actual field data collected for maintenance purposes.

Our task is to overlay these points onto the network and identify which points align with specific cable segments. Let’s explore how this process is carried out using SGIS Desktop.

All the shapefile layers have been imported into the software, but they are initially disabled. To provide a clearer view of the cable segments, we’ll enable them one by one. In Fig.46, two cable segments are now visible in the Graphics panel.

Fig.46 Two cable segments are displayed on the Graphics panel after selectively enabling the relevant shapefile layers for clearer visualization.

Next, we’ll continue enabling each layer one by one until all five cable segments are visible. Each segment is color-coded differently for easy distinction.

Finally, we’ll enable the point layer containing the field measurement data.

Fig.47 Three optical cable segments, each distinguished by unique colors, are now enabled and visible on the Graphics panel for easier identification.
Fig.48 All five optical cable segments are now enabled and visible on the Graphics panel, while the point data remains disabled.

The point data consists of measurements taken along the trench of the telecommunications network, with additional points for segments that aren’t currently displayed. All of this data is stored in a single CSV file, rather than being divided by segments.

As shown in Fig.49, there are a large number of points to work with, so we need the quickest and most efficient way to sort these points by their respective segments.

Fig.49 A large number of point data is displayed on the Graphics panel, highlighting the need for a quick and efficient method to sort these points by their respective cable segments.

The ‘Select by Layer’ tool, specifically the ‘Points On Polylines’ option, offers a quick solution that saves us the hassle of manually drawing polygons around each cable segment to isolate points. Instead, we can easily set our selection mode and criteria—for instance, finding the points that fall directly on Segment 1.

So, let’s start with the first segment: We begin by opening the ‘Select by Layer’ function.

Fig.50 The ‘Select by Layer’ function is opened, ready to configure the selection for the first segment of the optical cable network.

Next, we select the “Points On Polylines” option from the dropdown list and click on it to proceed.

Fig.51 The “Points On Polylines” option is selected from the dropdown menu.

Next, we move to the second dropdown menu and select the Point layer, since that’s where we want to choose the points for our analysis.

Fig.52 The second dropdown menu is used to select the Point layer, which contains the field measurement data needed for further analysis.

Finally, we select the cable segment shapefile layer from the third dropdown menu, which will serve as the condition layer for our selection. With five segment layers loaded in the Layers panel, we’ll begin by choosing the first one.

Fig.53 The cable segment shapefile layer is selected as the condition layer from the third dropdown menu, with the first segment chosen for the selection process.
Fig.54 After clicking on ‘Select,’ no point elements are highlighted, despite their apparent proximity to the polyline segments. This indicates that the points do not actually lie directly on the polylines.

We then click on ‘Select’.

However, despite the point elements appearing to lie on the polyline segments, none of the points are selected.

This is because they aren’t precisely positioned on the polyline. By zooming in closely, we can see that the point features are not exactly aligned with the polyline.

In Fig. 55 and Fig.56, the misalignment is clearly visible, as only the two layers involved in the selection process remain enabled, making it easier to see that the points do not align with the polyline.

Fig.55 The misalignment is clearly visible, as only the two layers involved in the selection process remain enabled. This highlights that the point features do not align with the polyline segments.
Fig.56 The misalignment is further illustrated here for demonstration purposes, emphasizing that the entire polyline feature exhibits this discrepancy.

In situations like this, we would typically use the ‘Snap by Layer’ function, which allows us to resnap the polyline vertices to the points based on a defined proximity. However, for demonstration purposes, we’ll go ahead and repeat the selection process with the third segment layer from the Layers list.

Once again, we open the ‘Select by Layer’ dialog and set the same options as before. The only difference this time is that we’ll choose the third segment from the list for the third option.

Fig.57 The ‘Select by Layer’ dialog is opened again, with the same settings as before, but this time the third segment from the list is selected as the condition layer.

We click on ‘Select,’ and right away, the points are selected and highlighted on the Graphics panel. Additionally, all selected points appear in the ‘Selected Elements’ panel.

Fig.58 Upon clicking ‘Select,’ the relevant points are immediately highlighted on the Graphics panel, and all selected points are listed in the ‘Selected Elements’ panel.

We can either review each point one by one or export all of them into a separate layer for further processing.

Fig.59 Users can either examine each selected point individually or export all of them into a new layer for further analysis and processing.

We decide to export all the selected points into a new separate layer using the ‘Selected Elements in New Layer’ function.

Fig.60 The selected points are exported into a new separate layer using the ‘Selected Elements in New Layer’ function, allowing for further processing and analysis.

Once the new layer is created with only the filtered and selected points based on specific criteria, we can easily export the layer’s coordinates and attributes as separate CSV files. To do this, simply click on the ‘Coordinates to CSV’ or ‘Attributes to CSV’ option found in the ‘Element Data’ toolbox.

Fig.61 Once the new layer containing the filtered and selected points is created, users can export the coordinates and attributes as separate CSV files by clicking on the ‘Coordinates to CSV’ or ‘Attributes to CSV’ options in the ‘Element Data’ toolbox.

With this, we’ve successfully completed the procedure.

Fig.62 The procedure has been completed.

‘Polylines Intersect Polylines’ refers to a spatial relationship criterion where two or more polyline features intersect or cross each other at one or more points in a GIS environment. This criterion is used to identify places where different linear features, such as roads, pipelines, or utility lines, physically cross or share common points.

In GIS analysis, this helps ensure that certain connectivity, overlap, or crossing relationships are correctly represented between layers, aiding in tasks like network analysis, infrastructure management, and spatial data validation.

Our practical example involves working with a Detailed Urban Plan in a digital CAD format. This plan consists of multiple layers, including building lines, land parcels, existing streets, buildings, stormwater drainage, water supply systems, and more. Among these layers are underground power cables and underground telecommunication lines—both optical and copper. The telecommunication lines are categorized as either existing or planned.

In this example, we’ll focus on determining if, and where, the planned telecommunication optical cable trench intersects with the existing underground electrical power cables. These power cables are buried for electricity transmission and distribution, making this analysis crucial. It’s a high-risk task, as digging and trenching without proper knowledge of existing cables can be hazardous for field workers.

Our second analysis will focus on identifying which land parcels the existing new optical cable crosses. This is important for future assessments related to land ownership and legal rights.

Let’s dive in. SGIS integrates these capabilities into both SGIS Desktop and SGIS v.R software.

Fig. 63 Demonstrating a Detailed Urban Plan in digital CAD format, showcasing multiple layers such as building lines, land parcels, existing streets, buildings, stormwater drainage, and water supply systems.

Let’s begin by accessing the ‘Select by Layer’ function. You can find it on the main toolbar of the user interface—just click to open it.

Fig. 64 Accessing the ‘Select by Layer’ function from the main toolbar on the user interface.
Fig. 65 Displaying the dialog window after activating the ‘Select by Layer’ function, with the dropdown list showing the selection of the ‘Polygons Intersect Polygons’ spatial relationship criterion.

After activating the function, a dialog window will appear. From there, we simply open the dropdown list and choose the ‘Polygons Intersect Polygons’ spatial relationship criterion.

From the second dropdown list, we’ll choose the planned telecommunications optical cable trench layer, as that’s the focus of our spatial selection.

Then, from the third dropdown list, we’ll select the layer representing the underground electrical cables. Finally, we click ‘Select’ to execute the selection.

Fig.66 Selecting the planned telecommunications optical cable trench from the second dropdown list and the underground electrical cable layer from the third dropdown list.

As we can see, two optical cable trenches are highlighted on the graphics panel. The default highlight color is red, but as mentioned before, this can be customized. In this example, with so many layers, the selected lines may not stand out clearly.

Fig. 67 Two optical cable trenches are highlighted in red on the graphics panel. Though the red highlight color can be customized, the selected lines may be hard to spot among the many layers. They are clearly listed in the ‘Selected Elements’ panel on the right side of the interface for easy reference.

However, they are listed in the ‘Selected Elements’ panel on the right side of the interface.

To make it easier to work with the layers, we’ll export the selection as a separate layer using the ‘Selected Elements in New Layer’ function. This will allow us to disable all other layers, making the selected elements much clearer in the graphic panel.

Fig. 68 Exporting the selected optical cable trenches as a separate layer using the ‘Selected Elements in New Layer’ function, allowing us to simplify the display by disabling all other layers for clearer visualization in the graphic panel.
Fig.69 Selecting land parcels using the ‘Select by Layer’ function with the Polylines intersect Polylines mode. The Land Parcels layer is chosen as the layer to be selected, while the condition layer is set to the existing telecommunications cable trench.

Once we’ve completed the previous step, we can head back to the ‘Select by Layer’ function to repeat the process with different layers. This time, we want to identify and isolate the land parcels that the existing telecommunications cable trench crosses. These parcels are crucial for further analysis regarding land ownership and legal rights.

We’ll use the same selection mode—‘Polylines intersect Polylines’—since this is a CAD file, and the land parcels are represented as polylines rather than polygons. For the ‘Layer to be selected’, we’ll choose ‘Land Parcels’, and the condition layer will be the existing telecommunications cable trench. Now, we simply click on ‘Select’.

Fig.70 The land parcels are selected and highlighted on the graphics panel.
Fig.71 The parcels are separated into their own layer for better organization and further management.

The land parcels that meet our criteria are quickly selected and highlighted on the graphics panel. They’re also listed in the Selected Elements tree for easier management. Next, we’ll separate them into their own layer for better organization.

Next, we’ll disable all the layers in the Layers panel and only open the ones necessary for our analysis. This includes the land parcels, the planned and existing telecommunications cable trench, the underground electric power cable layer, and a layer for additional elements like pavements and similar polylines. We will also include the two separate layers created from our previous selections: the layer where the planned trench intersects with the electric cable and the parcels that the new telecommunications cable passes through.

Fig.72 The Layers panel is streamlined to show only the essential layers for our analysis, including land parcels, telecommunications trench, underground electric cable, and additional elements. This clearer workflow enhances processing efficiency. The interface resembles a CAD environment while functioning within a GIS framework, enabling users to input attributes into each layer.

By narrowing down the layers, our workflow becomes clearer for further processing. As shown in Fig.72, the interface resembles a CAD environment, even though it operates within a GIS framework, allowing users to input attributes into each layer.

We’ve included Fig.73 and Fig.74 to enhance visual clarity.

In Fig.73, the existing telecommunications trenchline is prominently displayed in a fuchsia color, with the separated land parcel polylines overlaid in a dashed red.

Fig.74 showcases the planned telecommunications cable trench in a bold yellow line, while the electrical cable network is represented by a thin sepia-colored polyline.

With this, we have completed the procedure.

Fig.73 The existing telecommunications trenchline is shown in fuchsia, clearly highlighting its position, while the separated land parcel polylines are overlaid in a dashed red for easy identification.
Fig.74 The planned telecommunications cable trench is illustrated with a bold yellow line, contrasting with the electrical cable network depicted as a thin sepia-colored polyline.

‘Differences – Polygons with Polygons’ refers to a spatial relationship in GIS that calculates the difference between two polygon layers. This relationship identifies areas in one polygon layer that do not overlap with another polygon layer.

For example:

  • If you have two polygon layers, the “difference” operation subtracts the areas where the polygons overlap, leaving only the parts unique to one of the layers.

This method is commonly used in GIS to identify excluded areas or highlight distinctions between regions. It has applications in urban planning, environmental monitoring, and land use analysis.

Here’s how it works:

When you apply the difference operation, the area of one polygon is subtracted from another. The result is a new polygon representing the part of the first polygon that does not overlap with the second.

A random example:

  1. Input:
    • Polygon A: A city park.
    • Polygon B: A new construction site that overlaps part of the park.
  2. Difference Result (A – B):
    • The output will be the part of the park (Polygon A) that isn’t covered by the construction site (Polygon B).

In our example, we’re working with two building layers. The first layer includes building footprints extracted from CAD sources and satellite imagery, while the second layer contains the official building footprints registered in the Government’s Real Estate Cadastre. Together, these layers represent the complete building layout for an urban municipality area.

Fig. 75 Data loaded in SGIS v.R showing two building layers: one with building footprints from CAD and satellite imagery, and the other with official footprints from the Government’s Real Estate Cadastre, covering an urban municipality area.

To demonstrate SGIS’s spatial relationship criteria, we’ll use the ‘Select by Layer’ option called Differences – Polygons with Polygons. Our goal is to select all the building polygons from the first layer that don’t overlap with those in the second layer.

In the previous examples, we used SGIS Desktop. Now, we’ll switch to SGIS v.R to show that these functions are available in both versions of the software.

Fig. 76 In the main menu toolbox, we find the ‘Select by Layer’ function.
Fig. 77 The dialog window showing the Selection Mode dropdown list, where ‘Differences – Polygons with Polygons’ is selected.

When the dialog window opens, we navigate to the ‘Selection Mode’ dropdown list, where we look for ‘Differences – Polygons with Polygons’. Once we find it, we click on it.

From the ‘Layer to be selected’ dropdown, we choose the Exported Building Footprints. Next, in the ‘Condition Layer’ dropdown, we select the Cadastral Building Polygons. Finally, we click on ‘Select’ to proceed.

Fig. 78 The dialog window displaying the selections made in the dropdown lists. The ‘Layer to be selected’ dropdown shows Exported Building Footprints, and the ‘Condition Layer’ dropdown shows Cadastral Building Polygons. The ‘Select’ button is highlighted for proceeding.
Fig. 79 The graphics panel showing the buildings that meet the selection criteria, which are highlighted. The ‘Selected Elements’ panel displays a tree-like list of attributes for each selected building.

As we can see, the buildings that meet our criteria are instantly selected and highlighted in the graphics panel. Additionally, in the ‘Selected Elements’ panel, a tree-like list is created, displaying the attributes of each selected element. By clicking on an element in this list, its data becomes visible, allowing us to view specific area information without needing to open the attributes table.

Fig. 80 The context menu displayed after right-clicking on a selected element from the Selected Element’s list, providing the option to pan to a specific feature in the graphics window.

We can right-click on any element if we want to pan to a specific feature in the graphics window.

Fig. 81 Selecting a specific building polygon from the list, to pan to in the graphics window.
Fig. 82 The procedure has been executed, and the selected building is now zoomed in.

Another helpful feature that SGIS automatically provides is the total number of selected elements from the spatial selection process, even after the procedure is complete and turned off.

In the infobar, we can see that we have selected a total of 3,339 elements, or building polygons, in our example.

To verify this, we can repeat the selection procedure. While the selection is active and the buildings are highlighted, we can open the attribute table. From there, we can confirm that the exact same number of building polygons is displayed.

Fig. 83 The infobar in SGIS displaying the total number of selected elements from the spatial selection process, showing a total of 3,339 building polygons.

This concludes our procedure.

Fig. 84 The attribute table in SGIS displaying the selected building polygons, confirming the total of 3,339 elements highlighted during the selection procedure.

‘Matching Points’ is a spatial relationship criterion used in GIS to identify points in one dataset that correspond exactly with points in another dataset, based on their spatial location.

This criterion is used to find identical point features between two layers. Here, point features from two datasets are compared to determine if they share the same location.

This spatial analysis is used for identifying corresponding or duplicate points between layers, which can be essential for tasks like data validation, merging datasets, or ensuring data consistency.

One of the main uses of ‘Matching Points’ in GIS is data validation. When integrating datasets from different sources, you can use ‘Matching Points’ to check for duplication or consistency between the datasets. If points don’t match as expected, it could indicate errors in data collection or input.

Another key use is quality control. Users can use this criterion to ensure that point data from a newly surveyed dataset matches existing official data, such as matching new geospatial survey data to an existing cadastral layer or infrastructure dataset.

One more important use worth mentioning is data merging. If for example we’re working with multiple point datasets representing the same features (e.g., city street lights collected by different teams), ‘Matching Points’ allows you to combine the datasets, ensuring that duplicate entries are removed, and attributes are merged.

Fig. 85 Three datasets of land survey point data displayed on the graphics panel, with the first dataset in lime green, the second in sepia, and the third in blue.

In this practical example, we’re working with three different datasets of land survey point data. We’ll use the Matching Points criterion to check for any duplicates across the datasets before merging them into one file. The first dataset is displayed in lime green on the graphics panel, the second in sepia, and the third in blue.

We’ll begin by using the ‘Select by Layer’ function.

Fig. 86 Accessing the ‘Select by Layer’ function from the main menu toolbar.

Next, select the ‘Matching Points’ option from the ‘Selection Mode’ dropdown list in the dialog window.

Fig. 87 Selecting the ‘Matching Points’ option from the ‘Selection Mode’ dropdown list in the dialog window.

Then, from the second dropdown list labeled ‘Layer to be selected,’ we will choose the first measurement dataset, named Area 1.

Fig. 88 Selecting the first measurement dataset, named Area 1, from the ‘Layer to be selected’ dropdown list.

From the ‘Condition Layer’ dropdown, we’ll choose Area 2. This allows us to select and highlight all the points in Area 1 that are geometrically identical to those in Area 2, essentially identifying the duplicate points present in both layers. Once we have selected all the duplicates, we can either separate them into a new layer or delete them using the ‘Delete Elements’ tool.

Fig. 89 From the ‘Condition Layer’ dropdown, we select the point data located in the Area 2 layer.

Next, we click on ‘Select’ to proceed.

Fig. 90 Clicking on ‘Select’ to initiate the selection process.

The points are instantly selected and highlighted in bright yellow. It’s clear that many points overlap between Area 1 and Area 2. Next, we’ll clear the selection to see if there are also numerous matching points from Area 2 in Area 3.

Fig. 91 Points are instantly selected and highlighted in bright yellow, indicating numerous overlaps between Area 1 and Area 2.

To clear the selection, we’ll head to the ‘Clear Selection List’ function found in the main toolbar of the user interface.

Fig. 92 Navigating to the ‘Clear Selection List’ function in the main toolbar to remove the current selection.

After deselecting the points, we’ll go through the procedure again and reopen the ‘Select by Layer’ dialog. We’ll keep the Selection Mode set to Matching Points. This time, we’ll change the selections for the ‘Layer to be selected’ and the ‘Condition Layer.’ From the ‘Layer to be selected’ dropdown, we’ll choose the measured points labeled as Area 3.

Fig. 93 Reopening the ‘Select by Layer’ dialog after deselecting points, with the Selection Mode still set to Matching Points. The ‘Layer to be selected’ dropdown now shows the measured points labeled as Area 3, indicating the new dataset for the selection process.

This time, we’ll choose Area 2 from the ‘Condition Layer’ dropdown list.

Fig. 94 Selecting Area 2 from the ‘Condition Layer’ dropdown list in the dialog window.

Once again, we click on ‘Select’ to start the process.

Fig. 95 Clicking on ‘Select’ to initiate the matching points selection process.

We can now see the set of matching points, which are points from Area 3 that coincide with those from Area 2. To illustrate the function, we’ll isolate these points into a separate layer. This will allow us to export them later and continue with our work, as we are still waiting for a few more datasets from the land surveyors.

These points will eventually be used to produce contour lines for the terrain, and once we have all the datasets collected and complete, we’ll merge them into one comprehensive file.

Fig.96 The second set of matching points is highlighted in the graphics panel window.

For now, let’s proceed with the ‘Selected Elements in New Layer’ function. We’ll name the newly created layer and click ‘OK.’ The new layer will appear instantly in the Layers panel.

Fig.97 Initiating the ‘Selected Elements in New Layer’ function to create a new layer. After naming the layer and clicking ‘OK,’ the newly created layer appears immediately in the Layers panel.

If someone wishes to delete the selected points—since they already exist in the other layer (Area 2)—they can easily do this by clicking the ‘Delete Element’ function in the ‘Element Data’ panel. Since all the points are selected, they will be deleted at once.

With that, we’ll conclude our procedure.

Fig.98 The procedure is complete.

The ‘Matching Polylines’ spatial relationship criterion refers to identifying polylines in one dataset that exactly correspond with polylines in another dataset within a GIS environment, based on their spatial geometry or location. This criterion helps in identifying identical line features between the two layers.

Fig.99 Overview of the telecommunications network infrastructure, highlighting the elements such as manholes, pipes, distribution cabinets, connectors, trench lines, and optical cables involved in the spatial selection process.

In our ninth practical example, we’ll be working with a telecommunications network that includes various infrastructure elements such as manholes, pipes, distribution cabinets, connectors, trench lines, and optical cables.

Given the multiple layers and datasets involved, we want to select all the telecommunication cables that are located inside the designated pipes. Additionally, we want to identify where underground pipes have already been placed along the trench lines.

Let’s get started.

Fig.100 Selecting the ‘Matching Polylines’ option from the first dropdown menu under the ‘Selection Mode’ in the ‘Select by Layer’ function.
Fig.101 Selecting the ‘Cable’ layer from the second dropdown menu, indicating the features we want to highlight during the spatial selection process.

We’ve added a basemap in the background for better visual clarity. Now, let’s proceed by opening the ‘Select by Layer’ function. First, we navigate to the dropdown menu and choose the ‘Matching Polylines’ option for the Selection Mode.

Next, from the second dropdown, we select the layer containing the features we want to highlight— in this case, the ‘Cable’ layer. Then, from the third dropdown, which sets the condition layer, we select the ‘Pipes’ layer to define the selection criteria.

Finally, we click ‘Select’ to run the process.

Fig.102 Selecting the ‘Pipes’ layer from the third dropdown menu to establish it as the condition layer for the spatial selection process.
Fig.103 Clicking the ‘Select’ button to execute the spatial selection process for matching polylines between the ‘Cable’ and ‘Pipes’ layers.
Fig.104 The highlighted optical cable network from a specific telecommunications operator, showing the pipes it passes through.

As shown in Fig.104, the optical cable network is highlighted, indicating the pipes it runs through. From this selection, users can isolate the cable elements and add additional attributes, create a new layer, or use the ‘Selected Elements’ panel to review and manage specific elements without opening the full attributes table. The attributes table also offers additional options for previewing elements on the graphics panel window based on specific attribute field conditions, but we’ll explain that in another use case documentation.

Fig.105 Once the desired cable elements are selected, SGIS allows users to isolate and add additional attributes, create a new layer, or utilize the ‘Selected Elements’ panel for quick review and management without accessing the complete attributes table.

We’ll go through the process once more to assess the progress of the fieldwork by checking the placement of the pipes along the underground trench line. This will give us insight into how much work the construction team has completed. To do this, we need to select all the pipes that correspond to the trench layer. So, let’s click on ‘Select’ to begin.

Fig.106 Revisiting the selection process to evaluate fieldwork progress by examining the placement of pipes along the underground trench line, helping us understand the construction team’s completion status. In this step, we aim to select all pipes that correspond to the trench layer.
Fig.107 The pipes are selected and highlighted, completing the selection procedure.

And with that, we’ve completed our selection procedure.

The ‘Matching Polygons’ spatial criterion in GIS is used to identify polygons from one dataset that match polygons in another, typically based on their spatial geometry or location. In SGIS, both in Desktop and v.R versions, this criterion focuses on the precise geometric properties of the datasets. When searching for matching features, the algorithm checks for polygons that do not exceed a tolerance of 0.02 meters (2 cm) in length between them. Additionally, the vertices that make up these polygons must align exactly for the match to be valid.

This feature is especially valuable in sectors like cadastral mapping, land administration, and urban planning, as it allows for efficient management of large-scale projects where precision is critical for both legal and practical purposes.

In our practical example, we’ll demonstrate this by using the ‘Matching Polygons’ criterion to compare a cadastral dataset with polygonal footprints representing urban parcels. These parcels are designated for residential use, and in addition to them, we have data on streets and buildings. Our goal will be to identify how many of these urban residential parcels exactly match or coincide with the official cadastral boundaries. Let’s dive in!

Fig.108 The urban residential parcels are overlaid with the cadastral boundaries, with streets and building data also visible for reference.

Once all the data has been imported, we’ll go to the ‘Select by Layer’ function.

From the Selection Mode dropdown menu, we’ll choose the ‘Matching Polygons’ option.

Next, under the ‘Layer to be selected’ dropdown, we’ll select the Urban parcels layer, as we want to highlight parcels from this dataset.

The Cadastral parcels layer will act as the condition layer for this selection.

Fig.109 The ‘Select by Layer’ function is initiated after importing all relevant data, setting up the process for comparing urban residential parcels with cadastral boundaries.
Fig.110 The ‘Matching Polygons’ selection mode is activated from the ‘Select by Layer’ function.

From the condition layer dropdown, we’ll select the Cadastral Parcels layer.

As mentioned earlier, it’s important to note that the algorithm has a default tolerance of 0.02 meters. Additionally, the matching process will only recognize polygons as identical if they have the exact same number of vertices—any difference in vertex count will disqualify them from being considered a match.

Once all the layers are set, simply click ‘Select’ to begin the process.

Fig.111 The ‘Select’ button is clicked to initiate the process for the matching polygons selection.

As shown in Fig.112, the polygons that meet the matching criteria are highlighted on the graphics panel.

Additionally, the selected elements are listed in the ‘Selected Elements’ panel in a tree-like structure. Since the list shows four elements, but only three are visible on the graphics panel, we’ll select the first item in the list, right-click on it, and use the ‘Pan to Element’ function to locate it on the map.

Fig.112 The polygons that match the selection criteria are highlighted on the graphics panel, with the corresponding selected elements displayed in a tree-like structure in the ‘Selected Elements’ panel.
Fig.113 The first element in the ‘Selected Elements’ list is highlighted, and the ‘Pan to Element’ function is utilized to locate the selected polygon on the graphics panel.
Fig. 114 The first selected element is highlighted on the graphics panel, enhancing visual clarity of its geometry and location.

Immediately, the first element is highlighted on the graphics panel, offering better visual clarity regarding its geometry and location.

Next, we’ll select the second element from the ‘Selected Elements’ list and right-click on it to pan to that element as well.

Fig. 115 Utilizing the ‘Pan to Element’ function to zoom in or locate polygons that may not be immediately visible on the graphics panel, enhancing the understanding of the data.

Next, we’ll separate the selected urban parcels into a new layer.

After that, we’ll switch to CAD mode to continue editing the data.

This will bring our procedure to a close.

Fig. 116 Separating the selected urban parcels into a new layer, followed by switching to CAD mode to continue editing the data, concluding the current procedure.

The ‘Polygons Containing Points’ spatial criterion is used to select polygons that contain specific points within them. This criterion is highly valuable in GIS for several reasons;

It allows users to analyze the spatial relationships between different geographic features, such as identifying which areas (polygons) include particular locations (points). This is particularly useful in applications like land-use analysis, resource management, and urban planning.

It also helps in linking point data—such as population centers, sensor locations, or incidents—to larger geographic areas like administrative zones, land parcels, or ecosystems. This is beneficial for demographic studies, service coverage analysis, and environmental monitoring.

In cadastral mapping and infrastructure projects, it ensures that point features, such as infrastructure nodes, are accurately positioned within their designated areas (polygons), supporting spatial data accuracy.

In our practical example, we’ll be working with infrastructure point data overlaid on a designated polygon area, representing a specific telecommunication zone. This entire network is connected to one particular distribution cabinet, illustrating how this criterion helps manage and analyze complex network systems.

We need to evaluate which street numbers, represented by points in the street number layer across all zones, fall within Zone 1. Additionally, Zone 1 is divided into several polygon areas, so we’ll be assessing which specific polygons contain which points.

Fig.117 Data imported into SGIS Desktop.

In practice, we begin this process using the ‘Polygons Containing Points’ selection mode and then finalize it with the ‘Points in Polygons’ mode. However, since we are demonstrating only one function here, our focus will be on the ‘Polygons Containing Points’ selection mode. For this example, we’ll wrap up with that. A complete guide, covering multiple procedures from start to finish, will be available in more in-depth case studies.

Fig. 118 A visual representation of Zone 1, highlighting the various distinct areas within it. For demonstration purposes, one polygon feature has been selected to showcase the selection process.

Zone 1 consists of several distinct areas, and for demonstration purposes, we’ll select just one polygon feature.

Fig.119 Adjusted the style of the ‘Street No.’ layer, displaying points as upward-facing red triangles.

Before we begin the selection process, let’s adjust the visual properties of the Street Number layer. We’ll change the points to upward-facing red triangles. This adjustment will help differentiate the various point layers, making it easier for users to see and understand the data more clearly.

Next, we’ll set the selection mode to ‘Polygons Containing Points.’ The layer to be selected is ‘polygon-DP,’ which stands for Divided Parcels and contains all the parcels within Zone 1. For the condition layer, we’ll choose ‘Street Name,’ a point layer that holds all the street name points for the three zone areas.

Fig.120 Setting the selection mode to ‘Polygons Containing Points,’ selecting the ‘polygon-DP’ layer for Zone 1 parcels, and the ‘Street Name’ layer for street name points across all zones.
Fig.121 Clicking the ‘Select’ button initiates the process for selecting polygons that contain the relevant street number points.

We click on ‘Select’ to initiate the selection process.

The polygons within Zone 1 that meet the specified criteria are immediately highlighted and selected. As shown in Fig.122, five polygons in Zone 1 do not contain any street name points, while seven polygon features have been successfully selected.

Fig.122 The selected polygons within Zone 1 are highlighted. Five polygons do not contain any street name points, while seven polygons meet the selection criteria and are highlighted.

We’ll use the ‘Selected Elements in New Layer’ function to isolate these 7 selected polygons into a new, separate layer.

Fig.123 After selecting the ‘Selected Elements in New Layer’ function, a prompt will appear, asking us to assign a name to the newly created layer.

The new layer is created and displayed with yellow polygon boundaries in a no-fill style, making the data we want to focus on easier to see.

With this step, we conclude our selection process.

Fig.124 The new layer is shown with yellow polygon boundaries and no-fill, providing clear visibility of the selected data. This marks the completion of the selection process.