Skip to content

README instructions for user-specified YAML config incorrect #94

@ianthomas23

Description

@ianthomas23

If I follow the instructions for user-specified YAML config from the README, i.e. create the suggested my_services.yaml and then run

python mapshader/flask_app.py -f my_services.yaml

I get

File "/home/iant/github/mapshader/mapshader/services.py", line 242, in parse_sources
    for service_type in source['service_types']:
KeyError: 'service_types'

If I add the following to my_services.yaml (I am guessing here)

sources:
  - name: Elevation
    <existing lines>
    service_types:
      - tile

then I get passed the previous error but see

AssertionError: View function mapping is overwriting an existing endpoint function: Elevation tile

This occurs with both master and the 0.0.9 release.

So there is some inconsistency between the code and the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions