@@ -49,7 +49,7 @@ def enableStructuralPointsZCheckBox(self, enable):
4949 self .useStructuralPointsZCoordinatesCheckBox .setChecked (self .structural_points_use_z )
5050 else :
5151 self .useStructuralPointsZCoordinatesCheckBox .setChecked (False )
52- def set_basal_contacts (self , layer , unitname_field = None ):
52+ def set_basal_contacts (self , layer , unitname_field = None , use_z_coordinate = False ):
5353 self .basalContactsLayer .setLayer (layer )
5454 if layer is not None and layer .isValid ():
5555 if layer .wkbType () != QgsWkbTypes .Unknown :
@@ -62,7 +62,9 @@ def set_basal_contacts(self, layer, unitname_field=None):
6262 self .enableBasalContactsZCheckBox (False )
6363 if unitname_field :
6464 self .unitNameField .setField (unitname_field )
65- def set_orientations_layer (self , layer , strike_field = None , dip_field = None , unitname_field = None , orientation_type = None ):
65+ self .basal_contacts_use_z = use_z_coordinate
66+ self .useBasalContactsZCoordinatesCheckBox .setChecked (use_z_coordinate )
67+ def set_orientations_layer (self , layer , strike_field = None , dip_field = None , unitname_field = None , orientation_type = None , use_z_coordinate = False ):
6668 self .structuralDataLayer .setLayer (layer )
6769 if layer is not None and layer .isValid ():
6870 if layer .wkbType () != QgsWkbTypes .Unknown :
@@ -83,6 +85,9 @@ def set_orientations_layer(self, layer, strike_field=None, dip_field=None, unitn
8385 index = self .orientationType .findText (orientation_type , Qt .MatchFixedString )
8486 if index >= 0 :
8587 self .orientationType .setCurrentIndex (index )
88+ if use_z_coordinate :
89+ self .structural_points_use_z = use_z_coordinate
90+ self .useStructuralPointsZCoordinatesCheckBox .setChecked (use_z_coordinate )
8691 def onBasalContactsChanged (self , layer ):
8792 self .unitNameField .setLayer (layer )
8893 self .data_manager .set_basal_contacts (layer , self .unitNameField .currentField ())
0 commit comments