You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if pygeoapi would be able to start up without the user having to explicitly provide a configuration file. Pygeoapi would use a default configuration and start as normally. This configuration would likely have no resources at all, but at least the server would be able to start and run without error. Moreover, it would be good if this default configuration was merged with whatever is provided by the user (if anything) - something like this:
# file my-pygeoapi-config.yml# all other config parameters not defined here use their respective# defaults, as specified in the default pygeoapi configlogging:
level: DEBUGresources:
obs:
type: collectiontitle: Observationsdescription: My cool observationskeywords:
- observations
- monitoringlinked-data:
context:
- datetime: https://schema.org/DateTime
- vocab: https://example.com/vocab#stn_id: "vocab:stn_id"value: "vocab:value"links:
- type: text/csvrel: canonicaltitle: datahref: https://github.com/mapserver/mapserver/blob/branch-7-0/msautotest/wxs/data/obs.csvhreflang: en-US
- type: text/csvrel: alternatetitle: datahref: https://raw.githubusercontent.com/mapserver/mapserver/branch-7-0/msautotest/wxs/data/obs.csvhreflang: en-USextents:
spatial:
bbox: [-180,-90,180,90]crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84temporal:
begin: 2000-10-30T18:24:39Zend: 2007-10-30T08:57:29Zproviders:
- type: featurename: CSVdata: tests/data/obs.csvid_field: idgeometry:
x_field: longy_field: lat
In the sample above, even if I only specified values for the logging and resources config keys, pygeoapi would merge this with its own default configuration and would still be able to run.
Describe alternatives you've considered
The alternative of leaving things as they are also works - I think this would be a way to simplify user's configuration files on some use cases.
The text was updated successfully, but these errors were encountered:
It would be nice if pygeoapi would be able to start up without the user having to explicitly provide a configuration file. Pygeoapi would use a default configuration and start as normally. This configuration would likely have no resources at all, but at least the server would be able to start and run without error. Moreover, it would be good if this default configuration was merged with whatever is provided by the user (if anything) - something like this:
In the sample above, even if I only specified values for the
logging
andresources
config keys, pygeoapi would merge this with its own default configuration and would still be able to run.Describe alternatives you've considered
The alternative of leaving things as they are also works - I think this would be a way to simplify user's configuration files on some use cases.
The text was updated successfully, but these errors were encountered: