Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koopjs/koop-output-geoservices
Deprecated
https://github.com/koopjs/koop-output-geoservices
deprecated
Last synced: 2 months ago
JSON representation
Deprecated
- Host: GitHub
- URL: https://github.com/koopjs/koop-output-geoservices
- Owner: koopjs
- License: other
- Created: 2017-01-25T18:50:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T18:46:38.000Z (almost 2 years ago)
- Last Synced: 2024-11-16T16:49:03.248Z (2 months ago)
- Topics: deprecated
- Language: JavaScript
- Homepage:
- Size: 688 KB
- Stars: 6
- Watchers: 14
- Forks: 4
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Koop Geoservices Output Plugin
## DEPRECATED - now migrated to a package in the [Koop monorepo](https://github.com/koopjs/koop/). Update any `npm` usage to `@koopjs/output-geoservices`.
[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)
[![npm](https://img.shields.io/npm/v/koop-output-geoservices.svg?style=flat-square)](https://www.npmjs.com/package/koop-output-geoservices)
[![Greenkeeper badge](https://badges.greenkeeper.io/koopjs/koop-output-geoservices.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/koopjs/koop-output-geoservices.svg?branch=master)](https://travis-ci.org/koopjs/koop-output-geoservices)Wraps [FeatureServer](https://github.com/featureserver/featureserver) into a [Koop](http://koopjs.github.io) Output plugin.
## Usage
```js
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
```js
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'
}
]
```