Beispiel #1
0
 public FeatureFetcher(BoundingBox extent, double resolution, IProvider provider, DataArrivedDelegate dataArrived, long timeOfRequest = default(long))
 {
     _dataArrived = dataArrived;
     _extent = extent;
     _provider = provider;
     _resolution = resolution;
     _timeOfRequest = timeOfRequest;
 }
Beispiel #2
0
 public FeatureFetcher(BoundingBox extent, double resolution, IProvider provider, DataArrivedDelegate dataArrived, long timeOfRequest = default(long))
 {
     this.dataArrived   = dataArrived;
     this.extent        = extent;
     this.provider      = provider;
     this.resolution    = resolution;
     this.timeOfRequest = timeOfRequest;
 }
 /// <summary>
 /// Initialize a new instance of <see cref="FeaturesFetcher"/>.
 /// </summary>
 /// <param name="envelope"></param>
 /// <param name="ds"></param>
 /// <param name="provider"></param>
 /// <param name="dataArrived"></param>
 /// <param name="timeOfRequest"></param>
 public FeaturesFetcher(Envelope envelope, FeatureDataSet ds, IProvider provider, DataArrivedDelegate dataArrived, long timeOfRequest = default(long))
 {
     _envelope = envelope;
     _envelope.ExpandBy(envelope.Width, envelope.Height);
     _dataSet       = ds;
     _provider      = provider;
     _dataArrived   = dataArrived;
     _timeOfRequest = timeOfRequest;
 }
Beispiel #4
0
        public FeatureFetcher(BoundingBox extent, double resolution, IProvider provider, DataArrivedDelegate dataArrived, long timeOfRequest = default(long))
        {
            _dataArrived = dataArrived;
            var biggerBox = extent.Grow(SymbolStyle.DefaultWidth * 2 * resolution, SymbolStyle.DefaultHeight * 2 * resolution);

            _extent        = biggerBox;
            _provider      = provider;
            _resolution    = resolution;
            _timeOfRequest = timeOfRequest;
        }
    public void GetSomeData()
    {
        // Communication code goes here; stringData has the data

        DataArrivedDelegate handler = DataArrived;

        if (handler != null)
        {
            // If you want to raise the event on this thread, this is fine
            handler(stringData);
        }
    }
Beispiel #6
0
        public FeatureFetcher(FetchInfo fetchInfo, IProvider <IFeature> provider, DataArrivedDelegate dataArrived, long timeOfRequest = default)
        {
            _dataArrived = dataArrived;
            var biggerBox = fetchInfo.Extent.Grow(
                SymbolStyle.DefaultWidth * 2 * fetchInfo.Resolution,
                SymbolStyle.DefaultHeight * 2 * fetchInfo.Resolution);

            _fetchInfo = new FetchInfo(biggerBox, fetchInfo.Resolution, fetchInfo.CRS, fetchInfo.ChangeType);

            _provider      = provider;
            _timeOfRequest = timeOfRequest;
        }