koopjs / koopjs.github.io

Home of the Koop Geospatial Server.
https://koopjs.github.io
Apache License 2.0
14 stars 28 forks source link

New Koop output - table #128

Open ryanbenac33 opened 10 months ago

ryanbenac33 commented 10 months ago

As I'm developing a Koop provider, I also developed a table output option to aid in viewing data and handling other Koop data requests. I've worked out all the bugs I can find if you want to include it in the output list:

https://github.com/ryanbenac33/koop-output-table

Thanks, and great work with the Koop solution!!

rgwozdz commented 10 months ago

Thanks @ryanbenac33. We'll add it to the output list!.

One thing about this code snippet on your readme:

const Koop = require("koop");
const tableOutput = require("./koop-output-table");

Koop.register(tableOutput);

The koop module exports a class, so you should create a new instance before registering plugins:

const Koop = require("koop");
const koop = new Koop();
const tableOutput = require("./koop-output-table");

koop.register(tableOutput);