예제 #1
0
        /// <summary>
        /// Gets the next value in a series.
        /// </summary>
        /// <param name="isMissingFlag">The is missing flag.</param>
        /// <param name="gsVal">The gs value.</param>
        /// <returns>False if there are no more values.</returns>
        public bool Next (double isMissingFlag, out GeoSpatialValue gsVal)
        {
            double lat, lon, val;
            bool success = GribApiProxy.GribIteratorNext(this, out lat, out lon, out val) != 0;

            gsVal = new GeoSpatialValue(lat, lon, val, val == isMissingFlag);

            return success;
        }
예제 #2
0
        /// <summary>
        /// Gets the next value in a series.
        /// </summary>
        /// <param name="isMissingFlag">The is missing flag.</param>
        /// <param name="gsVal">The gs value.</param>
        /// <returns>False if there are no more values.</returns>
        public bool Next(double isMissingFlag, out GeoSpatialValue gsVal)
        {
            double lat, lon, val;
            bool   success = GribApiProxy.GribIteratorNext(this, out lat, out lon, out val) != 0;

            gsVal = new GeoSpatialValue(lat, lon, val, val == isMissingFlag);

            return(success);
        }
예제 #3
0
 /// <summary>
 /// Equals the specified value.
 /// </summary>
 /// <param name="that">The that.</param>
 /// <returns></returns>
 public bool Equals(GeoSpatialValue that)
 {
     return((this.Latitude == that.Latitude) &&
            (this.Longitude == that.Longitude) &&
            (this.Value == that.Value));
 }