Add height (Oriol approach)
This commit is contained in:
parent
212f472716
commit
e58710e892
47
varennes_single_processes/add_height_to_nrcan.py
Normal file
47
varennes_single_processes/add_height_to_nrcan.py
Normal file
|
@ -0,0 +1,47 @@
|
|||
"""
|
||||
add_height module
|
||||
Project Developer: Alireza Adli alireza.adli@concordia.ca
|
||||
"""
|
||||
# You need to clone mtl_gis_oo project and
|
||||
# add it as a dependency of this new project
|
||||
from scrub_layer_class import *
|
||||
import pandas as pd
|
||||
|
||||
# Change the paths by the location of your QGIS installation and datalayers
|
||||
qgis_path = 'C:/Program Files/QGIS 3.34.1/apps/qgis'
|
||||
|
||||
varennes_nrcan_path = \
|
||||
'C:/Users/a_adli/PycharmProjects/varennes_gis_oo/' \
|
||||
'data/initial_data/height/nrcan_tolerance_7/' \
|
||||
'nrcan_tolerance_7_removed_dups.shp'
|
||||
|
||||
varennes_nrcan = ScrubLayer(
|
||||
qgis_path, varennes_nrcan_path, 'NRCan Varennes')
|
||||
|
||||
# Deleting duplicated layer unnecessary fields (will be added later)
|
||||
varennes_nrcan.delete_field('acqtech')
|
||||
varennes_nrcan.delete_field('acqtech_en')
|
||||
varennes_nrcan.delete_field('acqtech_fr')
|
||||
varennes_nrcan.delete_field('provider')
|
||||
varennes_nrcan.delete_field('provider_e')
|
||||
varennes_nrcan.delete_field('provider_f')
|
||||
varennes_nrcan.delete_field('datemin')
|
||||
varennes_nrcan.delete_field('datemax')
|
||||
varennes_nrcan.delete_field('haccmin')
|
||||
varennes_nrcan.delete_field('haccmax')
|
||||
varennes_nrcan.delete_field('vaccmin')
|
||||
varennes_nrcan.delete_field('vaccmax')
|
||||
varennes_nrcan.delete_field('centroid_x')
|
||||
varennes_nrcan.delete_field('centroid_y')
|
||||
varennes_nrcan.delete_field('min_x')
|
||||
varennes_nrcan.delete_field('min_y')
|
||||
varennes_nrcan.delete_field('max_x')
|
||||
varennes_nrcan.delete_field('max_y')
|
||||
|
||||
|
||||
# varennes_nrcan_duplicate.delete_field('heightmin')
|
||||
# varennes_nrcan_duplicate.delete_field('heightmax')
|
||||
# varennes_nrcan_duplicate.delete_field('elevmin')
|
||||
# varennes_nrcan_duplicate.delete_field('elevmax')
|
||||
# varennes_nrcan_duplicate.delete_field('bldgarea')
|
||||
# varennes_nrcan_duplicate.delete_field('comment')
|
Loading…
Reference in New Issue
Block a user