Package Exports
- sensorthings
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sensorthings) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
SensorThings API
Node implementation of the OGC SensorThings API.
Dependencies
- Nodejs 6
- PostgreSQL >9.4
- PostGIS
Build
npm install
npm run buildUsage
const express = require('express');
const SensorThings = require('../dist/sensorthings'); // or require('sensorthings')
// if you installed it via npm
var app = express();
const config = {
db: {
host: 'localhost',
port: 5432,
name: 'sensorweb',
user: 'postgres',
password: '12345678'
}
};
app.use('/', SensorThings(config));
app.listen(8080, () => console.log('Running on localhost:8080'));Running the tests
npm run test-watchRunning the example
npm run exampleOGC Compliance testing status
We are automatically running the Test Suite for the OGC SensorThings API with every commit and the results are published here.
| Conformance Class | Reference | Test Status |
|---|---|---|
| Sensing Core | A.1 | 6 passed, 0 failed |
| Filtering Extension | A.2 | 7 passed, 1 failed* |
| Create-Update-Delete | A.3 | 9 passed, 0 failed |
| Batch Request | A.4 | Tests not implemented |
| Sensing MultiDatastream Extension | A.5 | Tests not implemented |
| Sensing Data Array Extension | A.6 | Tests not implemented |
| MQTT Extension for Create and Update | A.7 | Tests not implemented |
| MQTT Extension for Receiving Updates | A.8 | Tests not implemented |
- The failure is actually an OGC test suite issue: https://github.com/opengeospatial/ets-sta10/issues/35