示例#1
0
 public ExportRegulationSections(TroutDashPrototypeContext troutDashContext,
                                 MinnesotaShapeDataContext minnesotaContext, IDatabaseConnection dbConnection)
 {
     _troutDashContext  = troutDashContext;
     _minnesotaContext  = minnesotaContext;
     _sequenceRestarter = new SequenceRestarter(dbConnection);
 }
示例#2
0
 public RegulationsExporter(TroutDashPrototypeContext troutDashContext,
                            MinnesotaShapeDataContext minnesotaContext, SequenceRestarter sequenceRestarter, GetLinearOffsets getLinearOffsets)
 {
     _troutDashContext2 = troutDashContext;
     _minnesotaContext2 = minnesotaContext;
     _sequenceRestarter = sequenceRestarter;
     _getLinearOffsets  = getLinearOffsets;
 }
 public LakeExporter(TroutDashPrototypeContext troutDashContext,
                     MinnesotaShapeDataContext minnesotaContext, SequenceRestarter sequenceRestarter, GetLinearOffsets getLinearOffsets)
 {
     _sequenceRestarter = sequenceRestarter;
     _troutDashContext  = troutDashContext;
     _minnesotaContext  = minnesotaContext;
     _getLinearOffsets  = getLinearOffsets;
     _getState          = new Lazy <state>(GetState);
 }
示例#4
0
        public ExportMinnesotaData(IDatabaseConnection dbConnection, IDatabaseConnection mnImportDbConnection,
                                   CentroidResetter centroidResetter)
        {
            _dbConnection         = dbConnection;
            _mnImportDbConnection = mnImportDbConnection;
            _centroidResetter     = centroidResetter;
            _sequenceRestarter    = new SequenceRestarter(dbConnection);
            IsCommand("ExportMn", "Exports minnesota data into trout dash. must be run after ImportMn.");
            HasRequiredOption("regulationJson=", "the location of the regulation json", j => RegulationsFileLocation = j);
            HasRequiredOption("roadTypesJson=", "the location of the road types json", j => RoadTypesFileLocation    = j);
            HasOption("streamMetadata=", "the location of the stream data for species, status, etc",
                      j => StreamMetadataFileLocation = j);

            _getLinearOffsets  = new GetLinearOffsets(mnImportDbConnection);
            _sequenceRestarter = new SequenceRestarter(dbConnection);
        }