1.1.0 • Published 9 months ago

@camptocamp/ogc-client v1.1.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
9 months ago

ogc-client Latest version on NPM Latest @dev version on NPM

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:

  • WMS - Web Map Service
  • WFS - Web Feature Service
  • WMTS - Web Map Tile Service
  • OGC API (Records and Features)

Why use it?

  1. ogc-client will abstract the service version so you don't have to worry about it
  2. ogc-client will handle XML so you only have to deal with native Javascript objects
  3. ogc-client will hide the complexity of OGC standards behind straightforward APIs
  4. ogc-client will run heavy tasks in a worker to avoid blocking the main thread
  5. ogc-client will keep a persistent cache of operations to minimize requests and processing
  6. ogc-client will tell you if a service is not usable for CORS-related issues

Instructions

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.

Use the latest development version

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

Application

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.

1.1.1-dev.3e2d3cc

9 months ago

1.1.1-dev.d8cccda

9 months ago

1.1.1-dev.ecb3450

9 months ago

1.1.1-dev.ea0f0b6

9 months ago

1.1.1-dev.952c2c5

9 months ago

1.1.1-dev.4f311f2

9 months ago

1.1.1-dev.ec1e4fe

9 months ago

1.1.1-dev.bf94a45

9 months ago

1.1.1-dev.757c687

9 months ago

1.1.1-dev.9d9cbc0

9 months ago

1.1.1-dev.407854b

9 months ago

1.1.1-dev.7cb62b7

10 months ago

1.1.1-dev.c75dcba

12 months ago

1.1.1-dev.377887e

12 months ago

1.1.1-dev.1b48d46

12 months ago

1.1.1-dev.4369f6c

12 months ago

1.1.1-dev.a9abcef

12 months ago

1.1.1-dev.77cdfe1

12 months ago

1.1.1-dev.5a57e0e

12 months ago

1.1.1-dev.52f33cd

12 months ago

1.1.1-dev.9671ef4

12 months ago

1.1.0

1 year ago

1.1.0-RC.6

1 year ago

1.1.0-RC.5

1 year ago

1.1.0-RC.4

1 year ago

1.1.0-RC.3

1 year ago

1.1.0-RC.2

1 year ago

1.1.0-RC.1

1 year ago

1.0.0

2 years ago

0.4.0

2 years ago

0.3.5

3 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago