osc_generator/edit_environment.py
def add_environment(self):
        """
        Inserts environment variables into dimensionless QGIS layer.
        """
        self.clear_existing_attributes()

        datetime = self.TimeofDay.dateTime().toString("yyyy-MM-ddThh:mm:ss")
        datatime_animation = self.TimeAnimation.isChecked()
        cloud = self.CloudState.currentText()
        fog_range = self.Fog_VisualRange.text()
        sun_intensity = self.Sun_Intensity.text()
        sun_azimuth = self.Sun_Azimuth.text()
        sun_elevation = self.Sun_Elevation.text()
        percip_type = self.Precip_Type.currentText()
        percip_intensity = self.Precip_Intensity.text()

        feature = QgsFeature()
        feature.setAttributes([datetime, datatime_animation,
                               cloud, fog_range,
                               sun_intensity, sun_azimuth, sun_elevation,
                               percip_type, percip_intensity])
        self._data_provider.addFeature(feature)

        message = "Environment variables added!"
        display_message(message, level="Info")

        Inserts environment variables into dimensionless QGIS layer.
        
Inserts environment variables into dimensionless QGIS layer.
Inserts environment variables into dimensionless QGIS layer .
def add_environment(self):
        self.clear_existing_attributes()
        datetime = self.TimeofDay.dateTime().toString("yyyy-MM-ddThh:mm:ss")
        datatime_animation = self.TimeAnimation.isChecked()
        cloud = self.CloudState.currentText()
        fog_range = self.Fog_VisualRange.text()
        sun_intensity = self.Sun_Intensity.text()
        sun_azimuth = self.Sun_Azimuth.text()
        sun_elevation = self.Sun_Elevation.text()
        percip_type = self.Precip_Type.currentText()
        percip_intensity = self.Precip_Intensity.text()
        feature = QgsFeature()
        feature.setAttributes([datetime, datatime_animation,
                               cloud, fog_range,
                               sun_intensity, sun_azimuth, sun_elevation,
                               percip_type, percip_intensity])
        self._data_provider.addFeature(feature)
        message = "Environment variables added!"
        display_message(message, level="Info")
def add_environment ( self ) : self . clear_existing_attributes ( ) datetime = self . TimeofDay . dateTime ( ) . toString ( "yyyy-MM-ddThh:mm:ss" ) datatime_animation = self . TimeAnimation . isChecked ( ) cloud = self . CloudState . currentText ( ) fog_range = self . Fog_VisualRange . text ( ) sun_intensity = self . Sun_Intensity . text ( ) sun_azimuth = self . Sun_Azimuth . text ( ) sun_elevation = self . Sun_Elevation . text ( ) percip_type = self . Precip_Type . currentText ( ) percip_intensity = self . Precip_Intensity . text ( ) feature = QgsFeature ( ) feature . setAttributes ( [ datetime , datatime_animation , cloud , fog_range , sun_intensity , sun_azimuth , sun_elevation , percip_type , percip_intensity ] ) self . _data_provider . addFeature ( feature ) message = "Environment variables added!" display_message ( message , level = "Info" )
Inserts environment variables into dimensionless QGIS layer.
Inserts environment variables into dimensionless QGIS layer .
"""
        Inserts environment variables into dimensionless QGIS layer.
        """
self