/// <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; }
/// <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); }
public Enumerator(FeaturesList list) { _list = list; }