Node implementation of the OGC SensorThings API.
- Nodejs 6
- PostgreSQL >9.4
- PostGIS
npm install
npm run build
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'));
npm run test-watch
npm run example
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: opengeospatial/ets-sta10#35