{"id":21558083,"url":"https://github.com/koopjs/provider-ogcapi-features","last_synced_at":"2025-04-10T10:41:17.045Z","repository":{"id":35878812,"uuid":"219787905","full_name":"koopjs/provider-ogcapi-features","owner":"koopjs","description":"Experimental Koop provider plugin for OGC API - Features","archived":false,"fork":false,"pushed_at":"2023-01-06T02:15:42.000Z","size":1128,"stargazers_count":4,"open_issues_count":13,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T13:36:54.732Z","etag":null,"topics":["experimental","features","koop","ogc-api","plugin","provide"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koopjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-05T16:10:37.000Z","updated_at":"2022-07-20T02:53:22.000Z","dependencies_parsed_at":"2023-01-16T08:29:21.163Z","dependency_job_id":null,"html_url":"https://github.com/koopjs/provider-ogcapi-features","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fprovider-ogcapi-features","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fprovider-ogcapi-features/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fprovider-ogcapi-features/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koopjs%2Fprovider-ogcapi-features/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koopjs","download_url":"https://codeload.github.com/koopjs/provider-ogcapi-features/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199306,"owners_count":21063654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["experimental","features","koop","ogc-api","plugin","provide"],"created_at":"2024-11-24T08:13:57.796Z","updated_at":"2025-04-10T10:41:17.017Z","avatar_url":"https://github.com/koopjs.png","language":"JavaScript","readme":"# @koopjs/provider-ogcapi-features\n\n[![npm](https://img.shields.io/npm/v/@koopjs/provider-ogcapi-features)](https://www.npmjs.com/package/@koopjs/provider-ogcapi-features) [![Build Status](https://www.travis-ci.org/koopjs/provider-ogcapi-features.svg?branch=master)](https://www.travis-ci.org/koopjs/provider-ogcapi-features)\n\nExperimental Koop provider for [OGC API - Features](https://github.com/opengeospatial/ogcapi-features)\n\n## Installation\n\n```bash\nnpm install @koopjs/provider-ogcapi-features\n```\n\n## Configuration\n\nThe configuration of this provider is defined under the `provider-ogcapi-features` namespace. You can update the configuration file for the Koop app to configure this plugin.\n\n```javascript\n{\n  \"provider-ogcapi-features\": {\n    // the \"hosts\" object defines a list of hosts that exposes OGC Features API\n    \"hosts\": {\n      // each host has a unique id, which will be used in the request URL\n      \"host_id\": {\n        // host URL\n        \"url\": \"https://server-url.com\",\n        // optional, the name of ID field in the feature properties\n        \"idField\": \"id_field_name\"\n      }\n    }\n  }\n}\n```\n\nFor example, the following configuration specifies that a host `cubeserv` with the host URL.\n\n```json\n{\n  \"provider-ogcapi-features\": {\n    \"hosts\": {\n      \"cubeserv\": {\n        \"url\": \"http://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0.0/framework\"\n      }\n    }\n  }\n}\n```\n\nThis provider uses the `:host` and `:id` parameter in the URL to identify the target collection.\n\nThe `:host` parameter is the host id defined in the configuration file. In the above example, the user can construct the request URL with the host `cubeserv`.\n\nThe `:id` parameter is a collection id from the selected host service. According to the OGCAPI spec, the user can get a list of all collections from the `/collections` request. In the above example, the collection id can be found in\n\n```\nhttp://www.pvretano.com/cubewerx/cubeserv/default/wfs/3.0.0/framework/collections?f=json\n```\n\nand `JURISDICTIONAL` is a valid colleciton id.\n\nThen the user is able to fetch the features from this collection with the following URL:\n\n```\n/ogcapi-features/cubeserv/JURISDICTIONAL/FeatureServer/0/query\n```\n\nThe actual data comes from the service request\n\n```\nhttps://eratosthenes.pvretano.com/cubewerx/cubeserv/default/wfs/3.0.0/framework/collections/JURISDICTIONAL/items?f=json\n```\n\n## Usage\n\nThis provider can be registered in a Koop app.\n\n```javascript\nconst Koop = require(\"koop\");\nconst ogcProvider = require(\"@koopjs/provider-ogcapi-features\");\n\nKoop.register(ogcProvider);\n```\n\nIf the app is developed using the [Koop CLI](https://github.com/koopjs/koop-cli), it can be auto-registered with\n\n```bash\nkoop add @koopjs/provider-ogcapi-features\n```\n\n## Roadmap\n\n- [ ] Support pagination using the `limit` parameter or prev/next link\n- [ ] Support property filtering\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoopjs%2Fprovider-ogcapi-features","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoopjs%2Fprovider-ogcapi-features","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoopjs%2Fprovider-ogcapi-features/lists"}