예제 #1
0
        /// <summary>
        /// Gets the elevation. Data is smoothed using bilinear interpolation.
        /// </summary>
        /// <returns>
        /// The height. Null, if elevation is not available.
        /// </returns>
        /// <param name='latitude'>
        /// Latitude in decimal degrees of desired location.
        /// </param>
        /// <param name="longitude">
        /// Longitude in decimal degrees of desired location
        /// </param>
        /// <exception cref='Exception'>
        /// Represents errors that occur during application execution.
        /// </exception>
        public double?GetElevationBilinear(double latitude, double longitude)
        {
            ISRTMDataCell dataCell = GetDataCell(latitude, longitude);

            return(dataCell.GetElevationBilinear(latitude, longitude));
        }
예제 #2
0
        /// <summary>
        /// Gets the elevation.
        /// </summary>
        /// <returns>
        /// The height. Null, if elevation is not available.
        /// </returns>
        /// <param name='latitude'>
        /// Latitude in decimal degrees of desired location.
        /// </param>
        /// <param name="longitude">
        /// Longitude in decimal degrees of desired location
        /// </param>
        /// <exception cref='Exception'>
        /// Represents errors that occur during application execution.
        /// </exception>
        public int?GetElevation(double latitude, double longitude)
        {
            ISRTMDataCell dataCell = GetDataCell(latitude, longitude);

            return(dataCell.GetElevation(latitude, longitude));
        }