diff --git a/varennes_single_processes/add_height_to_nrcan.py b/varennes_single_processes/add_height_to_nrcan.py new file mode 100644 index 0000000..6834136 --- /dev/null +++ b/varennes_single_processes/add_height_to_nrcan.py @@ -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') \ No newline at end of file