Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New data source type for transforming existing data #156

Open
ajrothwell opened this issue Feb 28, 2018 · 0 comments
Open

New data source type for transforming existing data #156

ajrothwell opened this issue Feb 28, 2018 · 0 comments

Comments

@ajrothwell
Copy link
Contributor

Use case: buffering parcel polygon for RCO notification radius.

This would be a new type of data source which does not fetch data form an API, but instead takes in-memory data and transforms it arbitrarily. In the config file this could look like:

    rcoNotificationBuffer: {
      type: 'transform',
      deps: ['parcels.pwd'],
      options: {
        transforms: ['buffer320Ft'],
      },
    },

where buffer320Ft is a transform defined in config.transforms. Currently the logic for applying transforms is located in TopicComponent.vue, so that would need to be extracted into a reusable util.

See the rco-notification-buffer branch for some initial work on this.

To pick this back up again: finalize the API for transform data sources (see rcoNotificationBuffer in the Polling example's config.js), and then make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant