示例#1
0
        /// <summary>
        /// TierBoxId is latitude box id + longitude box id
        /// where latitude box id, and longitude box id are transposed in to position
        /// coordinates.
        /// </summary>
        /// <param name="latitude">The latitude.</param>
        /// <param name="longitude">The longitude.</param>
        /// <returns></returns>
        public double GetTierBoxId(double latitude, double longitude)
        {
            double[] coords = _projector.Coords(latitude, longitude);
            double[] ranges = _projector.Range();

            double id = GetBoxCoord(coords[0], ranges[0]) + (GetBoxCoord(coords[1], ranges[1]) / TierVerticalPosDivider);

            return(id);
        }