【增加采集、驱动配置】

This commit is contained in:
weizhihong 2023-10-31 08:55:29 +08:00
parent d45ee86aa4
commit c5dae5bb22
2 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@ type Repository struct {
mkxMap map[string]*Mkx
keyMap map[string]*Key
linkMap map[string]*Link
centralizedMap map[string]*proto.CentralizedStationRef
}
func newRepository(id string, version string) *Repository {

View File

@ -122,6 +122,9 @@ func buildModels(source *proto.Repository, repository *Repository) error {
repository.keyMap[m.Id()] = m
}
err := repository.generateCoordinateInfo(source.MainCoordinateSystem)
for _, protoData := range source.CentralizedStationRefs {
repository.centralizedMap[protoData.StationId] = protoData
}
return err
}