ReprojectionServiceOptionsSourceSizeFactor Property |
Gets or sets the factor used for determining the size of the images requested from the inner map service.
Namespace:
Ptv.XServer.Controls.Map.Tools.Reprojection
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public Nullable<double> SourceSizeFactor { get; set; }
Public Property SourceSizeFactor As Nullable(Of Double)
Get
Set
public:
property Nullable<double> SourceSizeFactor {
Nullable<double> get ();
void set (Nullable<double> value);
}
member SourceSizeFactor : Nullable<float> with get, set
Property Value
Type:
NullableDoubleRemarks
When re-projection applies, the size of the images requested from the inner WMS map services must
be determined in a way to allow re-projection to produce high quality results. However, as the
source and target aspect ratio may differ significantly, it is not quite easy to determine a
viable source size.
The general idea is to base the source size calculations on an amount pixels, which can simply be
transformed into the source size via the aspect ratio of the source bounding box. Based on the
request target size, we can determine a minimum and maximum source size using the shortest and
the longest side of the target rectangle as the base in the calculation. The minimum and maximum
size then can be transformed into a minimum and maximum pixel amount which, using the value of
sourceSizeFactor, can in turn be transformed into the final source amount of pixels.
If sourceSizeFactor contains a positive value, the source size will be determined as described
above: source = min + (max - min)*sourceSizeFactor.
If sourceSizeFactor is invalid (or null) the source amount of pixels will be set to equal
the target amount of pixels: source = target.
If sourceSizeFactor is negative, its absolute value will be multiplied with the target amount
of pixels: source = target * sourceSizeFactor.
See Also