C# Class SuperMap.Web.Utilities.ScaleHelper

${utility_ScaleHelper_Title}

${utility_ScaleHelper_Description}

Show file Open project: SuperMap/iClient-for-Silverlight

Public Methods

Method Description
GetSmDpi ( Rectangle2D referViewBounds, Rect referViewer, double referScale, Unit unit = Unit.Degree, double datumAxis = 6378137 ) : double

${utility_ScaleHelper_method_GetSmDpi_D}

${utility_ScaleHelper_method_GetSmDpi_remarks}

ScaleConversion ( double referResolution, double dpi, CoordinateReferenceSystem crs ) : double
ScaleConversion ( double referResolution, double dpi, Unit unit = Unit.Degree, double datumAxis = 6378137 ) : double

${utility_ScaleHelper_method_ScaleConversion_D}

Private Methods

Method Description
CheckAndSortResolutions ( double resolutions ) : double[]
CheckAndSortScales ( double scales ) : double[]
CheckResolutionsMatching ( double mapResArray, double layerResArray ) : void
ConversionBetweenScalesAndResulotions ( double temp, double dpi, Unit unit = Unit.Degree, double datumAxis = 6378137 ) : double[]

Method Details

GetSmDpi() public static method

${utility_ScaleHelper_method_GetSmDpi_D}
${utility_ScaleHelper_method_GetSmDpi_remarks}
public static GetSmDpi ( Rectangle2D referViewBounds, Rect referViewer, double referScale, Unit unit = Unit.Degree, double datumAxis = 6378137 ) : double
referViewBounds SuperMap.Web.Core.Rectangle2D ${utility_ScaleHelper_method_GetSmDpi_param_referViewBounds}
referViewer System.Windows.Rect ${utility_ScaleHelper_method_GetSmDpi_param_referViewer}
referScale double ${utility_ScaleHelper_method_GetSmDpi_param_referScale}
unit Unit ${utility_ScaleHelper_method_GetSmDpi_param_unit}
datumAxis double ${utility_ScaleHelper_method_GetSmDpi_param_datumAxis}
return double

ScaleConversion() public static method

public static ScaleConversion ( double referResolution, double dpi, CoordinateReferenceSystem crs ) : double
referResolution double
dpi double
crs CoordinateReferenceSystem
return double

ScaleConversion() public static method

${utility_ScaleHelper_method_ScaleConversion_D}
public static ScaleConversion ( double referResolution, double dpi, Unit unit = Unit.Degree, double datumAxis = 6378137 ) : double
referResolution double ${utility_ScaleHelper_method_ScaleConversion_param_referResolution}
dpi double ${utility_ScaleHelper_method_ScaleConversion_param_dpi}
unit Unit ${utility_ScaleHelper_method_ScaleConversion_param_unit}
datumAxis double ${utility_ScaleHelper_method_ScaleConversion_param_datumAxis}
return double