SuperMap.Web.Mapping.Tile.GetTileKey C# (CSharp) Method

GetTileKey() public static method

public static GetTileKey ( int row, int column, double resolution, double resolutions ) : string
row int
column int
resolution double
resolutions double
return string
        public static string GetTileKey(int row, int column, double resolution, double[] resolutions)
        {
            if (resolutions != null)
            {
                int level = MathUtil.GetNearestIndex(resolution, resolutions);
                return string.Format(CultureInfo.InvariantCulture, "{0}_{1}_{2}", row, column, level);
            }//只要有Resolutions则按照level返回。
            else
            {
                return string.Format(CultureInfo.InvariantCulture, "{0}_{1}_{2}", row, column, resolution);
            }
        }