node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

koop-output-geoservices

Koop Geoservices Output Plugin

Greenkeeper badge Build Status

Wraps FeatureServer into a Koop Output plugin.

Usage

const Koop = require('koop')
const config = require('config')
const koop = new Koop(config)
const FeatureServer = require('koop-output-geoservices')
const Provider = require('koop-agol') // any koop provider here
 
// All output plugins must be registered before any providers are registered
koop.register(FeatureServer)
koop.register(Provider)
 
koop.server.listen(80)

Routes

[
  {
    path: 'FeatureServer/:layer/:method',
    methods: ['get', 'post'],
    handler: 'featureServer'
  },
  {
    path: 'FeatureServer/layers',
    methods: ['get', 'post'],
    handler: 'featureServer'
  },
  {
    path: 'FeatureServer/:layer',
    methods: ['get', 'post'],
    handler: 'featureServer'
  },
  {
    path: 'FeatureServer',
    methods: ['get', 'post'],
    handler: 'featureServer'
  }
]