Skip to content

Caching /FeatureServer and /FeatureServer/layers responses #14

@apatriz

Description

@apatriz

const geojson = { type: 'FeatureCollection', metadata, features }

The above line assumes cached objects are always features. However, my getData function, returns {layers} , and this is a valid return value for koop-output-geoservices to handle. For requests to /FeatureServer and /FeatureServer/layers , the cached response is not retrieved properly due to the above (the features property will be assigned {layers}, which leads to errors in handling the geoJSON downstream).

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