Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a2f0fae

Browse files
vcloarecgithub-actions[bot]
authored andcommittedMar 15, 2023
fix #52189
1 parent 5da9cd2 commit a2f0fae

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
 

‎src/core/qgselevationshadingrenderer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,16 @@ void QgsElevationShadingRenderer::writeXml( QDomElement &elem, const QgsReadWrit
114114
elem.setAttribute( QStringLiteral( "combined-method" ), static_cast<int>( mCombinedElevationMethod ) );
115115

116116
elem.setAttribute( QStringLiteral( "edl-is-active" ), mRenderEdl ? 1 : 0 );
117-
elem.setAttribute( QStringLiteral( "edl-strength" ), mEyeDomeLightingStrength );
118-
elem.setAttribute( QStringLiteral( "edl-distance" ), mEyeDomeLightingDistance );
117+
elem.setAttribute( QStringLiteral( "edl-strength" ), QString::number( mEyeDomeLightingStrength ) );
118+
elem.setAttribute( QStringLiteral( "edl-distance" ), QString::number( mEyeDomeLightingDistance ) );
119119
elem.setAttribute( QStringLiteral( "edl-distance-unit" ), static_cast<int>( mEyeDomeLightingDistanceUnit ) );
120120

121121
elem.setAttribute( QStringLiteral( "hillshading-is-active" ), mRenderHillshading ? 1 : 0 );
122-
elem.setAttribute( QStringLiteral( "hillshading-z-factor" ), mHillshadingZFactor );
122+
elem.setAttribute( QStringLiteral( "hillshading-z-factor" ), QString::number( mHillshadingZFactor ) );
123123
elem.setAttribute( QStringLiteral( "hillshading-is-multidirectional" ), mHillshadingMultiDir ? 1 : 0 );
124124

125-
elem.setAttribute( QStringLiteral( "light-altitude" ), mLightAltitude );
126-
elem.setAttribute( QStringLiteral( "light-azimuth" ), mLightAzimuth );
125+
elem.setAttribute( QStringLiteral( "light-altitude" ), QString::number( mLightAltitude ) );
126+
elem.setAttribute( QStringLiteral( "light-azimuth" ), QString::number( mLightAzimuth ) );
127127
}
128128

129129
void QgsElevationShadingRenderer::readXml( const QDomElement &element, const QgsReadWriteContext & )

‎src/ui/qgselevationshadingrenderersettingswidget.ui

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272
<property name="toolTip">
7373
<string>Vertical exageration for hillshading</string>
7474
</property>
75+
<property name="decimals">
76+
<number>6</number>
77+
</property>
7578
<property name="maximum">
7679
<double>9999999999999999455752309870428160.000000000000000</double>
7780
</property>

0 commit comments

Comments
 (0)
Please sign in to comment.