open-index/open-npm huggingface dataset:
npm package: @ogcapi-js/features
Description: A javascript library for OGC API - Features
Author: Haoliang Yu
Latest version: 1.3.1

# @ogcapi-js/features

[![npm](https://img.shields.io/npm/v/@ogcapi-js/features)](https://www.npmjs.com/package/@ogcapi-js/features)

A lightweight JavaScript client library for [OGCAPI - Features](https://github.com/opengeospatial/ogcapi-features).

This library works with endpoints defined at:
* [OGC API - Features - Part 1: Core](http://docs.opengeospatial.org/DRAFTS/17-069r2.html)
* [OGC API - Features - Part 2: Coordinate Reference Systems by Reference](http://docs.opengeospatial.org/is/18-058/18-058.html)
* [OGC API - Features - Part 3: Filtering and the Common Query Language (CQL)](https://docs.ogc.org/DRAFTS/21-065.html)

See more details at the [documentation](https://haoliangyu.github.io/ogcapi-js).

## Installation

```
npm install @ogcapi-js/features
```

## Usage

### Node.js

This library uses the global [fetch](https://fetch.spec.whatwg.org/) function for HTTP requests. Please consider using [isomorphic-fetch](https://www.npmjs.com/package/isomorphic-fetch) for polyfill.


``` javascript
require('isomorphic-fetch');

const { FeatureService } = require('@ogcapi-js/features');

// create a new service client
const service = new FeatureService({
  baseUrl: 'https://ogcapi.service.com'
});

// get all collections from the service
const collections = await services.getCollections();
```

### Browser

Modern browsers already support the global `fetch` function so there is no need to polyfill.

``` javascript
import { Service } from `@ogcapi-js/features`;

// create a new service client
const service = new FeatureService({
  baseUrl: 'https://ogcapi.service.com'
});

// get all collections from the service
const collections = await services.getCollections();
```
npm package: @ogcapi-js/processes
Description: A javascript library for OGC API - Processes
Author: Haoliang Yu
Latest version: 1.3.1

# @ogcapi-js/processes

[![npm](https://img.shields.io/npm/v/@ogcapi-js/processes)](https://www.npmjs.com/package/@ogcapi-js/processes)

A lightweight JavaScript client library for [OGCAPI - Processes](https://github.com/opengeospatial/ogcapi-processes).

This library works with endpoints defined at:
* [OGC API - Processes - Part 1: Core](https://docs.ogc.org/is/18-062r2/18-062r2.html)

See more details at the [documentation](https://haoliangyu.github.io/ogcapi-js).

## Installation

```
npm install @ogcapi-js/processes
```

## Usage

### Node.js

This library uses the global [fetch](https://fetch.spec.whatwg.org/) function for HTTP requests. Please consider using [isomorphic-fetch](https://www.npmjs.com/package/isomorphic-fetch) for polyfill.


``` javascript
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.

``` javascript
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();
```