Neo's Playing Morpheus

    @koopjs/output-geoservices

    4.0.1 • Public • Published

    Koop Geoservices Output Plugin

    npm 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

    Geoservices.routes = [
      {
        path: '$namespace/rest/info',
        methods: ['get', 'post'],
        handler: 'featureServerRestInfo'
      },
      {
        path: '$namespace/tokens/:method',
        methods: ['get', 'post'],
        handler: 'generateToken'
      },
      {
        path: '$namespace/tokens/',
        methods: ['get', 'post'],
        handler: 'generateToken'
      },
      {
        path: '$namespace/rest/services/$providerParams/FeatureServer/:layer/:method',
        methods: ['get', 'post'],
        handler: 'featureServer'
      },
      {
        path: '$namespace/rest/services/$providerParams/FeatureServer/layers',
        methods: ['get', 'post'],
        handler: 'featureServer'
      },
      {
        path: '$namespace/rest/services/$providerParams/FeatureServer/:layer',
        methods: ['get', 'post'],
        handler: 'featureServer'
      },
      {
        path: '$namespace/rest/services/$providerParams/FeatureServer',
        methods: ['get', 'post'],
        handler: 'featureServer'
      },
      {
        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'
      },
      {
        path: '$namespace/rest/services/$providerParams/FeatureServer*',
        methods: ['get', 'post'],
        handler: 'featureServer'
      },
      {
        path: 'FeatureServer*',
        methods: ['get', 'post'],
        handler: 'featureServer'
      },
      {
        path: '$namespace/rest/services/$providerParams/MapServer*',
        methods: ['get', 'post'],
        handler: 'featureServer'
      },
      {
        path: 'MapServer*',
        methods: ['get', 'post'],
        handler: 'featureServer'
      }
    ]

    Install

    npm i @koopjs/output-geoservices

    DownloadsWeekly Downloads

    283

    Version

    4.0.1

    License

    Apache-2.0

    Unpacked Size

    10.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • sanshr
    • drspacemanphd
    • sonofflynn89
    • tomtom92
    • haoliang
    • richgwozdz
    • dhatcher