Trying Out Various QGIS Processing
Tags: qgis, foss4g, gis, processing
Published: 2022-12-14 10:36:06

![img](https://day-journal.com/memo/images/try-096_01.png)

<br>

### I've been experimenting with QGIS processing :tada:  

<br>

QGIS processing can be used to process a variety of location data. Processing can be used in GUI, batch processing, Python scripting, and other methods. In this article, I will show you how to use GUI!

I have tried more than 60 different types of vector processing in "[dayjournal memo](https://day-journal.com/memo/tags/QGIS/)." I'd like to recommend five of them for you this time! Processing can be used for a variety of other processes, including raster. Check them out!

<br>

The following is a detailed explanation.

- Advance Preparation
- Create BBox data
- Intersection Point Creation
- Data selection by spatial search
- Creating the center of gravity of geometry
- Create a group of equally spaced points

## Advance Preparation

The following repository contains sample data of points, lines, and polygons. Please use it for verification.

[GitHub](https://github.com/dayjournal/data/tree/main/try-096)

Open the Processing Toolbox.
Start QGIS → Processing → Toolbox
![img](https://day-journal.com/memo/images/try-096_02.png)

<br>

## Create BBox data
Automatically creates a BBox for each geometry.

Processing Toolbox → Vector Geometry → Output BBox
![img](https://day-journal.com/memo/images/qgis-090_01.png)  

Set the target layer and destination as desired and execute.
![img](https://day-journal.com/memo/images/qgis-090_02.png)

Result
![img](https://day-journal.com/memo/images/qgis-090_03.png)    

https://day-journal.com/memo/qgis-090/

<br>

## Intersection Point Creation
Create points where geometry intersects.

Processing Toolbox → Vector Overlay → Intersect Lines
![img](https://day-journal.com/memo/images/qgis-087_01.png)  

Set Target Layer 1, Target Layer 2, and Destination as desired, and execute.
![img](https://day-journal.com/memo/images/qgis-087_02.png)

Result
![img](https://day-journal.com/memo/images/qgis-087_03.png)  

https://day-journal.com/memo/qgis-087/

<br>

## Data selection by spatial search
The Within function is used to extract points contained in polygons. Other functions can also be used.

Processing Toolbox → Vector Selection → Selection by Location
![img](https://day-journal.com/memo/images/qgis-076_01.png)  

Set the target layer, spatial search method, compared layers, and selection status arbitrarily, and then execute.
![img](https://day-journal.com/memo/images/qgis-076_02.png)

Result
![img](https://day-journal.com/memo/images/qgis-076_03.png)  

https://day-journal.com/memo/qgis-076/

<br>

## Creating the center of gravity of geometry
Create a point at the center of gravity of geometry.

Processing Toolbox → Vector Geometry → Center of Gravity
![img](https://day-journal.com/memo/images/qgis-122_01.png)  

Set the target layer and destination arbitrarily and execute.
![img](https://day-journal.com/memo/images/qgis-122_02.png)

Result
![img](https://day-journal.com/memo/images/qgis-122_03.png)  

https://day-journal.com/memo/qgis-122/

<br>

## Create a group of equally spaced points
Create points on a line at intervals of a specified distance.

Processing Toolbox → Vector Geometry → Points along Geometry
![img](https://day-journal.com/memo/images/qgis-095_01.png)  

Set the target layer, distance, start offset, end offset, and destination as desired, and execute.
![img](https://day-journal.com/memo/images/qgis-095_02.png)

Result
![img](https://day-journal.com/memo/images/qgis-095_03.png)  

https://day-journal.com/memo/qgis-095/

<br>

Related Articles
{% link https://dev.to/aws-heroes/spatial-search-with-amazon-opensearch-service-and-visualized-it-in-qgis-2m70 %}
{% link https://dev.to/aws-builders/spatial-search-of-amazon-s3-data-with-amazon-athena-and-visualized-it-in-qgis-2b9a %}
{% link https://dev.to/aws-builders/build-a-qgis-environment-on-amazon-workspaces-5b5f %}
{% link https://dev.to/aws-builders/using-qgis-and-amazon-auroras-postgresql-postgis-to-display-location-data-5ecm %}

<br>

References
[QGIS](http://www.qgis.org/ja/site/)