コード例 #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;
 }
コード例 #3
0
 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);
        }