ogcopenapis 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +36 -24
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,58 +3,70 @@
3
3
  ## Description
4
4
  The ogcopenapis package provides OGC API functionalities to LuciadRIA Application.
5
5
 
6
- In this version:
7
- * Only Open API Features is implemented
8
-
9
- In future versions
10
- * Open API Tiles will be implemented
11
- * Open API Maps will be implemented
6
+ Implements
7
+ * __Open API Features__
8
+ * __Open API Tiles__
9
+ * __Open API Maps__
12
10
 
13
11
  The Main Components are:
14
12
 
15
- * OgcOpenApiFeatureStore a ready to use store capable to retrieve features from an OGC API Service
16
- * OgcOpenApiGetCapabilities a helper to retrieve the capabilities of a server such as available Collections and Formats
13
+ * __OgcOpenApiFeatureStore__: a ready to use LuciadRIA Feature store capable to retrieve features from an OGC API Feature Service
14
+ * __OgcOpenApiMapsModel__: a ready to use model capable to retrieve images from from an OGC API Maps Service
15
+ * __OgcOpenApiTilesModel__: a ready to use model capable to retrieve tiles from an OGC API Tiles Service
16
+ * __OgcOpenApiGetCapabilities__: a helper to retrieve the capabilities of a server such as available Collections and available Formats
17
17
 
18
- Additional components will be added in future versions for Maps and Tiles
19
18
 
20
19
 
21
20
  ## To build
22
- This is the source code of an npm package. To build install and build the library. This will create a lib folder with the transpiled library.
21
+ This is the source code that produces a library delivered as a npm package.
22
+ To build the source code use the npm scripts:
23
23
  ```
24
24
  npm install
25
25
  npm run build
26
26
  ```
27
+ Then you can publish the package to npm or other repository
27
28
 
28
29
  ## To test
29
- Some test have been added that run in nodejs. No browser test is available at the moment.
30
- Run uses isomorphic-fetch to provide fetch in node testing with jest.
30
+ Some test have been added that runs using nodejs using Jest. No browser test is available at the moment.
31
+ The test uses isomorphic-fetch to provide fetch in node testing with jest.
31
32
  ```
32
33
  npm run test
33
34
  ```
34
- Test use the sever-side implementation of OGC Open API Features at "https://demo.pygeoapi.io/master/"
35
- The server is reliable ans stable, but take in t account that changes at the server may brake some tests.
35
+ Test use the sever-side implementations of OGC Open API from "https://demo.pygeoapi.io/master/" and "https://maps.gnosis.earth/ogcapi/"
36
+ The servers are reliable and stable, but take in t account that changes at the server may brake some tests of this client.
36
37
 
37
- ## To use
38
+ ## To use in your project
38
39
 
39
- Simply import the NPM package in to your project
40
+ Simply import the NPM package into your project
40
41
 
41
42
  ```
42
43
  npm install ogcopenapis
43
44
  ```
44
45
 
45
- If you require the GetCapabilities functionality then also import:
46
+ If you require the GetCapabilities functionality then import:
47
+ ```typescript
48
+ import {
49
+ CollectionLinkType, OgcOpenApiCapabilitiesCollection,
50
+ OgcOpenApiCapabilitiesCollectionServiceLinkType,
51
+ OgcOpenApiGetCapabilities
52
+ } from "ogcopenapis/lib/OgcOpenApiGetCapabilities";
46
53
  ```
54
+ For Open Api Feature you can use the OgcOpenApiFeatureStore, this implements a store that can be used with LuciadRIA FeatureModel and FeatureLayer
55
+ ```typescript
47
56
  import {
48
- CollectionLinkType, OgcOpenApiGetCapabilities
49
- } from 'ogcopenapis/OgcOpenApiGetCapabilities';
57
+ OgcOpenApiFeatureStore
58
+ } from "ogcopenapis/lib/OgcOpenApiFeatureStore";
59
+ ```
50
60
 
51
- import {
52
- OgcOpenApiFeatureStore.ts, OgcOpenApiGetCapabilities
53
- } from 'ogcopenapis/OgcOpenApiFeatureStore.ts';
61
+ For Maps and Tiles use OgcOpenApiMapsModel and OgcOpenApiTilesModel:
62
+ ```typescript
63
+ import {OgcOpenApiMapsModel} from "ogcopenapis/lib/OgcOpenApiMapsModel";
64
+ import {OgcOpenApiTilesModel} from "ogcopenapis/lib/OgcOpenApiTilesModel";
54
65
  ```
66
+ Both models extend from UrlTileSetModel so you can use them in combination with RasterTileSetLayer.
67
+ Look at the LuciadRIA documentation if you need further information on using RasterTileSetLayer.
55
68
 
56
- At this moment you should be ready to use the functionality.
57
69
 
58
- ## Requirements.
70
+ ## Requirements
59
71
  * LuciadRIA 2020.0 or higher (place it on a local npm repository for instance verdaccio )
60
72
  * A ES6 or Typescript capable transpiler.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ogcopenapis",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Implements OGC OPEN API Features/Maps/Tiles capabilities and models for LuciadRIA",
5
5
  "files": [
6
6
  "lib/"