A Typescript library for interacting with OGC-compliant services
ogc-client is a Typescript library which implements several OGC standards and will help you interact with them in a user-friendly and consistent way.
Documentation and live demo here!
The following standards are partially implemented:
To install ogc-client, run:
$ npm install --save @camptocamp/ogc-client
To use, import API symbols like so:
import { WmsEndpoint, WfsEndpoint } from '@camptocamp/ogc-client';
Note: if you want to disable web worker usage, for example to solve issues with the Referer
header on outgoing
requests, use:
import { enableFallbackWithoutWorker } from '@camptocamp/ogc-client';
enableFallbackWithoutWorker();
All processing will be done on the main thread after this call, including HTTP requests.
The @camptocamp/ogc-client
NPM package is updated on every commit on the main
branch under the @dev
tag. To use it:
$ npm install --save @camptocamp/ogc-client@dev
A provided application containing the documentation and demo is located in the app
folder.
To start it locally, clone the repository and run the following commands:
$ npm install
$ cd app
$ npm install
$ npm start
The app is based on Vue.js and will showcase most features implemented in the library. You will need to supply it with valid OGC service urls.