Ejemplo n.º 1
0
        /// <summary>
        /// Executes the actual algorithm.
        /// </summary>
        protected override void DoRun()
        {
            // assumed here all arguments are as they should be.
            var features = new FeaturesList(_routerDb, _profiles);

            var header      = ShapefileDataWriter.GetHeader(features[0], features.Count);
            var shapeWriter = new ShapefileDataWriter(_fileName, new GeometryFactory())
            {
                Header = header
            };

            shapeWriter.Write(features);

            this.HasSucceeded = true;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Executes the actual algorithm.
        /// </summary>
        public void Run(CancellationToken cancellationToken)
        {
            // assumed here all arguments are as they should be.
            var features = new FeaturesList(_routerDb);

            if (features.Count == 0)
            {
                return;
            }

            var header      = ShapefileDataWriter.GetHeader(features[0], features.Count);
            var shapeWriter = new ShapefileDataWriter(_fileName, new GeometryFactory())
            {
                Header = header
            };

            shapeWriter.Write(features);
        }
Ejemplo n.º 3
0
 public Enumerator(FeaturesList list)
 {
     _list = list;
 }