Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koop-geojson-file

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koop-geojson-file

A GeoJSON file provider for koop

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

koop-geojson-file

GeoJSON file provider for Koop

Based on code from koop-sample-provider

Usage

For information on using Koop, see https://github.com/esri/koop

Install dependencies:

npm install koop koop-geojson-file express ejs

Make sure your config contains a geojsonFiles key that holds an array of paths to the GeoJSON files you'd like to serve as FeatureServices. See example code below:

var config = {
  "server": {"port": 1337},
  "geojsonFiles": [
    "/data/test-file.geojson"
    "/data/other-file.geojson"
  ]
};

var koop = require('koop')(config);
var koopGeoJson = require('koop-geojson-file');

koop.register(koopGeoJson);

var express = require('express');
var app = express();

app.use(koop);

app.listen(process.env.PORT || config.server.port,  function() {
  console.log("Listening at http://%s:%d/", this.address().address, this.address().port);
});

koop-geojson-file uses the files' basenames (without extensions) to route. For example, with the geojsonFiles as defined in the above example, routes to FeatureServices would be:

Developing

git clone https://github.com/jseppi/koop-geojson-file.git
cd koop-geojson-file
npm install
npm test

FAQs

Package last updated on 28 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc