예제 #1
0
        /// <summary>
        /// Create a new pipe to transform an enumeration of geo coordinates
        /// into their corresponding tile identification.
        /// </summary>
        /// <param name="ZoomLevel">The current zoom level of the Aegir map.</param>
        /// <param name="IEnumerable">An optional IEnumerable&lt;S&gt; as element source.</param>
        /// <param name="IEnumerator">An optional IEnumerator&lt;S&gt; as element source.</param>
        public GeoCoordinate2TilesXYPipe(UInt32 ZoomLevel,
                                         IEnumerable <GeoCoordinate> IEnumerable = null,
                                         IEnumerator <GeoCoordinate> IEnumerator = null)

            : base(IEnumerable,
                   Item => GeoCalculations.GeoCoordinate2TilesXY(Item, ZoomLevel))

        {
        }
예제 #2
0
        /// <summary>
        /// Create a new arrow to transform an enumeration of geo coordinates
        /// into their corresponding tile identification.
        /// </summary>
        /// <param name="ZoomLevel">The current zoom level of the Aegir map.</param>
        /// <param name="OnError">A delegate to transform an incoming error into an outgoing error.</param>
        /// <param name="ArrowSender">The sender of the messages/objects.</param>
        public GeoCoordinate2TilesXYArrow(UInt32 ZoomLevel,
                                          Func <Exception, Exception> OnError      = null,
                                          IArrowSender <GeoCoordinate> ArrowSender = null)

            : base(Item => GeoCalculations.GeoCoordinate2TilesXY(Item, ZoomLevel),
                   OnError,
                   ArrowSender)

        {
        }