示例#1
0
 public KMLImporter(
     IGeoConfig config,
     IJ4JLogger?logger = null
     )
     : base(config, logger)
 {
     Type = GeoExtensions.GetTargetType <ImporterAttribute>(GetType()) !.Type;
 }
 public DistanceProcessor(
     IGeoConfig config,
     IJ4JLogger?logger
     )
     : base(config, ProcessorType.Distance, logger)
 {
     Type = GeoExtensions.GetTargetType <RouteProcessorAttribute>(GetType()) !.Type;
 }
示例#3
0
        protected FileHandler(
            IGeoConfig config,
            IJ4JLogger?logger
            )
        {
            Configuration = config;

            Logger = logger;
            Logger?.SetLoggedType(GetType());
        }
示例#4
0
        protected RouteProcessor(
            IGeoConfig config,
            ProcessorType processorType,
            IJ4JLogger?logger)
        {
            Configuration = config.ProcessorInfo !;
            Processor     = config.ProcessorType;
            ProcessorType = processorType;

            ReportingInterval = ProcessorType.MaxPointsPerRequest() == int.MaxValue
                ? 500
                : ProcessorType.MaxPointsPerRequest() * 5;

            Logger = logger;
            Logger?.SetLoggedType(GetType());
        }