diff --git a/database/database.go b/database/database.go index 86138eb..e1b7e27 100644 --- a/database/database.go +++ b/database/database.go @@ -59,6 +59,12 @@ func Schemes() []string { ctx := context.Background() schemes := []string{} + err := ensureSpatialRoster() + + if err != nil { + return schemes + } + for _, dr := range spatial_databases.Drivers(ctx) { scheme := fmt.Sprintf("%s://", dr) schemes = append(schemes, scheme) diff --git a/properties/properties.go b/properties/properties.go index 3770976..f475bfc 100644 --- a/properties/properties.go +++ b/properties/properties.go @@ -60,6 +60,12 @@ func Schemes() []string { ctx := context.Background() schemes := []string{} + err := ensurePropertiesRoster() + + if err != nil { + return schemes + } + for _, dr := range properties_readers.Drivers(ctx) { scheme := fmt.Sprintf("%s://", dr) schemes = append(schemes, scheme)