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 action that gets features from OGC API server. #988

Merged
merged 2 commits into from
Jul 27, 2022

Conversation

Delawen
Copy link
Contributor

@Delawen Delawen commented Jul 27, 2022

See https://www.ogc.org/standards/ogcapi-features

You can either call for a full geoJSON with all the results or iterate over each result using the split parameter.

This is a new geospatial API standard that replaces WFS servers.

Kamelet Binding used to test:

apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
  name: integration
spec:
  source:
    ref:
      apiVersion: camel.apache.org/v1alpha1
      name: timer-source
      kind: Kamelet
    properties:
      period: '5000000'
      message: 'NONLD_AREA=0.0&NAME=Croydon'
  steps:
  - ref:
      apiVersion: camel.apache.org/v1alpha1
      name: ogcapi-features-action
      kind: Kamelet
    properties:
      collection: activity_level_ldn
      url: https://emotional.byteroad.net/
  sink:
    ref:
      apiVersion: camel.apache.org/v1alpha1
      name: log-sink
      kind: Kamelet
    properties:
      showAll: true

@Delawen
Copy link
Contributor Author

Delawen commented Jul 27, 2022

This is not a source because there is no default "timestamp" parameter from which to query only the last results.

@oscerd oscerd merged commit 438d54a into apache:main Jul 27, 2022
@Delawen Delawen deleted the ogcapi branch July 28, 2022 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants