Duplicate the layer

This commit is contained in:
Alireza Adli 2024-08-16 11:04:31 -04:00
parent d2d6f21a73
commit 6282d32cf4
2 changed files with 28 additions and 1 deletions

View File

@ -1,4 +1,8 @@
"""This module has been developed to accomodate single tasks that may not be
"""
process_property_assessment_points_shp module
The workflow of processing taxpayer data shape layer (property assessment 2022).
The dataset has points instead of polygons.
This module has been developed to accomodate single tasks that may not be
added to the main Varennes workflow (handle_varennes_ds_workflow)
Project developer: Alireza Adli alireza.adli@concordia.ca
"""

View File

@ -0,0 +1,23 @@
"""
handle_varennes_ds_workflow module
The workflow of cleaning and updating the buildings around
Varennes Public Library dataset.
Project Developer: Alireza Adli alireza.adli@concordia.ca
"""
from scrub_layer_class import *
qgis_path = 'C:/Program Files/QGIS 3.34.1/apps/qgis'
nrcan_varennes = 'C:/Users/a_adli/PycharmProjects/varennes_gis_oo/' \
'data/initial_data/endeavor/nrcan_centroid_main/' \
'nrcan_centroid_main.shp'
duplcated = 'C:/Users/a_adli/PycharmProjects/varennes_gis_oo/' \
'data/initial_data/endeavor/nrcan_centroids_1/' \
'auto_building_2.shp'
# First, the layer will be duplicated as some records are going to be removed
nrcan_varennes = ScrubLayer(qgis_path, nrcan_varennes, 'NRCan Varennes')
nrcan_varennes_duplicate = nrcan_varennes.duplicate_layer(duplcated, 'NRCan duplicated')