Skip to content

Latest commit

 

History

History
26 lines (25 loc) · 1.71 KB

File metadata and controls

26 lines (25 loc) · 1.71 KB

Tasks_Automation

This project demonstrates various task automation techniques using tools like PyQGIS, the graphical modeler, ArcPy, ModelBuilder, FME, and more. I'll also share some tasks done using QGIS & ArcGis.

Tables of contents


1 - How to Split a Line Layer Using a Point Layer in QGIS ?

The goal is to split the line at each point. The challenge is that some points don't intersect the line. initial step To split the line, you can follow this step :

  • Using QGIS :
    • Use the tool "Snap geometries to layer" from the processing toolbox. You need to set the parameter as show in the image. This will create a new point layer where all the point intersect the line layer. snap point
    • Create a small buffer from point layer. Note that the layer unit is in degree. Buffer
    • Convert buffer (polygon) to line : You can use the tool "Polygons to lines" from the processing Toolbox. Polygons to line
    • Use the tool "Split with lines" from the processing toolbx. This will split Line layer every where we have a point layer (buffer --> line). split
    • This is the result result
  • Using Graphical Modeler : You can go to the menu Processing --> Graphical modeler. The model will appear. After that you can go to Model --> Open model. You can load the model. model
  • Using PyQGIS : You can open the code in the python console result python