@ogcapi-js/processes
v1.1.1
Published
A javascript library for OGC API - Processes
Downloads
5
Readme
@ogcapi-js/processes
A lightweight JavaScript client library for OGCAPI - Processes.
This library works with endpoints defined at:
See more details at the documentation.
Installation
npm install @ogcapi-js/processes
Usage
Node.js
This library uses the global fetch function for HTTP requests. Please consider using isomorphic-fetch for polyfill.
require('isomorphic-fetch');
const { ProcessesService } = require('@ogcapi-js/processes');
// create a new service client
const service = new ProcessesService({
baseUrl: 'https://ogcapi.service.com'
});
// get all processes from the service
const collections = await services.getProcesses();
Browser
Modern browsers already support the global fetch
function so there is no need to polyfill.
import { ProcessesService } from `@ogcapi-js/processes`;
// create a new service client
const service = new ProcessesService({
baseUrl: 'https://ogcapi.service.com'
});
// get all processes from the service
const processes = await services.getProcesses();